From owner-freebsd-questions Wed Dec 4 18:51:38 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.8.3/8.7.3) id SAA03158 for questions-outgoing; Wed, 4 Dec 1996 18:51:38 -0800 (PST) Received: from smtp-gw01.ny.us.ibm.net (smtp-gw01.ny.us.ibm.net [165.87.194.252]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id SAA03153 for ; Wed, 4 Dec 1996 18:51:36 -0800 (PST) Received: (from uucp@localhost) by smtp-gw01.ny.us.ibm.net (8.6.9/8.6.9) id CAA80070; Thu, 5 Dec 1996 02:51:30 GMT Message-Id: <199612050251.CAA80070@smtp-gw01.ny.us.ibm.net> Received: from slip166-72-229-141.va.us.ibm.net(166.72.229.141) by smtp-gw01.ny.us.ibm.net via smap (V1.3mjr) id smaxHQDe7; Thu Dec 5 02:51:16 1996 Reply-To: From: "Steve Sims" To: "Robert Nordier" Cc: Subject: Re: HELP: IIJ-PPP demand-dial with dynamic IP on both ends Date: Wed, 4 Dec 1996 21:50:22 -0500 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 " 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 > 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