Networking Forums

Networking Forums > Computer Networking > Linux Networking > Default gateway setup

Reply
Thread Tools Display Modes

Default gateway setup

 
 
Joel Moore
Guest
Posts: n/a

 
      10-06-2006, 04:46 PM
I've got a machine running White Box Enterprise Linux. Everytime I reboot
the default gateway gets set to the wrong address. The GATEWAY parameter
in /etc/sysconfig/network points to the correct address. Where else could
this be getting set and overridden?

joel moore
 
Reply With Quote
 
 
 
 
Jack Snodgrass
Guest
Posts: n/a

 
      10-06-2006, 04:50 PM
On Fri, 06 Oct 2006 16:46:34 +0000, Joel Moore wrote:

> I've got a machine running White Box Enterprise Linux. Everytime I reboot
> the default gateway gets set to the wrong address. The GATEWAY parameter
> in /etc/sysconfig/network points to the correct address. Where else could
> this be getting set and overridden?
>
> joel moore


/etc/sysconfig/network-scripts/ifcfg-ethX
I think that the /etc/sysconfig/network file usually just has the
device to use... not the IP Address of the gateway. I have multipe
devices so I have
GATEWAYDEV=eth1
in my file...
my ifcfg-eth1 file has
GATEWAY=xxx.xxx.xxx.xxx

jack


--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
Joel Moore
Guest
Posts: n/a

 
      10-06-2006, 05:06 PM
"Jack Snodgrass" <(E-Mail Removed)> wrote in
news:GPvVg.919$Ed5.397@trnddc03:

> On Fri, 06 Oct 2006 16:46:34 +0000, Joel Moore wrote:
>
>> I've got a machine running White Box Enterprise Linux. Everytime I
>> reboot the default gateway gets set to the wrong address. The
>> GATEWAY parameter in /etc/sysconfig/network points to the correct
>> address. Where else could this be getting set and overridden?
>>
>> joel moore

>
> /etc/sysconfig/network-scripts/ifcfg-ethX
> I think that the /etc/sysconfig/network file usually just has the
> device to use... not the IP Address of the gateway. I have multipe
> devices so I have
> GATEWAYDEV=eth1
> in my file...
> my ifcfg-eth1 file has
> GATEWAY=xxx.xxx.xxx.xxx
>
> jack


Thanks, that was it.

Strange, though. My /etc/sysconfig/network has GATEWAY=xxx.xxx.xxx.xxx
and no GATEWAYDEV line. Maybe it's a mistake that just gets ignored.
 
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
setup default gateway ? Timmy Windows Networking 3 05-25-2007 09:31 PM
Default gateway Maciek Windows Networking 2 08-08-2005 04:13 AM
Linux: Default gateway fails, must use local IP for default gw instead John Sasso Wireless Internet 2 07-08-2004 08:30 AM
default gateway setup Weilin Gong Linux Networking 0 06-16-2004 01:13 AM
default gateway Misty Windows Networking 0 07-03-2003 06:51 PM



1 2 3 4 5 6 7 8 9 10 11