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
Next revision
Previous revision
adding_routes [2017/07/04 08:16] luke7858adding_routes [2024/05/23 07:26] (current) – external edit 127.0.0.1
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: 2024/05/23 07:26 (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