netstat

Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

Display routing table without resolving names
copy
8
1
netstat -rnDisplay routing table without resolving names

details |

Result:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
172.16.20.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
172.16.126.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         172.16.20.2     0.0.0.0         UG        0 0          0 eth1

Options: