Networking Forums

Networking Forums > Computer Networking > Linux Networking > Gateway problem

Reply
Thread Tools Display Modes

Gateway problem

 
 
Shawn Melnic
Guest
Posts: n/a

 
      08-25-2004, 01:33 AM
Hello everyone,

Everytime I reboot my linux box (RH 8.0) I need
to set the Gateway manually "route add default gw 66.24.14.254"
I do have that in the network config file, but it doesn't work.

cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=zena
GATEWAY=66.24.14.254
NISDOMAIN=deepthroat

Any ideas?

Thanks,
SH
 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      08-25-2004, 01:46 AM
On 24 Aug 2004 18:33:18 -0700, Shawn Melnic wrote:
> Hello everyone,
>
> Everytime I reboot my linux box (RH 8.0) I need
> to set the Gateway manually "route add default gw 66.24.14.254"
> I do have that in the network config file, but it doesn't work.
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=zena
> GATEWAY=66.24.14.254
> NISDOMAIN=deepthroat
>
> Any ideas?


look in /var/log/messages and
/etc/sysconfig/network-scripts/ifcfg-eth0
 
Reply With Quote
 
Leon Kyneur
Guest
Posts: n/a

 
      08-25-2004, 04:52 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

have you tried setting the GATEWAY=66.24.14.254 under the specific
interface in /etc/sysconfig/network-scripts/ifcfg-ethX ?

leon

On Wed, 24 Aug 2004, Shawn Melnic wrote:

> Hello everyone,
>
> Everytime I reboot my linux box (RH 8.0) I need
> to set the Gateway manually "route add default gw 66.24.14.254"
> I do have that in the network config file, but it doesn't work.
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=zena
> GATEWAY=66.24.14.254
> NISDOMAIN=deepthroat
>
> Any ideas?
>
> Thanks,
> SH
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFBLBsbnNBGYRS6RLQRAi3yAKCKH/AlbaViYGDj8nRNLhaodU6WpACfTULg
lOr3fHt3jiSVwk6er0zU7/4=
=ncff
-----END PGP SIGNATURE-----
 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      08-25-2004, 04:05 PM
(E-Mail Removed) (Shawn Melnic) wrote in message news:<(E-Mail Removed). com>...
> Hello everyone,
>
> Everytime I reboot my linux box (RH 8.0) I need
> to set the Gateway manually "route add default gw 66.24.14.254"
> I do have that in the network config file, but it doesn't work.
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=zena
> GATEWAY=66.24.14.254
> NISDOMAIN=deepthroat
>
> Any ideas?
>
> Thanks,
> SH


GATEWAYDEV=ethX ... ?

Because of the way the ifup script and functions script work, it is
highly recommended that you use the graphical tool (neat or
redhat-config-network) to enter the networking info. It's not
necessary, but with profiles there are more files to be edited by hand
than you may be aware of ;-)

Also double check your /etc/nsswitch.conf just to make sure it's set
up properly for your nis service.

If you're using dhcp -- via a relay agent? -- the default route from
dhcp might supercede your static GW route depending on IP and
_netmask_. Your netmask/network the same on ethX and default GW
entry, aren't they?

The RH ref guide covers this stuff in two places -- ch3 and ch12:
https://www.redhat.com/docs/manuals/...ual/ref-guide/
ch3 ref:
https://www.redhat.com/docs/manuals/...UTDOWN-NETWORK
ch12 ref:
https://www.redhat.com/docs/manuals/...rkscripts.html

Both the "hard" copy on your disk (?) and the url link are good to
have on hand -- I know from experience ;-)

hth,
prg
email above disabled
 
Reply With Quote
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      08-25-2004, 04:05 PM
Shawn Melnic wrote:
> Hello everyone,
>
> Everytime I reboot my linux box (RH 8.0) I need
> to set the Gateway manually "route add default gw 66.24.14.254"
> I do have that in the network config file, but it doesn't work.
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=zena
> GATEWAY=66.24.14.254
> NISDOMAIN=deepthroat
>
> Any ideas?
>
> Thanks,
> SH


I don't know if it would help to put a line in the file:
/etc/sysconfig/static-routes
You should have there the routes for your interfaces.


--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Reply With Quote
 
Shawn Melnic
Guest
Posts: n/a

 
      08-25-2004, 09:30 PM
Leon Kyneur <(E-Mail Removed)> wrote in message news:<(E-Mail Removed) tedip.net.au>...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> have you tried setting the GATEWAY=66.24.14.254 under the specific
> interface in /etc/sysconfig/network-scripts/ifcfg-ethX ?
>
> leon
>
> On Wed, 24 Aug 2004, Shawn Melnic wrote:
>
> > Hello everyone,
> >
> > Everytime I reboot my linux box (RH 8.0) I need
> > to set the Gateway manually "route add default gw 66.24.14.254"
> > I do have that in the network config file, but it doesn't work.
> >
> > cat /etc/sysconfig/network
> > NETWORKING=yes
> > HOSTNAME=zena
> > GATEWAY=66.24.14.254
> > NISDOMAIN=deepthroat
> >
> > Any ideas?
> >
> > Thanks,
> > SH
> >

> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQFBLBsbnNBGYRS6RLQRAi3yAKCKH/AlbaViYGDj8nRNLhaodU6WpACfTULg
> lOr3fHt3jiSVwk6er0zU7/4=
> =ncff
> -----END PGP SIGNATURE-----


I added it the "route add .." line to /etc/rc.d/rc and it's working now.
-SH
 
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
gateway routing problem villa.alberto@gmail.com Linux Networking 2 11-21-2008 09:46 PM
Problem with DNS through a gateway Jim Haynes Linux Networking 3 06-15-2006 08:06 PM
gateway problem Geoff Windows Networking 1 05-20-2004 02:30 PM
problem with more than one gateway kim Windows Networking 5 09-11-2003 03:48 PM
problem using more than one gateway kim Windows Networking 2 09-10-2003 09:26 AM



1 2 3 4 5 6 7 8 9 10 11