1832806 Members
2946 Online
110045 Solutions
New Discussion

Re: Gateway on boot

 
SOLVED
Go to solution
Qcheck
Super Advisor

Gateway on boot

Hello, I have a RedHat 5.3 server which has the gateway information in /etc/sysconfig/network file, where the gateway doesn't configure on boot(can't ping the gateway, hence can't get out). But when I add manually with the following command once the O/S is up and running, it works:
# route add default gw dev bond1

There are other (4)servers, which works on reboot where it gets the gateway information from /etc/sysconfig/network file, but this is different gateway than the above server, which is on different network.

So anyone can let me know what could be wrong?
Thanks in an advance!
3 REPLIES 3
Matti_Kurkela
Honored Contributor
Solution

Re: Gateway on boot

Perhaps missing quotes, invisible characters or other typos in your network configuration file?

Please run "cat -t /etc/sysconfig/network" to check.

If you run "ifdown bond1; ifup bond1", do you see any error messages?

Run "ipcalc --network ". Does the result match the NETWORK setting in /etc/sysconfig/network-scripts/ifcfg-bond1?
(If it doesn't, /etc/sysconfig/network-scripts/ifup-eth will skip the gateway setting.)

MK
MK
Jayakrishnan G Naik
Trusted Contributor

Re: Gateway on boot

Hi

You can try this

Add the GATEWAY=XX.XX.XX.XX entry in /etc/sysconfig/network-scripts/ifcfg-bond1 file and attempt a reboot. Hope this will solve your problem.

XX.XX.XX.XX = your IP address.

Thanks & Regards
Jayakrishnan G Naik
Qcheck
Super Advisor

Re: Gateway on boot

MK, Thank you for the response. Currently, we don't have access to the server so waiting to get the access and will try those. Will keep you posted.

Jagan, I did that to begin with and didn't work.

Thank you