< Home

dhcpv6 relay server-select

Function

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.

Format

dhcpv6 relay server-select group-name

undo dhcpv6 relay server-select

Parameters

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.

Views

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

Default Level

2: Configuration level

Usage Guidelines

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

  1. A DHCPv6 server group has been created using the dhcpv6 server group command.

  2. The IPv6 function has been enabled using the ipv6 enable command in the interface view.

Precautions

  • Each DHCPv6 server group can be bound to multiple interfaces, but each interface can only be bound to one DHCPv6 server group.
  • IP addresses of servers in a DHCPv6 server group cannot be on the same network segment with IP addresses of interfaces on the DHCPv6 relay agent.
  • If you run the dhcpv6 relay server-select command multiple times in the same interface view, only the latest configuration takes effect.

Example

# 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
# Configure the DHCPv6 server group named group 1 for the DHCPv6 relay agent on GE0/0/1.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >