June 3, 201510 yr A very helpful command that is good to know $ sudo route -nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface0.0.0.0 10.6.0.129 0.0.0.0 UG 0 0 0 eth010.6.0.128 0.0.0.0 255.255.255.224 U 0 0 0 eth0169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0-n option means that you want numerical IP addresses displayed, instead of the corresponding host names. $ netstat -rnKernel IP routing tableDestination Gateway Genmask Flags MSS Window irtt Iface0.0.0.0 10.6.0.129 0.0.0.0 UG 0 0 0 eth010.6.0.128 0.0.0.0 255.255.255.224 U 0 0 0 eth0169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0-r option specifies that you want the routing table-n option is similar to that of the route command $ ip route listdefault via 10.6.0.129 dev eth010.6.0.128/27 dev eth0 proto kernel scope link src 10.6.0.136169.254.0.0/16 dev eth0 scope link metric 1000192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
Create an account or sign in to comment