有线已连接,但是却无法上网.wifi可以上网
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 有线已连接,但是却无法上网.wifi可以上网
断开无线,连接有线,使其处于 “有线已连接,但是却无法上网” 的故障状态,打开终端依次执行
把结果全部复制贴上来
代码: 全选
nmcli dev show
ping -c 2 114.114.114.114
ping -c 2 mirrors.163.com
sudo dhclient -v eth0
sudo ifconfig -a
sudo iwconfig
sudo route -nv
sudo lshw -C network
cat /etc/resolv.conf
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 2
- 注册时间: 2015-10-18 13:36
- 系统: kali 2.0
Re: 有线已连接,但是却无法上网.wifi可以上网
root@kali:~/bbswitch# nmcli dev show
GENERAL.DEVICE: eth0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: B8:88:E3:79:B1:C1
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/4
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: ip = 192.168.68.100/24, gw = 192.168.68.1
IP4.DNS[1]: 192.168.68.1
IP6.ADDRESS[1]: ip = fe80::ba88:e3ff:fe79:b1c1/64, gw = fe80::1
IP6.DNS[1]: fe80::1
GENERAL.DEVICE: wlan0
GENERAL.TYPE: wifi
GENERAL.HWADDR: 9C:4E:36:4D:C5:EC
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: ip = 127.0.0.1/8, gw = 0.0.0.0
IP6.ADDRESS[1]: ip = ::1/128, gw = ::
root@kali:~/bbswitch# ping -c 2 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.
--- 114.114.114.114 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
pipe 2
root@kali:~/bbswitch# dhclient -v eth0
irs_resconf_load failed: 59.
Unable to set resolver from resolv.conf; startup continuing but DDNS support may be affected
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/b8:88:e3:79:b1:c1
Sending on LPF/eth0/b8:88:e3:79:b1:c1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
root@kali:~/bbswitch# ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:88:e3:79:b1:c1
inet addr:192.168.68.100 Bcast:192.168.68.255 Mask:255.255.255.0
inet6 addr: fe80::ba88:e3ff:fe79:b1c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3326 errors:2038 dropped:0 overruns:2038 frame:0
TX packets:1045 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:149068 (145.5 KiB) TX bytes:82415 (80.4 KiB)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:636 errors:0 dropped:0 overruns:0 frame:0
TX packets:636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:68797 (67.1 KiB) TX bytes:68797 (67.1 KiB)
wlan0 Link encap:Ethernet HWaddr 9c:4e:36:4d:c5:ec
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:61723 errors:0 dropped:0 overruns:0 frame:0
TX packets:38989 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:81091954 (77.3 MiB) TX bytes:4074809 (3.8 MiB)
root@kali:~/bbswitch# iwconfig
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
lo no wireless extensions.
root@kali:~/bbswitch# route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.68.1 0.0.0.0 UG 1024 0 0 eth0
192.168.68.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@kali:~/bbswitch# lshw -C network
bash: lshw: command not found
root@kali:~/bbswitch# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.68.1
nameserver fe80::1%eth0
GENERAL.DEVICE: eth0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: B8:88:E3:79:B1:C1
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/4
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: ip = 192.168.68.100/24, gw = 192.168.68.1
IP4.DNS[1]: 192.168.68.1
IP6.ADDRESS[1]: ip = fe80::ba88:e3ff:fe79:b1c1/64, gw = fe80::1
IP6.DNS[1]: fe80::1
GENERAL.DEVICE: wlan0
GENERAL.TYPE: wifi
GENERAL.HWADDR: 9C:4E:36:4D:C5:EC
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: ip = 127.0.0.1/8, gw = 0.0.0.0
IP6.ADDRESS[1]: ip = ::1/128, gw = ::
root@kali:~/bbswitch# ping -c 2 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.
--- 114.114.114.114 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
pipe 2
root@kali:~/bbswitch# dhclient -v eth0
irs_resconf_load failed: 59.
Unable to set resolver from resolv.conf; startup continuing but DDNS support may be affected
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/b8:88:e3:79:b1:c1
Sending on LPF/eth0/b8:88:e3:79:b1:c1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
root@kali:~/bbswitch# ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:88:e3:79:b1:c1
inet addr:192.168.68.100 Bcast:192.168.68.255 Mask:255.255.255.0
inet6 addr: fe80::ba88:e3ff:fe79:b1c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3326 errors:2038 dropped:0 overruns:2038 frame:0
TX packets:1045 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:149068 (145.5 KiB) TX bytes:82415 (80.4 KiB)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:636 errors:0 dropped:0 overruns:0 frame:0
TX packets:636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:68797 (67.1 KiB) TX bytes:68797 (67.1 KiB)
wlan0 Link encap:Ethernet HWaddr 9c:4e:36:4d:c5:ec
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:61723 errors:0 dropped:0 overruns:0 frame:0
TX packets:38989 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:81091954 (77.3 MiB) TX bytes:4074809 (3.8 MiB)
root@kali:~/bbswitch# iwconfig
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
lo no wireless extensions.
root@kali:~/bbswitch# route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.68.1 0.0.0.0 UG 1024 0 0 eth0
192.168.68.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@kali:~/bbswitch# lshw -C network
bash: lshw: command not found
root@kali:~/bbswitch# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.68.1
nameserver fe80::1%eth0