traceroute
# -I: ICMP, -U: UDP, -T: TCPtraceroute -I
# tells the network to route the packet through the specified gateway # (most routers have disabled source routing for security reasons).traceroute -g 10.10.10.5
ping 一般默认走 ICMP 协议。
ICMP(Internet Control Message Protocol,互联网控制协议)是网络层协议,但是它不像 IP 协议和 ARP 协议一样直接传递给数据链路层,而是先封装成 IP 数据包然后再传递给数据链路层。所以在 IP 数据包中如果协议类型字段的值是 1 的话,就表示 IP 数据是 ICMP 报文。IP 数据包就是靠这个协议类型字段来区分不同的数据包的。
# bind the file test.img to loop device /dev/loop0losetup /dev/loop0 test.img
mkfs.ext4 /dev/loop0
mount -o discard /dev/loop0 /mnt
# list all loop deviceslosetup -la