我正在使用两个ubuntu机器,说A和B.他们的IP地址分别是192.168.0.122和192.168.0.3。 他们都连接到相同的无线热点。 在A和B上,我都运行了sysctl net.ipv4.icmp_echo_ignore_broadcasts ,并且两者都返回net.ipv4.icmp_echo_ignore_broadcasts = 0 。
但是当我从B ping 224.0.0.1时,A不响应:
~$ ping 224.0.0.1 -c 3 PING 224.0.0.1 (224.0.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=0.038 ms 64 bytes from 192.168.0.3: icmp_seq=2 ttl=64 time=0.047 ms 64 bytes from 192.168.0.3: icmp_seq=3 ttl=64 time=0.053 ms --- 224.0.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.038/0.046/0.053/0.006 ms`
同样的formsA.
我究竟做错了什么 ? 我怎样才能得到A的回应,在B上ping 224.0.0.1? 我不知道这是否有帮助,但这是来自A的netstat -g的结果:
~$ netstat -g IPv6/Adhésions au groupe IPv4 Interface RefCnt Group --------------- ------ --------------------- lo 1 224.0.0.1 eth0 1 224.0.0.1 wlan0 1 224.0.0.251 wlan0 1 224.0.0.1 lo 1 ip6-allnodes lo 1 ff01::1%4222428297 eth0 1 ip6-allnodes eth0 1 ff01::1%4222428297 wlan0 1 ff02::fb%4222428297 wlan0 1 ff02::1:ff63:ec3f%4222428297 wlan0 1 ip6-allnodes wlan0 1 ff01::1%4222428297
从B:
~$ netstat -g IPv6/Adhésions au groupe IPv4 Interface RefCnt Group --------------- ------ --------------------- lo 1 224.0.0.1 eth0 1 224.0.0.1 wlan0 1 224.0.0.251 wlan0 1 224.0.0.1 lo 1 ip6-allnodes getnameinfo failed lo 1 [INCONNU] getnameinfo failed eth0 1 [INCONNU] getnameinfo failed eth0 1 [INCONNU] eth0 1 ip6-allnodes getnameinfo failed eth0 1 [INCONNU] getnameinfo failed wlan0 1 [INCONNU] getnameinfo failed wlan0 1 [INCONNU] wlan0 1 ip6-allnodes getnameinfo failed wlan0 1 [INCONNU]
感谢您的帮助