On Fri, Feb 27, 2009 at 10:48:29PM +0300, Sergey Khentov wrote:
> Oops, it seems that the problem with disappearings of default route
> was not fixed. 30 minutes I was away from my PC - and route has
> disappeared. dmesg says nothing.
> 
> Any ideas?
> 

Are you running dhclient on some interface? Routes should not disappear
but dhcleint is known to kill default routes of other interfaces.


> >> # cat /etc/hostname.pppoe0
> >> inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev rl2 \
> >>        authproto pap authname szt authkey szt up
> >> !/sbin/route add default 0.0.0.1
> >
> > Looks like you messed up ifconfig(8) and hostname.if(5) syntax.
> > You need something like:
> >
> > inet 0.0.0.0 255.255.255.255 NONE pppoedev rl2
> > authproto pap authname szt authkey szt
> > dest 0.0.0.1
> > up
> > !/sbin/route add default 0.0.0.1
> 

Btw. it is better to use
/sbin/route add default -ifp pppoe0 0.0.0.1
as route command as it ensures that the default route is bound to the
correct interface.

-- 
:wq Claudio

Reply via email to