Hi,
   Redhat also has a config file called "/etc/sysconfig/static-routes" 
although you don't have to use it.
The advantage of using rc.local is that it the options given are identical to 
what you would use on the command line.

Info on "/etc/sysconfig/static-routes" is (briefly) provided in the Redhat 
/usr/share/doc/initscripts/sysconfig.txt file.

I used the following options.

#touch /etc/sysconfig/static-routes             (create the empty file as root)

Use your favourite editor for the "static-routes" file. Replace these example 
ip addresses with your own subnet hosts.

(This is for hosts 2 and 3.) 

eth0    host    192.168.1.2  
eth0    host    192.168.1.3 

(For a subnet)
eth1    net     192.168.2.0     netmask 255.255.255.0

run "sevice network restart" to add the new routes.


regards,
Keith.


On Fri, 28 Jun 2002 23:25, Al wrote:
> Just two quick questions. Where do I insert the lines that set up my
> network routes properly in Redhat 7.3 to remember them next time, just save
> me having to re-enter them every time I reboot.
>
> Secondly, we have 3 dns servers at work and I was wondering where I tell
> Redhat to use these.


Reply via email to