mac
Commands for DHCP
307
Function: Set the timeout period (in ms) of waiting for a reply message (Echo Request)
after each Ping request message (Echo Request) in Ping-detection of conflict on DHCP
server, whose default value is 500ms. The no operation of this command will restore the
default value.
Parameters: <timeout-value> is the timeout period of waiting for a reply message after
each Ping request message in Ping-detection of conflict.
Default Settings: The timeout period is 500ms by default.
Command Mode: Global Configuration Mode.
Examples: Set the timeout period (in ms) of waiting for each reply message (Echo
Request) in Ping-detection of conflict on DHCP server as 600ms.
Switch(config)# ip dhcp ping time out 600
Related Command: ip dhcp conflict ping-detection enable, ip dhcp ping packets
26.1.21 lease
Command: lease { [<days>] [<hours>][<minutes>] | infinite }
no lease
Function: Sets the lease time for addresses in the address pool; the “no lease”
command restores the default setting.
Parameters: <days> is number of days from 0 to 365; <hours> is number of hours from
0 to 23; <minutes> is number of minutes from 0 to 59; infinite means perpetual use.
Default: The default lease duration is 1 day.
Command Mode: DHCP Address Pool Mode
Usage Guide: DHCP is the protocol to assign network addresses dynamically instead of
permanently, hence the introduction of ease duration. Lease settings should be decided
based on network conditions: too long lease duration offsets the flexibility of DHCP, while
too short duration results in increased network traffic and overhead. The default lease
duration of switch is 1 day.
Example: Setting the lease of DHCP pool “1” to 3 days 12 hours and 30 minutes.
Switch(dhcp-1-config)#lease 3 12 30
26.1.22 max-lease-time
Command: max-lease-time {[<days>] [<hours>] [<minutes>] | infinite}
no max-lease-time
Function: Set the maximum lease time for the addresses in the address pool; the no
command restores the default setting.
Parameters: <days> is number of days from 0 to 365; <hours> is number of hours from
0 to 23; <minutes> is number of minutes from 0 to 59; infinite means perpetual use.










