The dhcpv6 relay server-select command configures a DHCPv6 server group for a DHCPv6 relay agent.
The undo dhcpv6 relay server-select command deletes a DHCPv6 server group for a DHCPv6 relay agent.
By default, no DHCPv6 server group is configured.
Parameter |
Description |
Value |
---|---|---|
group-name |
Specifies the name of a DHCPv6 server group. |
The value is a string of 1 to 32 case-sensitive characters without spaces. |
VLANIF interface view, VBDIF interface view, Eth-Trunk interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, MultiGE sub-interface view, 40GE interface view, 100GE interface view, Eth-Trunk sub-interface view, GE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view
Use Scenario
The dhcpv6 relay server-select command is used on DHCPv6 relay agents. When a DHCPv6 client sends DHCPv6 Request packets to a DHCPv6 server through a DHCPv6 relay agent, you can run the dhcp relay server-select command to specify a DHCPv6 server group for the DHCPv6 relay agent and configure the IPv6 address of the DHCPv6 server.
Prerequisites
A DHCPv6 server group has been created using the dhcpv6 server group command.
The IPv6 function has been enabled using the ipv6 enable command in the interface view.
Precautions
# Configure the DHCPv6 server group named group 1 for the DHCPv6 relay agent on VLANIF100.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] dhcp enable [HUAWEI] dhcpv6 server group group1 [HUAWEI-dhcpv6-server-group-group1] dhcpv6-server fc00:1::1 [HUAWEI-dhcpv6-server-group-group1] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ipv6 enable [HUAWEI-Vlanif100] dhcpv6 relay server-select group1
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] dhcp enable [HUAWEI] dhcpv6 server group group1 [HUAWEI-dhcpv6-server-group-group1] dhcpv6-server fc00:1::1 [HUAWEI-dhcpv6-server-group-group1] quit [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] dhcpv6 relay server-select group1