RH 5.2: Routing table losing default route/gateway

RH 5.2: Routing table losing default route/gateway

Post by Charles J. Boenin » Sat, 13 Mar 1999 04:00:00



We're running RH 5.2 Apollo, 1 NIC.

Here's what our working routing table looks like:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
206.100.166.128 *               255.255.255.192 U     0      0     1521 eth0
127.0.0.0       *               255.0.0.0       U     0      0       41 lo
default         206.100.166.190 0.0.0.0         UG    0      0     4935 eth0

this box was just setup and configured.  It seems to spontaneously/ramdomly
loose it's default route.

I'm no linux expert so I'm not too sure if this is the right way or not, but
the only way we can seem to get the route back is by doing the following:

route -add default netmask 0.0.0.0 dev eth0
route -add default netmask 0.0.0.0 gw 206.100.166.190 dev eth0

then the table looks like:

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
206.100.166.128 *               255.255.255.192 U     0      0     1521 eth0
127.0.0.0       *               255.0.0.0       U     0      0       41 lo
default         *               0.0.0.0         U     0      0       42 eth0
default         206.100.166.190 0.0.0.0         UG    0      0     4935 eth0

Any ideas?

Thanks
Charlie

 
 
 

RH 5.2: Routing table losing default route/gateway

Post by Sechylman » Wed, 17 Mar 1999 04:00:00




> route -add default netmask 0.0.0.0 dev eth0
> route -add default netmask 0.0.0.0 gw 206.100.166.190 dev eth0
> Any ideas?

> Thanks
> Charlie

You dont actually need the first line here... Just the second one. That is
the one that actually puts back the gateway. :)