Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I connect to PPP using DHCP

816 views
Skip to first unread message

Meaghan

unread,
Oct 22, 2001, 9:46:18 PM10/22/01
to
Hi,

I have a Red Hat 6.2 server running DHCP and PPP. At the moment, we
manually give each of our Windows 95/98/2K clients a permanent IP
address, so that they can connect via a modem to our server using PPP.

Instead of this, we wanted our clients to be automatically assigned an
IP address by DHCP, as we already have DHCP running for our ethernet.

Is this possible? Can someone direct me as to how to do it, or where
I can go to find out?

Thanks for your help,

Meaghan

James Carlson

unread,
Oct 23, 2001, 7:05:25 AM10/23/01
to
meag...@magtech.com.au (Meaghan) writes:
> I have a Red Hat 6.2 server running DHCP and PPP. At the moment, we
> manually give each of our Windows 95/98/2K clients a permanent IP
> address, so that they can connect via a modem to our server using PPP.

Assigning per-port addresses instead would probably be a much better
idea. Not only is it extremely simple to do, but it's logically
consistent -- you need only as many addresses as you have
communications links.

> Instead of this, we wanted our clients to be automatically assigned an
> IP address by DHCP, as we already have DHCP running for our ethernet.

Unless there's a compelling reason to avoid assigning one address per
port (and it's hard to think of one), I'd suggest reconsidering.

> Is this possible? Can someone direct me as to how to do it, or where
> I can go to find out?

It's possible only by hacking the sources for pppd. There's no IPCP
DHCP client built into pppd, nor any recent patches that I can find.

--
James Carlson, Solaris Networking <james.d...@east.sun.com>
SUN Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677

James Knott

unread,
Oct 23, 2001, 8:28:10 AM10/23/01
to
Meaghan wrote:

Usually, you'd configure on IP for each port, so that the assigned
address will depend on which port the user connects to. There's no
need to use DHCP.

--

To reply to this message, replace everything to the left of "@" with
james.knott.

Roy Lauer

unread,
Oct 23, 2001, 12:53:15 PM10/23/01
to

"James Knott" <the.lights.are....@home.com> wrote in message
news:undB7.64582$YL3.17...@news3.rdc1.on.home.com...

> Meaghan wrote:
>
> > Hi,
> >
> > I have a Red Hat 6.2 server running DHCP and PPP. At the moment, we
> > manually give each of our Windows 95/98/2K clients a permanent IP
> > address, so that they can connect via a modem to our server using PPP.
> >
> > Instead of this, we wanted our clients to be automatically assigned an
> > IP address by DHCP, as we already have DHCP running for our ethernet.
> >
> > Is this possible? Can someone direct me as to how to do it, or where
> > I can go to find out?
>
> Usually, you'd configure on IP for each port, so that the assigned
> address will depend on which port the user connects to. There's no
> need to use DHCP.
>
When you're server is located in a network using DHCP, where all the
IP addresses allocation is done dynamically, you can not use this approach.
There is a true need for using a DHCP server.
The question is how to do that?

James Carlson

unread,
Oct 23, 2001, 1:42:40 PM10/23/01
to
"Roy Lauer" <rl...@yahoo.com> writes:
> When you're server is located in a network using DHCP, where all the
> IP addresses allocation is done dynamically, you can not use this approach.

That's not generally true. Most DHCP servers have administrative
mechanisms that allow you to declare one or more addresses as being
"statically allocated" or otherwise off-limits. Assuming your DHCP
server isn't lame, you just enter your per-port addresses into that
table.

> There is a true need for using a DHCP server.
> The question is how to do that?

With pppd, you don't. Anything that really requires this sort of
service is very likely to be a large installation serving hundreds of
PPP links, and is better served by commercial communications servers
than by freeware.

Again, you're free to hack pppd if you like, but I don't recommend it
in this particular case.

Michael Mueller

unread,
Oct 23, 2001, 2:13:39 AM10/23/01
to
Hi Meaghan,

I am not aware of any patch for pppd to get an IP-address via DHCP
during the IPCP phase. You should not need it either.

Assign any dial-up interface (each copy of pppd running) a unique
ip-address. Configure pppd not to accept any local or remote IP from the
client but to insist on its own choice. This way you only need as many
IPs as you have dial-in lines. The clients will see the addresses as
dynamic because the resulting IP for it does depend upon which line it
did end up on.


Michael

James Knott

unread,
Oct 23, 2001, 7:48:00 PM10/23/01
to
Roy Lauer wrote:

The PPP addresses have to be within the range specified by the sub net
mask. The DHCP server can be configured to not assign the addresses
used by ppp. For example your network is set to use the address range
of 192.168.1.0/24. You could assign addresses 192.168.1. 224 -
192.168.1.250 to PPP ports and limit the DHCP server to addresses in
the range of 192.168.1.1 -192.168.1.223. Is there some reason why your
DHCP server cannot be configured in this manner?

David Efflandt

unread,
Oct 29, 2001, 8:26:52 PM10/29/01
to

I tried using DHCP to assign a remote IP address for a PPP connection on a
Cisco (2509?) router that was supposed to be able to do that. While the
router did get a proper IP from the DHCP server, and it appeared in the
ppp negotiations on the Linux box, Linux pppd didn't seem to know how to
use that like a normal dynamic IP. So I resorted to using a static IP for
each modem, and that works fine.

You could always use a different subnet for the remotes and masquerade
them on your LAN (the opposite direction from masqueding for an ISP), if
you cannot get your admin to assign static IP's for that purpose. But
then Windows networking might be problematic.

--
David Efflandt - All spam is ignored - http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/

Denis Mcmahon

unread,
Nov 5, 2001, 12:24:23 AM11/5/01
to
"Roy Lauer" <rl...@yahoo.com> wrote:

>"James Knott" <the.lights.are....@home.com> wrote in message
>news:undB7.64582$YL3.17...@news3.rdc1.on.home.com...

>> Usually, you'd configure on IP for each port, so that the assigned


>> address will depend on which port the user connects to. There's no
>> need to use DHCP.
>>
>When you're server is located in a network using DHCP, where all the
>IP addresses allocation is done dynamically, you can not use this approach.
>There is a true need for using a DHCP server.
>The question is how to do that?

Reserve a range of addresses for static allocations in the dhcp
server, and use those.

Rgds
Denis
--
Denis McMahon / +44 7802 468949 / de...@pickaxe.demon.co.uk
Entry conditions for killfile include top-post, advert, bin
I block the [a.b.*.*] of any UC/BE relay.
Usenet posts > 100 lines are not retrieved.

0 new messages