This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
To: redhat-list@listman.redhat.com From: "J. M. Brenner" <doom@kzsu.stanford.edu> Subject: Which boot script should have the route set-up? Date: Wed, 05 Mar 2003 20:53:24 -0800 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. === To: redhat-list@listman.redhat.com From: "Mikkel L. Ellertson" <mikkel@Infinity-ltd.com> Subject: Re: Which boot script should have the route set-up? Date: Thu, 6 Mar 2003 00:58:36 -0600 (CST) 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 ===