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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值