1.ip route show
- $iprouteshow
- defaultvia192.168.217.2deveth0metric100
- 192.168.122.0/24devvirbr0protokernelscopelinksrc192.168.122.1
- 192.168.217.0/24deveth0protokernelscopelinksrc192.168.217.129
2.route -n ornetstat -rn
- $route-n
- KernelIProutingtable
- DestinationGatewayGenmaskFlagsMetricRefUseIface
- 0.0.0.0192.168.217.20.0.0.0UG10000eth0
- 192.168.122.00.0.0.0255.255.255.0U000virbr0
- 192.168.217.00.0.0.0255.255.255.0U000eth0
3.traceroute www.baidu.com
- $traceroutewww.baidu.com
- traceroutetowww.baidu.com(119.75.218.77),30hopsmax,60bytepackets
- 1localhost(192.168.217.2)0.607ms0.546ms1.379ms
- 2***
- 3***
- 4***
- 5***
- 6***
- 7***
- 8***
- 9***
- 10***