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.
Parameter |
Description |
Value |
---|---|---|
group-name |
Specifies the name of a DHCP server group. |
The value is a string of 1 to 32 case-sensitive characters without spaces. |
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
Precautions
# Configure the DHCP server group of a DHCP relay agent as group1 on VLANIF100.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] dhcp server group group1 [HUAWEI-dhcp-server-group-group1] dhcp-server 10.10.10.10 [HUAWEI-dhcp-server-group-group1] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] dhcp select relay [HUAWEI-Vlanif100] dhcp relay server-select group1
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] dhcp server group group1 [HUAWEI-dhcp-server-group-group1] dhcp-server 10.10.10.10 [HUAWEI-dhcp-server-group-group1] quit [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] dhcp select relay [HUAWEI-GigabitEthernet0/0/1] dhcp relay server-select group1