Discussion Locked

Linux 6.2 Route won't stay put

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I can ping the inside Eth0 on the cisco 2610. Cannot ping outside IP. One route add eth0 default gw 192.168.0.x -later I can ping outside but only for a few seconds then it's back to the connect: network unreachable.
RedHat 6.2 (Zoot) HP Netserver. I'm Crash Coursing this new IT position. hehe but who doesn't at some time?

Thnx

2 replies

by gregory pleau

First thing I would do for simplicity sake is to start XWindows (startx if it is not there when the system starts up) and execute 'netcfg', then add the default gateway there.

If no XWindows, edit /etc/sysconfig/network-scripts/ifcfg-eth0 and putin this line
GATEWAY 192.168.0.x

by vfrunza

Even without X, from the console, call netconf and search for default route and type in your ip address. Or, in /etc/rc.d/init.d add in the file rc.local, at the end:
/sbin/route add default gw your_ip dev eth0

This discussion is closed to new replies.