R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
181
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 is 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
# S p e ci f y D H C P s e r v e r 1.1.1.1 f o r D H C P s e r v e r g r o u p 1 o n t h e r e l a y a g e n t.
<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: DHCP server group number to be correlated, in the range of 0 to 19.
Description
Use dhcp relay server-select to correlate specified interface(s) to a specified DHCP server group.
Use undo dhcp relay server-select 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.
A relay agent interface can only correlate with one DHCP server group, and a newly configured
correlation overwrites the previous one. If the server group in the new correlation does not exist, the new
configuration does not work. The interface still maintains the previous correlation.
The DHCP server group referenced in this command should have been configured by using the dhcp
relay server-group command.
Related commands: dhcp relay server-group and display dhcp relay.
Examples
# Correlate the interface GigabitEthernet 0/1 to the DHCP server group 1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/1
[Sysname-GigabitEthernet0/1] dhcp relay server-select 1