DHCP Server

With the DHCP Server feature, the switch hosts the server thereby removing the need to deploy an external DHCP server. The hosted DHCP Server has the same basic functionality as a standalone external DHCP server. The switch listens for DHCP requests from clients on the network and assigns IP addresses dynamically from a preconfigured address pool.

Note

Note

DHCP Server information in this section applies to the DHCP Server feature hosted on the switch. If you deploy an external DHCP server, see the documentation that comes with your device.

DHCP Server includes the following support options:

DHCP Server Options Configuration

You can configure DHCP Server to provide clients with standard options such as DNS, NTP, TFTP servers, boot image files, NetBIOS servers, and with customized non-standard options that the server passes to clients.

DHCP Server contains multiple global configuration parameters, which you can define within scopes such as host, subnet, vendor class, or global.

The switch process the DHCP options in the following order of precedence:

  1. host—Host configuration applies only to a specific host.
  2. DHCP subnet—DHCP subnet options apply to only those clients within the specified subnet.
  3. vendor class—Vendor class options apply to only those clients with a string that matches a specified vendor class identifier (VCI).
  4. global—Global options apply to all clients.

DHCP Server builds a cumulative configuration from all scopes but applies precedence rules in instances of conflict.

The following table illustrates the resulting configuration specifically for Host A following inheritance and precedence rules for configured DHCP Server options.

Global Vendor class printer Subnet 198.51.100.0/24 Host A Resulting configuration
ip dhcp-server tftp server-ip 192.0.2.100 ip dhcp-server vendor-class tftp server-ip 192.0.2.33 ip dhcp-server tftp server-ip 198.51.100.1 host 00-00-5E-00-53-00 tftp server-ip 203.0.113.23 host 00-00-5E-00-53-00 tftp server-ip 203.0.113.23
ip dhcp-server tftp server-ip 192.0.2.100 ip dhcp-server vendor-class tftp server-ip 192.0.2.33 None None ip dhcp-server vendor-class tftp server-ip 192.0.2.33

ip dhcp-server tftp server-ip 192.0.2.100

ip dhcp-server domain-name salem

None ip dhcp-server tftp server-ip 198.51.100.1 None

ip dhcp-server tftp server-ip 198.51.100.1

ip dhcp-server domain-name salem

ip dhcp-server tftp server-ip 192.0.2.100 None None None ip dhcp-server tftp server-ip 192.0.2.100

For more information see the following sections: