dhcp relay server-group
Syntax
dhcp relay server-group group-id ip ip-address
undo dhcp relay server-group group-id [ ip ip-address ]
View
System view
Default level
2: System level
Parameters
group-id: Specifies a DHCP server group by its number, in the range of 0 to 19.
ip ip-address: Specifies a DHCP server IP address.
Description
Use dhcp relay server-group to specify a DHCP server for a DHCP server group.
Use undo dhcp relay server-group 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 address of a DHCP server and the IP address of the 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