Networking Forums

Networking Forums > Computer Networking > Linux Networking > Default route - help...

Reply
Thread Tools Display Modes

Default route - help...

 
 
Adam
Guest
Posts: n/a

 
      07-08-2003, 10:47 AM
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
 
 
 
 
Koen
Guest
Posts: n/a

 
      07-08-2003, 01:23 PM
vi /etc/sysconfig/network

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

koen

"Adam" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
default route ignored when ppp0 up Don Linux Networking 10 05-01-2012 03:49 PM
cannot set the default route in a rh9 box Monroe_Buffalo Linux Networking 2 11-11-2005 06:43 PM
RH9 default route Fabio C. Linux Networking 2 04-14-2004 12:07 PM
Redundancy with second default route David Linux Networking 1 10-13-2003 05:20 PM
dhcp default route JA Linux Networking 1 09-13-2003 03:13 AM



1 2 3 4 5 6 7 8 9 10 11