求助:通过无线路由器能正常上网,访问网站,但是ping等工具均无法访问外网。
发表于 : 2011-07-15 13:07
Ubuntu10.04, linux2.6.38 之前是用网线连接路由器几个人共享上网的,防火墙关掉以后(必须要关,不然ping不了的)可以正常使用ping,nmap等网络工具测试外网的。现在路由器换成了无线路由器,还是几个人共享上网,现在发现关闭防火墙(Firestarter)后,可以ping网关,但是ping外网就失败。我登录路由器把路由器的防火墙也关了,还是不行。
以下是ifconfig的结果:
其中eth0就是有线网卡,wlan0是无线网卡,也就是现在上网用的。
以下是ping的情况:
这是nmap的情况:
"Failed to find device eth0 which was referenced in /proc/net/route",是不是设备设置错了?怎么还是eth0而不是wlan0?谢谢了!
以下是ifconfig的结果:
代码: 全选
ifconfig
eth0 Link encap:以太网 硬件地址 00:22:15:75:c3:dd
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:2
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
中断:44
eth0:avahi Link encap:以太网 硬件地址 00:22:15:75:c3:dd
inet 地址:169.254.10.9 广播:169.254.255.255 掩码:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 跃点数:1
中断:44
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:986836 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:986836 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:257695726 (257.6 MB) 发送字节:257695726 (257.6 MB)
wlan0 Link encap:以太网 硬件地址 00:15:af:e6:5e:be
inet 地址:192.168.1.101 广播:192.168.1.255 掩码:255.255.255.0
inet6 地址: fe80::215:afff:fee6:5ebe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:644600 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:413213 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:850072521 (850.0 MB) 发送字节:48088351 (48.0 MB)
以下是ping的情况:
代码: 全选
ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=87.0 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.34 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1.40 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 3011ms
rtt min/avg/max/mdev = 1.345/29.928/87.038/40.382 ms
ping www.baidu.com
PING www.a.shifen.com (119.75.217.56) 56(84) bytes of data.
^C
--- www.a.shifen.com ping statistics ---
24 packets transmitted, 0 received, 100% packet loss, time 22999ms
代码: 全选
sudo nmap -sS localhost
[sudo] password for zym:
Starting Nmap 5.00 ( http://nmap.org ) at 2011-07-15 13:04 CST
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Interesting ports on localhost (127.0.0.1):
Not shown: 999 closed ports
PORT STATE SERVICE
4662/tcp open edonkey
Nmap done: 1 IP address (1 host up) scanned in 0.73 seconds
sudo nmap -sS www.baidu.com
Starting Nmap 5.00 ( http://nmap.org ) at 2011-07-15 13:04 CST
Warning: Hostname www.baidu.com resolves to 2 IPs. Using 119.75.218.45.
Failed to find device eth0 which was referenced in /proc/net/route
Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
Nmap done: 1 IP address (0 hosts up) scanned in 3.50 seconds