Default route - help...

This is a discussion on Default route - help... within the Linux Networking forums, part of the Linux Forums category; Hi all, I'm using a network where the nearest DNS host is outside the local network. In order to ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2003
Adam
 
Posts: n/a
Default Default route - help...

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
Reply With Quote
  #2 (permalink)  
Old 07-08-2003
Koen
 
Posts: n/a
Default Re: Default route - help...

vi /etc/sysconfig/network

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

koen

"Adam" <adam_cheney@hotmail.com> wrote in message
news:214d0889.0307080247.4811569e@posting.google.c om...
> 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



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0