Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 1998 14:01:19 -0500 (CDT)
From:      Mike Jenkins <mjenkins@carp.gbr.epa.gov>
To:        kpielorz@tdx.co.uk
Cc:        isp@FreeBSD.ORG
Subject:   Re: Stock pppd - overiding IP addresses?
Message-ID:  <199809011901.OAA22579@carp.gbr.epa.gov>
In-Reply-To: <Pine.BSF.3.96.980901183601.25198A-100000@caladan.tdx.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Tue, 1 Sep 1998 18:40:12 +0100 (BST)
> From: Karl Pielorz <kpielorz@tdx.co.uk>
>
> Hi,
>
> I have a now 'slightly-aging' (OK, I prefer 'mature') 2.2.2 system running
> the stock FreeBSD pppd.
>
> In my /etc/ppp/ppp.conf I have listed all the options I need. In addition

Careful.  There are two ppp's in FreeBSD and they store their configs in
the same directory, /etc/ppp.  The ppp.conf file is used by User PPP.
pppd uses options as the main config file.

> to this I have files in /etc/ppp such as:
>
> options.ttyd0
> options.ttyd1
>
> etc.
>
> These assign the addresses used for my dialin modem pool... I now have a
> customer who wants/needs a static address, so I've put a '.ppprc' file in
> their home directory which simply says:
>
> "
> :195.188.177.129
> "
>
> I thought this would give that 1 user a static address (following the
> 'flow' of Config files checked in the man page) but it doesn't appear to
> work...

Looking in the FILES section of the pppd manual page the order of
processing config files is options, ~/.ppprc, cmd line, options.ttyname.
Since options.ttyname is overriding ~/.ppprc, the user gets the IP
address specified in options.ttyname.

>
> The system connecting to it is another FreeBSD box, the server doesn't
> offer the client the .129 address, and if the client asks for the .129
> address it gets refused...
>
> Am I able to set things up this way? (The thought 'almost too good to be
> true' springs to mind re. using just 'simple' config files)
>

Since local-IP:remote-IP is specified, IP address negotiation is disabled.
The ipcp-accept-remote option (in ~/.ppprc) will allow address negotiation.
See the manual page where it describes local_ip_address:remote_ip_address.

Mike

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



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