[root@gc1 ~]# ping 192.168.6.111
PING 192.168.6.111 (192.168.6.111) 56(84) bytes of data.
64 bytes from 192.168.6.111: icmp_seq=1 ttl=64 time=0.382 ms
64 bytes from 192.168.6.111: icmp_seq=2 ttl=64 time=0.320 ms
某一台主机的
[root@gc1 ~]# arp -a 192.168.6.111
? (192.168.6.111) at 08:00:27:00:40:0E [ether] on eth0
全部的
[mysql@GECS1DB2 ~]$ arp -a
? (132.42.33.40) at 84:8f:69:3f:77:ae [ether] on bond01
? (132.42.33.82) at 00:1b:ed:ce:31:80 [ether] on bond01
? (132.42.33.47) at 84:8f:69:3f:e6:15 [ether] on bond01
? (132.42.33.39) at 84:8f:69:3f:77:a1 [ether] on bond01
? (132.42.33.65) at 84:8f:69:3f:f2:55 [ether] on bond01
? (132.42.33.97) at 84:8f:69:43:0e:af [ether] on bond01
? (132.42.33.64) at 84:8f:69:3f:f2:48 [ether] on bond01
? (132.42.33.43) at 84:8f:69:3f:77:bb [ether] on bond01
? (132.42.33.48) at 84:8f:69:3f:e6:22 [ether] on bond01
? (132.42.33.46) at 84:8f:69:43:a1:a2 [ether] on bond01
? (132.42.33.1) at 00:00:5e:00:01:01 [ether] on bond01
? (132.42.33.81) at 00:1b:ed:ce:57:c0 [ether] on bond01
? (132.42.33.195) at 84:8f:69:43:3f:bc [ether] on bond01
? (132.42.33.55) at 84:8f:69:3f:e5:e1 [ether] on bond01
? (132.42.33.63) at 84:8f:69:3f:f2:3b [ether] on bond01
PING 192.168.6.111 (192.168.6.111) 56(84) bytes of data.
64 bytes from 192.168.6.111: icmp_seq=1 ttl=64 time=0.382 ms
64 bytes from 192.168.6.111: icmp_seq=2 ttl=64 time=0.320 ms
某一台主机的
[root@gc1 ~]# arp -a 192.168.6.111
? (192.168.6.111) at 08:00:27:00:40:0E [ether] on eth0
全部的
[mysql@GECS1DB2 ~]$ arp -a
? (132.42.33.40) at 84:8f:69:3f:77:ae [ether] on bond01
? (132.42.33.82) at 00:1b:ed:ce:31:80 [ether] on bond01
? (132.42.33.47) at 84:8f:69:3f:e6:15 [ether] on bond01
? (132.42.33.39) at 84:8f:69:3f:77:a1 [ether] on bond01
? (132.42.33.65) at 84:8f:69:3f:f2:55 [ether] on bond01
? (132.42.33.97) at 84:8f:69:43:0e:af [ether] on bond01
? (132.42.33.64) at 84:8f:69:3f:f2:48 [ether] on bond01
? (132.42.33.43) at 84:8f:69:3f:77:bb [ether] on bond01
? (132.42.33.48) at 84:8f:69:3f:e6:22 [ether] on bond01
? (132.42.33.46) at 84:8f:69:43:a1:a2 [ether] on bond01
? (132.42.33.1) at 00:00:5e:00:01:01 [ether] on bond01
? (132.42.33.81) at 00:1b:ed:ce:57:c0 [ether] on bond01
? (132.42.33.195) at 84:8f:69:43:3f:bc [ether] on bond01
? (132.42.33.55) at 84:8f:69:3f:e5:e1 [ether] on bond01
? (132.42.33.63) at 84:8f:69:3f:f2:3b [ether] on bond01
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29096438/viewspace-1466357/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29096438/viewspace-1466357/
本文通过实际案例展示了如何使用Linux下的Ping和ARP命令来检查网络连通性和获取MAC地址信息。通过对192.168.6.111的Ping测试结果及后续的ARP查询,详细解释了这些常用网络诊断工具的具体应用。
2631

被折叠的 条评论
为什么被折叠?



