Click to See Complete Forum and Search --> : Routing table issue


donpeggy
08-20-2001, 12:32 AM
I'm brand spanking new to linux. I am playing with Red Hat 7.1.

We have cable dsl and share it with W98 computers using a linksys router.

The computer I have set up with linux can ping the other computers and the router at start up. However I have to manually enter the following command (as root) to get access to the outside world

route add default gw 192.168.1.1

Once I do that everything is okay. I can even log out as root and log in as a user and it still works, but if I reboot it disappears.

How do I make it permanent?

Thanks

Don

ps The KDE and Gnome network configurators seem to have the proper gateway info, but it isn't sticking.

jumpedintothefire
08-20-2001, 12:39 AM
pico /etc/sysconfig/network
add:

GATEWAY="111.222.333.444"
GATEWAYDEV="eth?"

Replace with your info..

donpeggy
08-20-2001, 01:23 AM
Thanks Jumped! You showed me the way. Actually the network file had the gateway ip and name in it. However, I had assigned the GATEWAYDEV a made up name "linksys". Apparently the name should be the name of the device which is associated with my computer eg eth0 for my nic.

Thus changing the name to eth0 fixed it.

Thanks again. I'll have to keep monitoring this site as I dig into linux. It has been years since I used command lines but I think I actually missed it. Once you learn the command it is very powerful.

Don