On Fri, 19 Jul 2002, Todd Lyons wrote:

> Scenario:
> My network is up with a 192.168.0.* address and my default gateway is
> 192.168.0.1.  I have a modem in my machine and I start the
> InternetDialer (kppp).  It dials out, connects, obtains a ppp address.
> But when I do route -n, it has not done any of the following:
> 1) added a route for the ppp device
> 2) removed the current default gateway
> 3) added the new default gateway

This originally bit me all the way back in Mandrake 8.0 and I filed 
a bug under kppp on Mandrake's bugzilla only to have closed as fixed at 
the time (it was quite a while later when I upgraded to 8.2 that I 
realised it hadn't been fixed).

Basically I had configured a network card and this caused the a default
route to be set on boot (this card was configured by Mandrake during 
initial install). When I started kppp this route was not deleted
and no new default route could be set. The modem would connect but nothing
appeared to work (which was annoying). It was only when I was poking
through a linuxconf script that I found that pppd's original behaviour of
deleting the default route had been removed and that the script had to do
it instead (I believe if you use draknet connect via a modem it has
similar lines to delete the route in its script).

Originally I set up a script to be run by kppp before trying to connect
which just had /sbin/route del default in it but these days I've taken the
more extreme measure of editing out DEFROUTE="yes" from
/etc/sysconfig/network-scripts/ifcfg-eth0

At a minimum, I think kppp needs a delete default route option...

-- 
Sitsofe | http://sucs.org/~sits/



Reply via email to