User Tools

Site Tools


adding_routes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
adding_routes [2017/07/04 08:16] – luke7858adding_routes [2017/07/04 08:17] (current) – luke7858
Line 6: Line 6:
 ip route add <destination>/32 via <gateway> dev <interface> ip route add <destination>/32 via <gateway> dev <interface>
 </sxh> </sxh>
 +\\
 Once you have confirmed the route is working, you will need to add it to configuration file to make sure the route survives a reboot. Replace <interface> with the interface name Once you have confirmed the route is working, you will need to add it to configuration file to make sure the route survives a reboot. Replace <interface> with the interface name
 <sxh bash> <sxh bash>
 vim /etc/sysconfig/network-scripts/route-<interface> vim /etc/sysconfig/network-scripts/route-<interface>
 </sxh> </sxh>
 +\\
 Once you are in the file, add the route like you did above without the commands: Once you are in the file, add the route like you did above without the commands:
 <sxh bash> <sxh bash>
adding_routes.1499156217.txt.gz · Last modified: (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki