和所有的其他ICMP查询报文一样,ping程序的ICMP报文必须有标识符字段和序号字段,其格式如下所示:
为了说明ping程序,最好的方式是使用它,先给出我的主机信息,我的主机路由表如下:
1: 内核 IP 路由表
2: Destination Gateway Genmask Flags MSS Window irtt Iface
3: 10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
4: link-local * 255.255.0.0 U 0 0 0 eth0
5: default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
最新评论