how to set up static routes in RHEL4

Allen K. Smith lazlor at bigboy.lotaris.org
Fri May 19 14:25:57 UTC 2006


On Friday 19 May 2006 02:21, Fabien Germain wrote:
> Hi,
> 
> On 5/19/06, Götz Reinicke <goetz.reinicke at filmakademie.de> wrote:
> > where and how do I set up static routes in RHEL4? Is it the same as for
> > RHEL3 as shown here:
> >
> > http://kbase.redhat.com/faq/FAQ_79_2561.shtm
> >
> > using the a file /etc/sysconfig/network-scripts/route-eth(N)
> 
> No, it's now in /etc/sysconfig/static-routes, and looks like that :
> 
> any net 192.168.34.0 netmask 255.255.255.0 gw 192.168.1.3
> any net 192.168.96.0 netmask 255.255.255.0 gw 192.168.1.3
> any net 192.168.97.0 netmask 255.255.255.0 gw 192.168.1.3
> 
> Fabien
> 

Both methods work and are good for different things. One advantage of the route-eth? scripts is that the routes are brought up and down when the interface is. 

-Allen




More information about the redhat-list mailing list