12
[SwitchA-Vlan-interface1] undo ipv6 nd ra halt
# Apply an IPv6 address pool to VLAN-interface 1.
[SwitchA-Vlan-interface1] ipv6 dhcp server apply pool 1 allow-hint rapid-commit
# Set the M flag to 1 in RA advertisements to be sent on VLAN-interface 1. Hosts that receive
the RA advertisements will obtain IPv6 addresses through DHCPv6.
[SwitchA-Vlan-interface1] ipv6 nd autoconfig managed-address-flag
# Set the O flag to 1 in RA advertisements to be sent on VLAN-interface 1. Hosts that receive
the RA advertisements will obtain configuration information other than IPv6 address through
DHCPv6.
[SwitchA-Vlan-interface1] ipv6 nd autoconfig other-flag
# Configure VLAN-interface 1 to operate in DHCPv6 server mode.
[SwitchA-Vlan-interface1] ipv6 dhcp select server
[SwitchA-Vlan-interface1] quit
# Create IPv6 address pool 1.
[SwitchA] ipv6 dhcp pool 1
[SwitchA-dhcp6-pool-1] network 2001::/64
[SwitchA-dhcp6-pool-1] dns-server 1::1
[SwitchA-dhcp6-pool-1] quit
# Configure an IPv6 static route destined for 4001::/64 and the next hop of the route is 3001::2.
[SwitchA] ipv6 route-static 4001:: 64 3001::2
# Save the configuration.
[SwitchA] save force
2.
Configure Switch B.
# Create VLAN 2 and assign GigabitEthernet 1/0/1 to VLAN 2.
<SwitchB> system-view
[SwitchB] vlan 2
[SwitchB-vlan2] port gigabitethernet 1/0/1
[SwitchB-vlan2] quit
# Create VLAN 3 and assign GigabitEthernet 1/0/2 to VLAN 3.
[SwitchB] vlan 3
[SwitchB-vlan3] port gigabitethernet 1/0/2
[SwitchB-vlan3] quit
# Specify an IPv6 global unicast address for VLAN-interface 2.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ipv6 address 3001::2/64
[SwitchB-Vlan-interface2] quit
# Specify an IPv6 global unicast address for VLAN-interface 3 and disable RA message
suppression on VLAN-interface 3.
[SwitchB] interface vlan-interface 3
[SwitchB-Vlan-interface3] ipv6 address 4001::1/64
[SwitchB-Vlan-interface3] undo ipv6 nd ra halt
# Apply an IPv6 address pool to VLAN-interface 3.
[SwitchB-Vlan-interface3] ipv6 dhcp server apply pool 1 allow-hint rapid-commit
# Set the M flag to 1 in RA advertisements to be sent on VLAN-interface 3. Hosts that receive
the RA advertisements will obtain IPv6 addresses through DHCPv6.
[SwitchB-Vlan-interface3] ipv6 nd autoconfig managed-address-flag