用户工具

站点工具


网络配置:ping:ping

ping: icmp open socket: Operation not permitted 的解决办法

yyc@localhost ~ $ sudo route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.190.40.0 * 255.255.254.0 U 2 0 0 eth0 loopback localhost 255.0.0.0 UG 0 0 0 lo default 10.190.40.1 0.0.0.0 UG 2 0 0 eth0

yyc@localhost ~ $ ping 10.190.40.1 ping: icmp open socket: Operation not permitted

yyc@localhost ~ $ ls -l /bin/ping
-rwxrwxrwx 1 root root 34628 9月 2 12:15 /bin/ping

yyc@localhost ~ $ sudo chmod u+s /bin/ping

yyc@localhost ~ $ ls -l /bin/ping
-rwsrwxrwx 1 root root 34628 9月 2 12:15 /bin/ping

yyc@localhost ~ $ ping 10.190.40.1
PING 10.190.40.1 (10.190.40.1) 56(84) bytes of data.
64 bytes from 10.190.40.1: icmp_req=1 ttl=255 time=0.871 ms
64 bytes from 10.190.40.1: icmp_req=2 ttl=255 time=0.865 ms

— 10.190.40.1 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.865/0.868/0.871/0.003 ms

网络配置/ping/ping.txt · 最后更改: 2023/06/13 05:25 由 127.0.0.1