本地连接ip设置(本地连接怎样设置ip地址)

前沿拓展:


一、Iproute2简介

,以IP格式输出数据。2、跳数设置(-m)$ traceroute -m 10 www.taobao.com

输出:

traceroute to www.baidu.com (183.232.231.174), 10 hops max, 60 byte packets
1 gateway (192.168.182.2) 0.116 ms 0.095 ms 0.036 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *3、显示IP地址,不查主机名(-n)$ traceroute -n -m 4 www.baidu.com

输出:

traceroute to www.baidu.com (183.232.231.174), 4 hops max, 60 byte packets
1 192.168.182.2 0.079 ms 0.039 ms 0.037 ms
2 * * *
3 * * *
4 * * *4、探测包使用的基本UDP端口设置8080(-p)$ traceroute -p 8080 -m 4 www.baidu.com

输出:

traceroute to www.baidu.com (183.232.231.174), 4 hops max, 60 byte packets
1 gateway (192.168.182.2) 0.096 ms 0.042 ms 0.067 ms
2 * * *
3 * * *
4 * * *5、绕过正常的路由表,直接发送到网络相连的主机(-r)$ traceroute -r www.baidu.com

输出:

traceroute to www.baidu.com (183.232.231.174), 30 hops max, 60 byte packets
connect: Network is unreachable6、把对外发探测包的等待响应时间设置为3秒(-w)$ traceroute -w 3 -m 4 www.baidu.com

输出:

traceroute to www.baidu.com (183.232.231.174), 4 hops max, 60 byte packets
1 gateway (192.168.182.2) 0.102 ms 0.065 ms 0.066 ms
2 * * *
3 * * *
4 * * *

拓展知识:

原创文章,作者:九贤生活小编,如若转载,请注明出处:http://www.wangguangwei.com/79453.html