62
Default level
2: System level
Parameters
group-id: Specifies the DHCP server group number, in the range 0 to 19.
ip ip-address: Specifies the DHCP server IP address.
Description
Use the dhcp relay server-group command to specify a DHCP server for a DHCP server group.
Use the undo dhcp relay server-group command to remove a DHCP server from a DHCP server group. If
no ip ip-address is specified, all servers in the DHCP server group and the server group itself will be
removed.
By default, no DHCP server is specified for a DHCP server group.
The IP addresses of any DHCP server and DHCP relay agent’s interface that connects the DHCP client
cannot be in the same network segment. Otherwise, the client may fail to obtain an IP address.
If a server group has been correlated to multiple interfaces, you need to cancel these correlations before
removing the server group.
Related commands: display dhcp relay server-group.
Examples
# Specify DHCP server 1.1.1.1 for DHCP server group 1 on the relay agent.
<Sysname> system-view
[Sysname] dhcp relay server-group 1 ip 1.1.1.1
dhcp relay server-select
Syntax
dhcp relay server-select group-id
undo dhcp relay server-select
View
Interface view
Default level
2: System level
Parameters
group-id: Specifies the DHCP server group number to be correlated, in the range 0 to 19.
Description
Use the dhcp relay server-select command to correlate specified interfaces to a specified DHCP server
group.
Use the undo dhcp relay server-select command to remove a configured correlation.
By default, no DHCP server group is correlated with an interface on the relay agent.
A DHCP server group can correlate with one or multiple DHCP relay agent interfaces.