TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [TCLUG:7103] default gateway weirdness



> > I did the following and got this error message:
> >
> > # route add default gw 10.22.2.250
> > SIOCADDRT: file exists
> >
> > What does this mean? There is no existing route to this 10.22.2.250
> > address, but I didn't think I needed one before I defined the
> default gw.
> > Any ideas?
>
> Try doing 'route delete default; route add default gw 10.22.2.250'. Might
> help. Redhat will generally define a default route even if there is no
> gateway.

I believe that is correct, however, 10.22.2.250 *does* need to be reachable
with existing routing information.  In short, it needs to be in the same
domain as the interface trying to use it.  This is probably already set up,
but I thought it might be worth clarifying.

To check, try doing a netstat -rn -- you should see something like:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.10.0    *               255.255.255.0   U      1500 0          0
eth0
127.0.0.0       *               255.0.0.0       U      3584 0          0 lo
default         192.168.10.254  0.0.0.0         UG     1500 0          0
eth0

Except where I have "192.168.10.0" you should have "10.0.0.0" or "10.22.2.0"
or something similar.