Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jul 092012
 

How to show current routing table

Answer:

To show the current system's routing table, you can try:

# sudo netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         102.147.87.1    0.0.0.0         UG        0 0          0 eth0
0.0.0.0         102.147.45.1    0.0.0.0         UG        0 0          0 eth0
102.147.45.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
102.147.87.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>