Date: Wed, 4 Dec 1996 21:50:22 -0500 From: "Steve Sims" <SimsS@IBM.Net> To: "Robert Nordier" <rnordier@iafrica.com> Cc: <questions@FreeBSD.ORG> Subject: Re: HELP: IIJ-PPP demand-dial with dynamic IP on both ends Message-ID: <199612050251.CAA80070@smtp-gw01.ny.us.ibm.net>
next in thread | raw e-mail | index | archive | help
Well, that seems to be the kick I needed. I took another look at the references you quoted and decided "what the heck." I tried adding bogus local and remote addresses in my ifaddr command, but that didn't help a whole lot. So I plugged the "add 0 0 <bogus remote>" line back in and counted on ppp sorting out the whole routing mess. Success! Sweet success!!! So (for the benefit of the mail archives, if no one reading this) I have in my /etc/ppp.conf: demand-dial: set debug lcp set redial 3 10 set phone 123-4567 set login "TIMEOUT 5 login:-\\r-login: myname word: mumble" set ifaddr 1.2.3.4/0 5.6.7.8/0 255.255.255.0 add 0 0 5.6.7.8 and in /etc/ppp.linkup, I've got demand-dial: delete all add 0 0 HISADDR Strangely (or fortunately) the "delete all" line doesn't muck up the static routes that I've so painfully crafted, but it does flush the bogus "add 0 0 5.6.7.8" entry that the ppp.conf put in. Woo-hoo! ...sjs... ---------- > From: Robert Nordier <rnordier@iafrica.com> > To: SimsS@IBM.Net > Cc: questions@FreeBSD.ORG > Subject: Re: HELP: IIJ-PPP demand-dial with dynamic IP on both ends > Date: Wednesday, December 04, 1996 9:05 PM > > Steve Sims wrote: > > > OK,I relent! I've been mucking with the -auto feature of iij-ppp for days > > and can't get it to work reliably. I've come to the point where interactive > > mode works flawlessly every time, but can't get the blasted thing to reliably > > demand dial. > > > > I've looked at the ppp.conf.samples, .filter.samples, .linkup.samples until > > I'm blue in the face. > > > > I've even had it sorta-work a couple of times -- the *FIRST* time a > > demand-dial situation occurs -- but it won't work reliably on subsequent > > demand-dials. > > > > Also, it seems to *NEVER* work if I: > > # telnet localhost 3000 > > PPP ON localhost> quit all > > # > > > > and subsequently restart ppp -auto [system] from the command line. > > > > The biggest problem (I think) is that the addresses on both ends (ISP and > > local) are dynamic - I can't figure out how to set up the ifaddr stuff to > > accommodate this scenario. All of the references - source, manpages, > > handbook and FAQ - seem to assume that I'll know, in advance, what the remote > > side address will be. > > > > Does anyone have a working ppp.conf and / or ppp.linkup file that works in > > -auto mode with both ends of the line having dynamic addresses? > > The following entry in `/etc/ppp/ppp.conf.iij' is probably pretty close > to what you need: > > # > # Here, we assume that IIJ server has 192.244.177.2 as their address. > # This assumption may not be correct, but we'll fix it later. > # Also, take a look at ppp.linkup. > # > # % ppp -auto iij-demand > # > # Use dummy ping to generate a call to IIJ. > # > # % ping 192.244.177.2 > # > iij-demand: > set debug lcp > set phone 0355118852 > set login "TIMEOUT 5 login:-\\r-login: MyUserName word: MyPassword PPP" > set ifaddr 0 192.244.177.2/20 > add 0 0 192.244.177.2 > > First, delete the `add' line. The file `/etc/ppp/ppp.linkup.sample' > contains (better) `add' logic, anyway, so just rename that file to > `/etc/ppp/ppp.linkup'. > > You're not sure of either address, so you can indicate that by a '/0' > after each address: > > set ifaddr 160.124.92.116/0 192.244.177.2/0 > > It shouldn't matter what addresses you use in `set ifaddr'. You > should even be able to use the actual line above, because it says > (in effect) "I really don't care whether you use these addresses or > not". > > I found that using 0 (as in the example) for the local address > didn't work well, and use a static address assigned to me for > connecting to another ISP (the same `ifaddr' works for both). The > local address won't be acceptable to this ISP, of course, but the > '/0' gives the go-ahead to change it. > > This setup requires a dummy ping (as mentioned in the comments) to > kick start it, but only on the first occasion following a reboot. > Thereafter it will dial out automatically as required. > > -- > Robert Nordier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612050251.CAA80070>