On Wed, 5 Mar 2003, J. M. Brenner wrote:

> 
> So, I've got a routing table that more or less works for
> me.  Now where am I expected to put the "route add" commands 
> so that the routing table will still be there after I 
> reboot? 
> 
> My impression is that I need to create this file, and put
> them in there:
> 
>    /etc/sysconfig/static-routes
> 
> But I've seen a cryptic note to the effect that this is no 
> good for the "default route", so maybe that's not the whole 
> story. 
> 
> Either I'm being exceptionally thick, or the various and
> sundry documentation of redhat linux network administration
> is pretty lame.
> 
> I'm pretty close to just shoving it all in /etc/rc.d/rc.local
> and forgetting about it. 
> 
Well, I am lazy.  For the default route, I just put a gateway entry in 
/etc/sysconfig/network, and the default route takes care of itself.

NETWORKING=yes
GATEWAY=192.168.22.254
HOSTNAME=slave.Infinity-ltd.com

The route to the gateway is taken care of in my case because it is on
the same subnet as the NIC, and that NIC has a static IP address and
netmask.  This system is also running the DHCP server for the network, 
so most of the rest of the machines get all the routing info from this 
machine.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to