ping: sendmsg: Operation not permitted

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
haryjessie
帖子: 3
注册时间: 2009-02-09 17:36

ping: sendmsg: Operation not permitted

#1

帖子 haryjessie » 2009-02-09 17:39

我在公司用无线网卡, 发现下面的问题:

我ip已经得到, 路由也正确, 但是却ping不了网关, 从而上不了外网, 有哪位大虾知道是什么原因,
log如下:

hary@gardenia:~/tmp$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2968 (2.9 KB) TX bytes:2968 (2.9 KB)

wlan0 Link encap:Ethernet HWaddr 00:1f:3c:0d:59:e7
inet addr:192.168.0.125 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:1331 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:135752 (135.7 KB) TX bytes:4543 (4.5 KB)

wmaster0 Link encap:UNSPEC HWaddr 00-1F-3C-0D-59-E7-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 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)

hary@gardenia:~/tmp$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 2 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
hary@gardenia:~/tmp$ ping 192.168.0.125
PING 192.168.0.125 (192.168.0.125) 56(84) bytes of data.
64 bytes from 192.168.0.125: icmp_seq=1 ttl=64 time=0.039 ms
64 bytes from 192.168.0.125: icmp_seq=2 ttl=64 time=0.038 ms
^C
--- 192.168.0.125 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.038/0.038/0.039/0.006 ms
hary@gardenia:~/tmp$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms

hary@gardenia:~/tmp$
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

Re: ping: sendmsg: Operation not permitted

#2

帖子 BigSnake.NET » 2009-02-09 18:16

可能是 iptable 拦了
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
tiking
帖子: 158
注册时间: 2008-12-12 20:52

Re: ping: sendmsg: Operation not permitted

#3

帖子 tiking » 2009-02-09 22:19

加sudo。
haryjessie
帖子: 3
注册时间: 2009-02-09 17:36

Re: ping: sendmsg: Operation not permitted

#4

帖子 haryjessie » 2009-02-10 11:40

不是sudo的原因, 也不是iptables的原因, 我将iptables停了, 重启还是这样。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

Re: ping: sendmsg: Operation not permitted

#5

帖子 BigSnake.NET » 2009-02-10 11:47

haryjessie 写了:不是sudo的原因, 也不是iptables的原因, 我将iptables停了, 重启还是这样。
ifconfig 看看
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
回复