You are here

Adding static routes to CENTOS

Let's say the interface is eth0, you would create file perhaps using nano like this:

nano /etc/sysconfig/network-scripts/route-eth0

Then add your network/subnet and the gateway/router (example): via

where is the router and the is the network/subnet

Then restart the network using
service network restart

Good luck!