210
Interface Physical Protocol IPv6 Address
Vlan-interface2 up up 1:1::2
Example: Configuring IPv6 prefix acquisition
Network configuration
As shown in Figure 78, configure the switch to use DHCPv6 to obtain configuration parameters from
the DHCPv6 server. The parameters include IPv6 prefix, DNS server address, domain name suffix,
SIP server address, and SIP server domain name.
Figure 78 Network diagram
Procedure
You must configure the DHCPv6 server first before configuring the DHCPv6 client. For information
about configuring DHCPv6 server, see "Configuring the DHCPv6 server."
# Configure an IPv6 address for VLAN-interface 2 that is connected to the DHCPv6 server.
<Switch> system-view
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ipv6 address 1::2/48
# Configure VLAN-interface 2 as a DHCPv6 client for IPv6 prefix acquisition. Configure the DHCPv6
client to support DHCPv6 rapid prefix assignment. Configure the DHCPv6 client to assign an ID to
the obtained IPv6 prefix and create a dynamic DHCPv6 option group for saving configuration
parameters.
[Switch-Vlan-interface2] ipv6 dhcp client pd 1 rapid-commit option-group 1
[Switch-Vlan-interface2] quit
Verifying the configuration
# Verify that the DHCPv6 client has obtained an IPv6 prefix and other configuration parameters from
the DHCPv6 server.
[Switch] display ipv6 dhcp client
Vlan-interface2:
Type: Stateful client requesting prefix
State: OPEN
Client DUID: 0003000100e002000000
Preferred server:
Reachable via address: FE80::2E0:1FF:FE00:18
Server DUID: 0003000100e001000000
IA_PD: IAID 0x00000642, T1 50 sec, T2 80 sec
Prefix: 12:34::/48
DHCPv6 server
Switch
DHCPv6 client
Vlan-int2
1::1/48
DHCPv6 client
Vlan-int2
1::2/48