cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
761
Views
0
Helpful
3
Replies

IOS DHCP allocation type

Hello guys.

 

I have been reading about DHCP and its three address allocation types:

 

Dynamic - has lease period expiration and its the default

Automatic - lease does not expire

Static - Preconfigured to be assigned to a specific host based on MAC address

 

I have configured a DHCP server on a router and one client has obtained an IP address, see output of " show ip dhcp binding " below:

 

Router#sh ip dhcp binding

Bindings from all pools not associated with VRF:

IP address          Client-ID/              Lease expiration        Type

                    Hardware address/

                    User name

41.0.0.2            0063.6973.636f.2d63.    Mar 02 2002 12:31 AM    Automatic

                    3030.322e.3336.3830.

                    2e30.3030.302d.4661.

                    302f.30

 


My question is, the output shows a lease expiration and type as Automatic, does this mean this is an Automatic allocation type or dynamic? and if its Automatic ,why does it have an expiration time?

 

Regards.

3 Replies 3

Philip D'Ath
VIP Alumni
VIP Alumni

Using your terminology, the lease defaults to dynamic.

If you want the client to get a lease that never expires then add "lease infinite" to the DHCP pool.

Hello Phillip.

Then why does IOS display the type as " Automatic " and not "Dynamic" as this can be confusing when looking at it from the command output.

Regards.

This is more a question of terminology, and deciding you prefer Cisco's or someone elses.

It is easier to just look at the lease duration.