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

RE: How to make ppp0 default gateway automaticly?



> From: waldner@waldner.priv.at [mailto:waldner@waldner.priv.at]
> Sent: Thursday, August 16, 2001 4:31 PM
>
> >> <snip>
> >> >but how can I make ppp0 the default gateway automaticly when
> >> ppp0 is up?
> >> <snip>
> >>
> >> waldner@wz:~$ grep def /etc/ppp/options
> >> defaultroute
> >>
> >
> >I also believe that
> >route add default ppp0
> >also works (although it is a while since I have done tis.

Just looked at the ISDN scripts here at work...
route add default ippp0
should be the same for ppp0 tho

>
> dunno, but if you have to set the route manually
>  route add -net 0/0 ppp0
> will certainly work.
>
> It´s just that Tao asked for auto/magic, and that lies in the
> options-file resp. in invoking pppd like
>  pppd eth0 defaultroute
> (maybe the options must be reserved, I don´t have PPPoE-hacks in my
>  pppd, only PPTP- ones).
>
defaultroute in options is definately the right way to go.
I had one machine here a while ago where we put the route sdd default.... in
the ip-up script

Ian




Reply to: