Linux command: route

From RHS Wiki
Revision as of 09:52, 5 April 2017 by Rafahsolis (talk | contribs)
Jump to navigation Jump to search

Show routing table:

route -n

Delete route:

route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0

Add route:

route add -net 15.17.160.0/20 gw 15.17.160.1 metric 10 eth0