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 a DHCP server group by its number to be correlated, in the range of 0 to 19.
Description
Use dhcp relay server-select to correlate specified interfaces 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 will 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 VLAN-interface 1 to DHCP server group 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay server-select 1
dhcp select relay
Syntax
dhcp select relay
undo dhcp select relay
View
Interface view
35