linux 无线网卡ping不同,请教高手,本地网卡和无线网卡均不能ping通网关
changlee 于 2008-03-11 10:25:23發表:
詳細的上網方式是通過局域網網關連上internet。現在需要解決的問題就是ping通網關。網關為無線的AP,可通過網線和無線連接。現在本地網卡已能和ap連接,但是無線仍然不能。本地網卡為eth0,無線為eth1
[root@localhost ~]# ifconfig eth0 down
[root@localhost ~]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:16:6F:6A:70:75
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:25012 errors:0 dropped:12 overruns:0 frame:0
TX packets:2402 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0xe000 Memory:dfcff000-dfcfffff
[root@localhost ~]# ifconfig eth1 up
[root@localhost ~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:16:6F:6A:70:75
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:25212 errors:0 dropped:12 overruns:0 frame:0
TX packets:2436 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0xe000 Memory:dfcff000-dfcfffff
eth1:0 Link encap:Ethernet HWaddr 00:16:6F:6A:70:75
inet addr:192.168.101.6 Bcast:192.168.101.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:18 Base address:0xe000 Memory:dfcff000-dfcfffff
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:16436 Metric:1
RX packets:6143 errors:0 dropped:0 overruns:0 frame:0
TX packets:6143 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3695444 (3.5 MiB) TX bytes:3695444 (3.5 MiB)
[root@localhost ~]# ping 192.168.101.1
PING 192.168.101.1 (192.168.101.1) 56(84) bytes of data.
From 192.168.101.6 icmp_seq=2 Destination Host Unreachable
From 192.168.101.6 icmp_seq=3 Destination Host Unreachable
From 192.168.101.6 icmp_seq=4 Destination Host Unreachable
From 192.168.101.6 icmp_seq=6 Destination Host Unreachable
From 192.168.101.6 icmp_seq=7 Destination Host Unreachable
From 192.168.101.6 icmp_seq=8 Destination Host Unreachable
--- 192.168.101.1 ping statistics ---
10 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8999ms
, pipe 3
[root@localhost ~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:16:6F:6A:70:75
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:12 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0xe000 Memory:dfcff000-dfcfffff
eth1:0 Link encap:Ethernet HWaddr 00:16:6F:6A:70:75
inet addr:192.168.101.6 Bcast:192.168.101.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:18 Base address:0xe000 Memory:dfcff000-dfcfffff
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:16436 Metric:1
RX packets:6151 errors:0 dropped:0 overruns:0 frame:0
TX packets:6151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3696340 (3.5 MiB) TX bytes:3696340 (3.5 MiB)
[root@localhost ~]# ping 192.168.101.1
PING 192.168.101.1 (192.168.101.1) 56(84) bytes of data.
--- 192.168.101.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
總結
以上是生活随笔為你收集整理的linux 无线网卡ping不同,请教高手,本地网卡和无线网卡均不能ping通网关的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python PIL库对图片按比例进行分
- 下一篇: 锐龙R7PRO 4750G、锐龙R5 P