To add a route, you can use the following command and replacing <destination>, <gateway>, <interface>:
1 |
ip route add <destination> /32 via <gateway> dev <interface> |
1 |
vim /etc/sysconfig/network-scripts/route- <interface> |
1 |
<destination> /32 via <gateway> dev <interface> |
1 |
/etc/sysconfig/network-scripts/ifup-routes <interface name> |
1 |
ip route get <destination> |