Specifying an Address Lease Time

To specify an address lease time, use the following command.
Specify an address lease time for the addresses in a pool.
DHCP <POOL>
lease {days [hours] [minutes] | infinite}
The default is 24 hours.
Specifying a Default Gateway
The IP address of the default router should be on the same subnet as the client.
To specify a default gateway, follow this step.
Specify default gateway(s) for the clients on the subnet, in order of preference.
DHCP <POOL>
default-router address
Enabling the DHCP Server
To set up the DHCP Server, you must first enable it.
The DHCP server is disabled by default.
1. Enter the DHCP command-line context.
CONFIGURATION mode
ip dhcp server
2. Enable DHCP server.
DHCP mode
no disable
The default is Disabled.
3. Display the current DHCP configuration.
DHCP mode
show config
In the following illustration, an IP phone powers Power over Ethernet (PoE) and has acquired an IP
address from the Dell Networking system, which is advertising link layer discovery protocol (LLDP)-media
endpoint discovery (MED). The leased IP address is displayed using the show ip dhcp binding
command and confirmed using the show lldp neighbors command.
Dynamic Host Configuration Protocol (DHCP) 317