dhcp relay server-select
Function
The dhcp relay server-select command configures a DHCP server group for a DHCP relay agent.
The undo dhcp relay server-select command deletes the configured DHCP server group of a DHCP relay agent.
By default, no DHCP server group is configured.
Usage Guidelines
Usage Scenario
The dhcp relay server-select command applies to DHCP relay agents. When a DHCP client needs to send DHCP requests to a DHCP server using a DHCP relay agent, you can run the dhcp relay server-select command to specify a DHCP server group for the DHCP relay agent and configure the DHCP server address.
Prerequisites
- A DHCP server group has been created using the dhcp server group command.
- The DHCP relay function has been enabled using the dhcp select relay command so that the system can forward DHCP packets to the specified DHCP server.
Precautions
- Multiple interfaces can be configured with the same DHCP server group, and one interface can be configured with only one DHCP server group.
- If you run the dhcp relay server-select command in the same interface view for multiple times, only the latest configuration takes effect. If a specified DHCP server group does not exist, the configuration fails; however, the latest configured DHCP server group still takes effect.
Example
# Configure the DHCP server group of a DHCP relay agent as group1 on VLANIF100.
<AC6605> system-view [AC6605] dhcp enable [AC6605] dhcp server group group1 [AC6605-dhcp-server-group-group1] dhcp-server 10.10.10.10 [AC6605-dhcp-server-group-group1] quit [AC6605] interface vlanif 100 [AC6605-Vlanif100] dhcp select relay [AC6605-Vlanif100] dhcp relay server-select group1