Difference between revisions of "Linux command: route"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "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") |
Rafahsolis (talk | contribs) |
||
| Line 4: | Line 4: | ||
Delete route: | Delete route: | ||
route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0 | 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 | ||
Revision as of 09:52, 5 April 2017
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