[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lost default gw



remigio(realelino@tiscali.it) is reported to have said:
> Hi,
> I've installed Debian Etch (KDE) and I put in rc.local the command:
> 
> ip route add via 192.168.10.254
> 
> for setting the default gw at startup.
> When the pc starts, using 'ip route' on a shell I can see the route is
> present, but if I wait for a minute the route disappear, likely
> something overwrote the network settings.
> What could be?
> Thanks

I don't use KDE so ....   I add the gateway in /etc/network/interfaces
as part of the interface entry.

auto eth0
iface eth0 inet manual
        address 192.168.1.8
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.3

or in some cases like this

route add default gateway 192.168.1.3

See man interfaces for more examples.

Wayne

-- 
Real Programmers don't write in PL/I.  PL/I is for programmers who
can't decide whether to write in COBOL or FORTRAN.
_______________________________________________________



Reply to: