Icmp redirect 重定向信息用于支持路由功能。选择更优的路径。
TTL:如果网络中存在环路,则ip报文可能在网络中循环而无法到达目的地。TTL字段限定了ip报文的生存时间,保证无法到达目的地的报文最终被丢弃。(防止环路,也可以检测环路)
tracert :可以帮助管理员发现环路
华为交换机:
<SW>ping ?
-a Select source IP address, the default is the IP address of the
output interface
-c Specify the number of echo requests to be sent, the default is
5
-d Specify the SO_DEBUG option on the socket being used
-f Set Don't Fragment flag in packet (IPv4-only)
-h Specify TTL value for echo requests to be sent, the default is
255
-i Select the interface sending packets
<SW>tracert ?
-a Set source IP address, the default is the IP address of the
output interface
-f First time to live, the default is 1
-m Max time to live, the default is 30
-name Display the host name of the router on each hop
-p Destination UDP port number, the default is 33434
-q Number of probe packet, the default is 3
pathping --help (一般用于windowns)
选项:
-g host-list 与主机列表一起的
-h maximum_hops 搜索目标的最大跃
-i address 使用指定的源地址
-n 不将地址解析成主
-p period 两次 Ping 之间等
-q num_queries 每个跃点的查询数
-w timeout 每次回复等待的超
-4 强制使用 IPv4。
-6 强制使用 IPv6。
tracepath --help (一般用于linux)
tracepath: invalid option -- '-'
Usage: tracepath [-n] [-b] [-l <len>] [-p port] <destination>