[c-nsp] DHCP pools: how to assign priority

Dmitry Cherkasov doctorchd at gmail.com
Thu May 11 07:32:37 EDT 2006


I configure two dhcp pools, one dynamic and the other static (the base
is loaded from an external file). Is there a way to force cisco
provide dhcp-clients with leases from the static base if their MAC is
present there and fall back to dynamic only if a corresponding MAC is
absent in the static base?

For example:

ip dhcp pool Dynamic
 network 10.1.1.0 255.255.255.0
 ...
ip dhcp pool Static
 origin file tftp://tftp.local/static.db
 ...
interface FastEthernet0
 ...
 ip address 10.1.1.1 255.255.255.0
 ip address 172.16.1.1 255.255.255.0 secondary
 ...

Now I see the following:

Router#sh ip dhcp bin
Bindings from all pools not associated with VRF:
IP address          Client-ID/	 	    Lease expiration        Type
		    Hardware address/
		    User name
172.16.1.2/24        0080.c7bc.09c4          Infinite                Static
10.1.1.2             0080.c7bc.09c4          May 11 2006 01:58 PM    Automatic


I.e. a client 0080.c7bc.09c4 that is present in the static base
obtains a lease from dynamic pool.

-- 
Dmitry Cherkasov



More information about the cisco-nsp mailing list