Default route - help...

Default route - help...

Post by Ada » Wed, 09 Jul 2003 19:47:37



Hi all,

I'm using a network where the nearest DNS host is outside the local
network.  In order to get my Linux hosts to resolve any hostname not
explicitly named in /etc/hosts I have set up a default route, pointing
to the default gateway, using /sbin/route (specifically, /sbin/route
add default gw defaultgateway).  Is this the only way to get this
arrangement to work?  Is there a better method?

Two of my recently built machines seem to be having trouble keeping
this default route in place.  Every time they reboot, the default
route seems to disappear from the routing table and needs to be added
manually.  Short of adding this step to the startup scripts, how can I
ensure that these machines can be rebooted and used to access hosts
outside the local net?

I'm using RH 7.2 (I know, I know, but I'm constrained).  Can anyone
point me to helpful documentation/HOWTOs/etc?

Thanks in advance for the help - Adam Cheney

 
 
 

Default route - help...

Post by Koen » Wed, 09 Jul 2003 22:23:53


vi /etc/sysconfig/network

GATEWAY=x.x.x.x
GATEWAYDEV=ethx (interface where the DG can be found on)

koen


Quote:> Hi all,

> I'm using a network where the nearest DNS host is outside the local
> network.  In order to get my Linux hosts to resolve any hostname not
> explicitly named in /etc/hosts I have set up a default route, pointing
> to the default gateway, using /sbin/route (specifically, /sbin/route
> add default gw defaultgateway).  Is this the only way to get this
> arrangement to work?  Is there a better method?

> Two of my recently built machines seem to be having trouble keeping
> this default route in place.  Every time they reboot, the default
> route seems to disappear from the routing table and needs to be added
> manually.  Short of adding this step to the startup scripts, how can I
> ensure that these machines can be rebooted and used to access hosts
> outside the local net?

> I'm using RH 7.2 (I know, I know, but I'm constrained).  Can anyone
> point me to helpful documentation/HOWTOs/etc?

> Thanks in advance for the help - Adam Cheney


 
 
 

Default route - help...

Post by Ada » Tue, 22 Jul 2003 20:45:21


-8<- snip ->8-

Quote:> > I'm using a network where the nearest DNS host is outside the local
> > network.  In order to get my Linux hosts to resolve any hostname not
> > explicitly named in /etc/hosts I have set up a default route, pointing
> > to the default gateway, using /sbin/route (specifically, /sbin/route
> > add default gw defaultgateway).  Is this the only way to get this
> > arrangement to work?  Is there a better method?

> > Two of my recently built machines seem to be having trouble keeping
> > this default route in place.  Every time they reboot, the default
> > route seems to disappear from the routing table and needs to be added
> > manually.  Short of adding this step to the startup scripts, how can I
> > ensure that these machines can be rebooted and used to access hosts
> > outside the local net?

> > I'm using RH 7.2 (I know, I know, but I'm constrained).  Can anyone
> > point me to helpful documentation/HOWTOs/etc?

> vi /etc/sysconfig/network

> GATEWAY=x.x.x.x
> GATEWAYDEV=ethx (interface where the DG can be found on)

Sorry for the delay in replying - it's been a hectic time...

These settings are already in place (and still the problem reoccurs).

Not that it is only two machines (these are identical hardware and, as
far as I can tell, identical OS builds - the other machines are
different hardware, but should be identical builds) out of six that
have this issue.  All are installed with an essentially identical
Linux set up, but these two keep losing their default route on reboot.

I am going to put the appropriate command in rc.local, but I'd like to
undertand what's going on an why it doesn't affect the other four
servers.  Can anyone help?

Thanks - Adam...