Configure High Availability for the DHCP Server

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure the address for the HA peer:

    ip dhcp-server ha-peer {A.B.C.D}

  3. Optional: Configure the role of this switch:

    ip dhcp-server ha-role {primary | standby}

Variable Definitions

The following table defines parameters for the ip dhcp-server command.

Variable Definition

ha-peer {A.B.C.D}

Specifies the IPv4 address of the redundant peer switch in a High Availability (HA) pair.

ha-role {primary | standby}

Assigns the High Availability (HA) role of this switch. Within an HA pair, you must have one primary server and one standby server that do the following:

  • primary—This switch provides DHCP services while the switch is active.

  • standby—This switch provides DHCP services only when the primary switch is inactive.

Note: Assigning roles is optional. By default, the switch with the lower IP address is primary.