Hi!
I have a laptop with an ethernet card connection to a local network
and a modem for connecting to the Internet. Earlier versions of pppd
always reset the default gateway to the dial-in server when I connected
(and reset it back to eth0 after I hang up). A recent upgrade seems
to have broken this:
Jul 27 19:19:14 machine pppd[15272]: not replacing existing default
route to eth0 [192.168.97.1]
I was able to get things to work by creating routing scripts in
/etc/ppp/ip-up.d:
#!/bin/sh
route add -net 137.229.94.19 dev ppp0
logger -p daemon.debug Added route to 137.229.94.19 on ppp0
route add default gw 137.229.94.19
logger -p daemon.debug Added default gateway to 137.229.94.19
route del default gw 192.168.97.1
logger -p daemon.debug Deleted default gateway to 192.168.97.1
exit 0
This does work, but it takes almost a minute for the script to
complete it's business, and for the changes to be reflected in the
routing table.
I have the 'defaultroute' flag set in /etc/ppp/options, ~/.ppprc, and
/etc/ppp/peers/provider. None of these files have the 'nodefaultroute'
flag set.
Anyone know how to get pppd to set the default route, like it did
previously?
Some version info:
ii ppp 2.4.1-4 Point-to-Point Protocol (PPP) daemon.
ii libc6 2.2.3-7 GNU C Library: Shared libraries and
Linux machine 2.4.1 #1 Mon Feb 5 08:48:24 AKST 2001 i686 unknown
Thanks!
Chris
--
Christopher S. Swingley 930 Koyukuk Drive
System / Network Manager University of Alaska Fairbanks
IARC -- Frontier Program Fairbanks, AK 99775
phone: 907-474-2689 fax: 907-474-2643
email: cswingle@iarc.uaf.edu GNUPG and PGP2 keys at my web site
web: http://www.frontier.iarc.uaf.edu/~cswingle
Attachment:
pgpNyf99CQXIl.pgp
Description: PGP signature