DHCP-Setup to serve two networks
Simon Hobson
dhcp1 at thehobsons.co.uk
Tue May 20 10:44:02 UTC 2008
Oliver Emslers wrote:
>thanks for you answer. I do understand they way of prepolulating the
>leases-file, but that's not an option for us in terms of doing this
>on some hundreds of servers. What do you think about the approach of
>doing this mac-address-based like this:
>
>class "ppp0" {
> match if substring (hardware, 6, 1) = 00;
> match if substring (hardware, 6, 1) = 02;
> [...]
>}
>
>class "ppp1" {
> match if substring (hardware, 6, 1) = 01;
> match if substring (hardware, 6, 1) = 03;
> [...]
>}
>
>subnet 87.1.1.0 netmask 255.255.255.128 {
> pool {
> allow members of "ppp0";
> range 87.1.1.1 87.1.1.125;
> option routers 87.1.1.126;
> }
>}
>
>subnet 87.2.2.0 netmask 255.255.255.128 {
> pool {
> allow members of "ppp1";
> range 87.2.2.1 87.2.2.125;
> option routers 87.2.2.126;
> }
>}
>
>there should be quite a good chance of equalizing the two networks
>from a ip-based point of view ... I have to check this out ... ;-)
That should do it. I would suggest that you keep an eye on the pools,
and once they are almost empty of unused address, remove the classing.
More information about the dhcp-users
mailing list