Specifying DHCP servers on a relay agent

About specifying DHCP servers on a relay agent

To improve availability, you can specify several DHCP servers on the DHCP relay agent. When the interface receives request messages from clients, the relay agent forwards them to all DHCP servers.

Restrictions and guidelines

The IP address of any specified DHCP server must not reside on the same subnet as the IP address of the relay interface. Otherwise, the clients might fail to obtain IP addresses.

Procedure

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  3. Specify a DHCP server address on the relay agent.

    dhcp relay server-address ip-address [ class class-name ] [ public | vpn-instance vpn-instance-name ]

    By default, no DHCP server address is specified on the relay agent.

    To specify multiple DHCP server addresses, repeat this step. You can specify a maximum of eight DHCP servers.