DHCP for multiple subnets (was: Re: Routing and bandwidth problem)
Benjamin J. Weiss
benjamin at Weiss.name
Sun Jun 13 19:59:51 UTC 2004
On Sun, 13 Jun 2004, Jeff Vian wrote:
> Rodolfo J. Paiz wrote:
>
> > 1. You *should* configure your dhcpd.conf for every subnet on
> > which your server has an interface even if the DHCP server does not
> > assign addresses (i.e. the subnet block does not include a range
> > statement).
> >
> > 2. The server will then automatically assign an address in the
> > correct subnet for every incoming request, assuming that it's been
> > told to assign addresses on that subnet via a range statement. Nothing
> > more to be done.
> >
> > Too simple. <grin>
> >
> > Cheers,
>
> Your approach works, and if you have multipl;e hosts on the same subnet
> being served it may be best, as well as providing the routing for them.
>
> You also should consider the technique of assigning IP address based on
> the MAC address of the requester. This technique is used to DHCP assign
> static ip addresses to servers on lots of networks. There is no need to
> be tied to one interface per subnet, but rather since the DHCP request
> broadcast includes the MAC address of the requester (as well as the
> originating network IP if routed), it can be set in the configuration
> tables to specify the address to be assigned.
If I recall correctly, (and mind, I haven't seen all of this thread),
Rodolfo started his quest in another thread. He was trying to act as a
quasi-ISP for others in his building, so that they could all share the
costs of a high-speed internet line. IIRC, he wanted to be hands-off,
such that his "clients" could just plug in and deal with their own IT
issues. If he had gone with MAC-based DHCP, he'd have become their
de-facto IT/SA shop. I don't think that he wants the additional burden.
:)
Ben
More information about the fedora-list
mailing list