Basic DHCP Configuration

This is a simple DHCP configuration on a Layer 3 Switch:

SW1(config)# ip dhcp excluded-address

SW1(config)# ip dhcp pool VLAN20POOL

SW1(dhcp-config)# network

SW1(dhcp-config)# default-router

SW1(dhcp-config)# lease 2

Lease is in hours. Default-router IP indicates the default hop for the network. The excluded-address will not be available to the DHCP client hosts.

DHCP negotiation utilizes the following DHCP messages:

DISCOVER – Broadcast – Client to Server

OFFER – Unicast – Server to Client

REQUEST – Broadcast – Client to Server

ACK – Unicast – Server to Client