Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 1996 05:10:07 +0200 (SAT)
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
Message-ID:  <199612050310.FAA00188@eac.iafrica.com>
In-Reply-To: <199612050251.CAA80070@smtp-gw01.ny.us.ibm.net> from Steve Sims at "Dec 4, 96 09:50:22 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Steve Sims wrote:

> 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.

Good thinking.  The `add' in `ppp.conf' *is* actually needed
initially (until the `ppp.linkup' statements are executed when the
first connection is established).

This really needs to be better documented.

--
Robert Nordier



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