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

Re: [TCLUG:7103] default gateway weirdness



Hello:

> From: Tim Wilson <wilson@chemsun.chem.umn.edu>
> To: Twin Cities Linux Users Group <tclug-list@mn-linux.org>
>
> Hey All,
>
> I was playing around on a machine today, installing RH6 and getting it on
> my network. After the installation there was no default gateway defined so
> 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?
>

I don't know what to say about your error message, but I
think the "approved" way to add a default route in RedHat
is to add a line like

   GATEWAY=10.22.2.250

to file /etc/sysconfig/network.

Or at least that's what I use, and it works.

Regards,
John