Routing Table

To display the routing table in numerical addresses, one would use the “route -n” command:

$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0

With iproute, the equivalent command is “ip route show”:

$ ip route show
10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15 metric 1
default via 10.0.2.2 dev eth0 proto static

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.