Configure a Static DHCP Server Lease

Complete this procedure to reserve static DHCP options such as a specific IP address or TFTP boot file for a subnet host. Configure only the options that apply to your deployment.

About this task

The host configuration overrides conflicting configuration from the subnet or global DHCP Server. For any host configuration that you leave unconfigured, the host inherits the configuration from the subnet.

Procedure

  1. Enter DHCP Server Subnet Configuration mode for the applicable subnet:

    enable

    configure terminal

    ip dhcp-server subnet {A.B.C.D/X}

  2. Define the static lease with the host MAC address:
    host <0x00:0x00:0x00:0x00:0x00:0x00>
  3. Assign an IP address to the host:
    host <0x00:0x00:0x00:0x00:0x00:0x00> ip-address {A.B.C.D}
  4. Assign a hostname to the host:

    host <0x00:0x00:0x00:0x00:0x00:0x00> hostname WORD<0-64>

  5. Assign a TFTP server and boot file to this host:

    host <0x00:0x00:0x00:0x00:0x00:0x00> tftp server-ip {A.B.C.D}

    host <0x00:0x00:0x00:0x00:0x00:0x00> tftp server-name WORD<0-64>

    host <0x00:0x00:0x00:0x00:0x00:0x00> tftp boot-file-name WORD<0-128>

Variable Definitions

Use the variable definitions in the following table to configure static host reservations within a DHCP subnet.

Table 1. Static Host Settings
Variable Definition
host <0x00:0x00:0x00:0x00:0x00:0x00>

Specifies the MAC address for the host.

ip-address {A.B.C.D}

Assigns an IPv4 address to the host. The IP address must be taken from the address pool that is configured for the DHCP subnet where the host resides.

hostname WORD<0-64>

Specifies a hostname for the host.

tftp server-ip {A.B.C.D}

Specifies the IP address of the TFTP server that you want to assign to the host. You must assign the TFTP IP address before you can assign a server name or boot file name.

Note: For this host, these TFTP settings override conflicting TFTP settings from the subnet or DHCP Server.
tftp server-name WORD<0-64>

Specifies the server name of the TFTP server that you want the host to use.

tftp boot-file-name WORD<0-128>

Specifies the boot image filename that you want the host to use.