Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default GW - Routing issues

Status
Not open for further replies.

QMan8

MIS
Oct 11, 2003
15
US
Greetings,
Okay, I give up! I looked and modified my network device "eth0" with the correct IP, Netmask, and Gateway. The only the way for me to make the default gateway to work is to set it on the fly by 'add route default gw 192.168.xx.xx dev eth0' But this setting will not stick after a reboot. Where and how can I make this default gateway to stick? I'm currently running Red Hat Advanced Server 2.1

Please help!!

Thanks,

Qman8
 
I don't know Red Hat Advanced Server 2.1 but there should be some config script in /etc that is responsible for containing your default gateway. Have a look for /etc/sysconfig/network or /etc/congig.d.
Maybe do a
find /etc -type f -exec grep -il gateway {} \;
to find files containing a "gateway" variable that might be not set in your case or
find /etc | grep -i gateway
to find files named with something like gateway. It must be somewhere in /etc, good luck.

laters
zaxxon
 
This is not AS, but 9 shouldn't be so different:

Code:
ns1(/etc/sysconfig)$ cat network
NETWORKING=yes
HOSTNAME=ns1.comfortechassist.com
GATEWAY=66.162.47.45

That's where the gui tools set it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top