90
You can specify a maximum of eight DHCP servers on an interface. The DHCP relay agent forwards
the packets from the clients to all the specified DHCP servers.
If you do not specify an IP address, the undo dhcp relay server-address command removes all
DHCP servers on the interface.
Examples
# Specify DHCP server address 1.1.1.1 on VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] dhcp relay server-address 1.1.1.1
Related commands
dhcp select relay
display dhcp relay interface
dhcp relay server-address algorithm
Use dhcp relay server-address algorithm to specify the DHCP server selecting algorithm.
Use undo dhcp relay server-address algorithm to restore the default.
Syntax
dhcp relay server-address algorithm { master-backup | polling }
undo dhcp relay server-address algorithm
Default
The polling algorithm is used. The DHCP relay agent forwards DHCP requests to all DHCP servers
at the same time.
Views
Interface view
Predefined user roles
network-admin
Parameters
master-backup: Forwards DHCP requests to the master DHCP server first. If the master server is
not available or does not have assignable IP addresses, the relay agent forwards DHCP requests to
backup DHCP servers in the order they are specified.
polling: Forwards DHCP requests to all DHCP servers at the same time.
Usage guidelines
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Specify master-backup as the DHCP server selecting algorithm on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] dhcp relay server-address algorithm master-backup
Related commands
dhcp relay dhcp-server timeout
dhcp relay master-server switch-delay