FreeBSD
freebsd:~ $ netstat -rW
Routing tables
Internet:
Destination Gateway Flags Nhop# Mtu Netif Expire
default 11.155.93.1 UGS 6 1500 em0
11.155.93.0/24 link#1 U 3 1500 em0
11.155.93.77 link#2 UHS 5 16384 lo0
localhost link#2 UH 1 16384 lo0
Internet6:
Destination Gateway Flags Nhop# Mtu Netif Expire
::/96 link#2 URS 6 16384 lo0
default fe80::1%em0 UGS 7 1500 em0
localhost link#2 UHS 1 16384 lo0
::ffff:0.0.0.0/96 link#2 URS 6 16384 lo0
fd72:3264:3252:f493::/64 link#1 U 5 1500 em0
fd72:3264:3252:f493:0:1860:2427:2e87 link#2 UHS 4 16384 lo0
fe80::%lo0/10 link#2 URS 6 16384 lo0
fe80::%em0/64 link#1 U 5 1500 em0
fe80::1a60:24ff:fe27:2e87%lo0 link#2 UHS 4 16384 lo0
fe80::%lo0/64 link#2 U 3 16384 lo0
fe80::1%lo0 link#2 UHS 2 16384 lo0
ff02::/16 link#2 URS 6 16384 lo0
freebsd:~ $ route -n show 8.8.8.8
route to: 8.8.8.8
destination: 0.0.0.0
mask: 0.0.0.0
gateway: 11.155.93.1
fib: 0
interface: em0
flags:
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
Linux
> netstat -rnW
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 11.155.4.1 0.0.0.0 UG 0 0 0 eth0
11.155.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 11.155.4.1 0.0.0.0 UG 0 0 0 eth0
11.155.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
> ip route
default via 11.155.4.1 dev eth0 proto dhcp src 10.255.4.253 metric 100
11.155.4.0/24 dev eth0 proto kernel scope link src 10.255.4.253 metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 11.155.4.1 0.0.0.0 UG 100 0 0 eth0
11.155.4.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
> route -ne
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 11.155.4.1 0.0.0.0 UG 0 0 0 eth0
11.155.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0

