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