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

Re: ppp- and dns-problem



On Sat, Apr 28, 2001 at 08:27:17PM -0300, Peter Cordes wrote:
> 
>  If you're using ppp, you should just tell pppd to set a default route.  It
> has an option to do this, called defaultroute.  Just add that to your
> /etc/ppp/options, or /etc/ppp/peers/filename.
> 


That doesn't work.  I tried putting defaultroute into /etc/ppp/options, but
the result in /var/log/syslog was:
Apr 29 22:38:59 strider pppd[6345]: not replacing existing default route to
eth0 [192.168.1.1]

route -n before running ppp (pon) was:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    1      0        0 eth0


and after was:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.34.5    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    1      0        0 eth0

from which the internet is not accessible by ppp, of course (I use eth0 at
work, ppp0 from home).

route -n obtained by first removing eth0 with "ifconfig eth0 down" and then
running ppp is:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.34.9    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
0.0.0.0         192.168.34.9    0.0.0.0         UG    0      0        0 ppp0


The only way I know of getting ppp to set itself up properly (apart from
doing a complicated manual configuration of the gateway) is to remove eth0
before running ppp.  I do that in a small script and connect via that script.

Drew

-- 
PGP public key available at http://dparsons.webjump.com/drewskey.txt
Fingerprint: A110 EAE1 D7D2 8076 5FE0  EC0A B6CE 7041 6412 4E4A



Reply to: