Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 1998 03:21:53 -0700 (MST)
From:      Nate Williams <nate@nomad.mt.sri.com>
To:        brian@awfulhawk.org
Cc:        stable@FreeBSD.ORG
Subject:   On-demand dynamic PPP not doing default route correctly
Message-ID:  <199803161021.DAA01019@nomad.mt.sri.com>

next in thread | raw e-mail | index | archive | help
It's been a *really* long time since I've used PPP, but since I'm in
Japan and my ISP (TWICS) uses dymanic IP stuff, it's a bit easier to
test this.

My config file is as follows:
twics-tokyo:
 set phone 123456789
 set login
 set authname authname
 set authkey authkey
 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 delete ALL
 add 0 0 HISADDR

The problem is that if I run this with 'ppp -auto twics-tokyo', the
first thing it does is setup a default route to 10.0.0.2 (totally
bogus).  However, the tun0 device is setup correctly with the remote
site.

So, as root, I blow away the default route, and add a new one with the
correct 'remote' site.  Then, after a few minutes, the link 'dies'.  No
packets come in or go out.  This may or may not be a FreeBSD/PPP
problem, but if I use Win95 PPP it *NEVER* locks up.  I have TCP
extensions turned off if that makes any difference.  (It also seems to
be related to the use of fetchmail if that gives anyone any ideas.)

The third problem is that if the line 'times out', when it comes back up
I often-times have a different IP address and default route.  PPP is not
corretly re-setting the default route when it re-dials.

Also, shouldn't I be able to run a 'one-time' connection to twics tokyo
by typing 'ppp twics-tokyo'?  If I try it, I get:
Working in interactive mode
Using interface: tun0
Warning: Add route failed: 0.0.0.0: errno: Network is unreachable

I just want to connect to the ISP *once*, and then exit the program.

Finally, what is the preferred method to shutdown the link when I'm
done?  I usually get my email, then go offline and update it, then
re-start PPP to have it flush out the mail queue before I head off to
bed.

If it keeps driving me crazy I may go see if I can fix it myself, but
Brian seems to be having the time of his life changing it every day, so
he's obviously more familiar with the code than anyone else. :)

Thanks!


Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803161021.DAA01019>