IP allocatoion from different subnet

Bruce Hudson Bruce.Hudson at Dal.Ca
Thu Jun 2 16:11:32 UTC 2011


    Any time you have multiple IP subnets sharing the same broadcast
domain, which it sounds like you are trying to do, you need to put
the subnet blocks into a "shared-network" block to tell that to the
DHCP server.

    shared-network "network1" {
        subnet 10.161.0.0 netmask 255.255.240.0 {
        }

        subnet 10.160.128.0 netmask 255.255.224.0 {
            option routers 10.160.128.1;
            ...
        }
    }

Unless you have multiple relay agents on this network, and some way to
ensure that all of the relays do not see all of the traffic, your class
definition is not really necessary. All assignments are limited to the
shared-network that includes the relay agent's address by default. This
happens before anything else; which is why your configuration without a
shared-network does not work.
--
Bruce A. Hudson				| Bruce.Hudson at Dal.CA
ITS, Networks and Systems		|
Dalhousie University			|
Halifax, Nova Scotia, Canada		| (902) 494-3405



More information about the dhcp-users mailing list