Thursday, May 5, 2011

How to make persistent static route

■ Requirement : make route persistent 
■ OS Environment : Linux[RHEL, Centos]
■ Application: route
■ Implementation Steps : 

1. Edit /etc/sysconfig/network-scripts/route-ethX and add following :

NOTE: Replace the address here.

2. Restart network service :

$ service network restart

3. If you use bond0 device : add following entries in /etc/sysconfig/network-scripts/route-

default via X.X.X.X dev bond0 via X.X.X.X dev bond0

NOTE: X.X.X.X is the gateway IP address

No comments:

Post a Comment