Scott <(E-Mail Removed)> wrote:
> I have them both working, but, and perhaps this might have been a good
> thing to say before,, I have a pcmcia ethernet. kppp will dial out and
> do it's thing but not be able to start the pppd with the ethernet
> pugged in. I have tried selecting and unselecting the "Default Route"
> check box within kppp to no avail. Now, if I unplug the pcmcia
Yeah, that's not what I meant by default route through the LAN interface.
Selecting that almost certainly tells kppp to use the pppd defaultroute
option and you'll need that - unless you choose the alternative suggested
below.
> ethernet and then start kppp it will log on and start pppd. To get
> both working simultaneously as they are at this moment, I must start
> kppp with the ethernet unplugged and then after the ppp0 is up,
> hotplug the pcmcia ethernet.
> Here's route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 216.231.162.14 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
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 0 lo
> 0.0.0.0 216.231.162.14 0.0.0.0 UG 0 0
> 0 ppp0
The last line shows a default route through the PPP interface (ppp0).
There's no default route through the LAN interface there, but it still
sounds like it's an existing default route problem. Pppd won't add
a default route through the PPP interface if a default route already
exists to anywhere, even with the defaultroute option. What does the
routing look like when the LAN is active but before the PPP link is
ever brought up? In particular, is there a default route through eth0?
It may be that there is a LAN default route that is not set when there
is an existing default route at the time the LAN is activated - in the
manner of pppd. That could most likely be changed by a distribution
network configuration script.
Alternately, you could just add the line
/sbin/route add default $IFNAME
to /etc/ppp/ip-up, which should override any existing LAN default route
for the duration of the PPP link. See man pppd for an explanation of
IFNAME.
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/