adding_routes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
adding_routes [2017/07/04 08:15] – created luke7858 | adding_routes [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=== Adding Routes === | === Adding Routes === | ||
+ | \\ | ||
== CentOS 6.x === | == CentOS 6.x === | ||
To add a route, you can use the following command and replacing < | To add a route, you can use the following command and replacing < | ||
Line 5: | Line 6: | ||
ip route add < | ip route add < | ||
</ | </ | ||
+ | \\ | ||
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 < | 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 < | ||
<sxh bash> | <sxh bash> | ||
vim / | vim / | ||
</ | </ | ||
+ | \\ | ||
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> | ||
< | < | ||
</ | </ | ||
+ | \\ | ||
+ | You could instead, add the route straight into the configuration file and then run the following command to test the file: | ||
+ | <sxh bash> | ||
+ | / | ||
+ | </ | ||
+ | \\ | ||
+ | == Testing the interface == | ||
+ | <sxh bash> | ||
+ | ip route get < | ||
+ | </ |
adding_routes.1499156106.txt.gz · Last modified: 2024/05/23 07:26 (external edit)