R21xx-HP FlexFabric 11900 Layer 3 IP Services Command Reference
212
DHCPv6 commands
ipv6 dhcp select
Use ipv6 dhcp select to enable the DHCPv6 server or DHCPv6 relay agent on an interface.
Use undo ipv6 dhcp select to restore the default.
Syntax
ipv6 dhcp select { relay | server }
undo ipv6 dhcp select
Default
An interface discards DHCPv6 packets from DHCPv6 clients.
Views
Interface view
Predefined user roles
network-admin
Parameters
relay: Enables the DHCPv6 relay agent on the interface.
server: Enables the DHCPv6 server on the interface.
Usage guidelines
Before changing the DHCPv6 server mode to the DHCPv6 relay agent mode on an interface, use the
reset ipv6 dhcp server ip-in-use and reset ipv6 dhcp server pd-in-use commands to remove IPv6
address/prefix bindings.
An interface cannot serve as the DHCPv6 relay agent and the DHCPv6 server at the same time.
Examples
# Enable the DHCPv6 server on VLAN-interface 10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ipv6 dhcp select server
# Enable the DHCPv6 relay agent on VLAN-interface 20.
<Sysname> system-view
[Sysname] interface vlan-interface 20
[Sysname-Vlan-interface20] ipv6 dhcp select relay
Related commands
• display ipv6 dhcp relay server-address










