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

Re: Problem setting (new) default route with pppd after connecting



On Thu, Jun 21, 2001 at 09:49:08AM +0800, Yuchung Cheng wrote:
> first enable the "debug" options in /etc/ppp/peers/you_isp_name
> then check the /var/log/messages to see if /etc/ppp/ip-up is executed
> then check run-parts --test /etc/ppp/ip-up.d to see if your script is executed

Doh. I forgot to put a
#!/bin/sh
line on top of the script. It now works fine. It deletes the LAN
default route with
/sbin/route del default
and adds the new one with
/sbin/route add default gw ${PPP_REMOTE}

When the link goes down, it just does the opposite.
I wonder, when a user invokes pppd with pon and poff, how does
the process have the permissions needed to delete the default
route?

Alex
-- 
Alex Suzuki ..::.. asuzuki@bluewin.ch ..::.. http://www.cynox.ch
GEEK code:  GCS d+(-) s a--->-- C+++ UL P+>++ L+++>++++ E- W+++$
N++ o? K? w-- !O !M V- PS+ !PE Y+ PGP- t+++ 5+ X@ R- tv--@ b+ DI
D++ G-- e* h-- r++ y+



Reply to: