11
Configuring dynamic IPv6 address
assignment
Introduction
The following example describes the basic procedure to configure an interface as a DHCPv6 server
for dynamic IPv6 address assignment.
Network configuration
As shown in
, Switch A and Switch B are gateway devices for internal hosts. Configure the
network to meet the following requirements:
•
Switch A and Switch B are connected through Ethernet interfaces. The interfaces of each
switch operate in different VLAN and have IPv6 addresses.
•
VLAN-interface 1 and VLAN-interface 3 operate in DHCPv6 server mode to assign IPv6
addresses to hosts.
•
Switch A and Switch B have IPv6 static routes to ensure network connectivity.
Figure 4 Network diagram
Procedure
1.
Configure Switch A.
# Create VLAN 1 and assign GigabitEthernet 1/0/2 to VLAN 1.
<SwitchA> system-view
[SwitchA] vlan 1
[SwitchA-vlan1] port gigabitethernet 1/0/2
[SwitchA-vlan1] quit
# Create VLAN 2 and assign GigabitEthernet 1/0/1 to VLAN 2.
[SwitchA] vlan 2
[SwitchA-vlan2] port gigabitethernet 1/0/1
[SwitchA-vlan2] quit
# Specify an IPv6 global unicast address for VLAN-interface 2.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ipv6 address 3001::1/64
[SwitchA-Vlan-interface2] quit
# Specify an IPv6 global unicast address for VLAN-interface 1 and disable RA message
suppression on VLAN-interface 1.
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ipv6 address 2001::1/64
Switch A
Switch B
Vlan-int2
3001::1/64
Vlan-int2
3001::2/64
Vlan-int1
2001::1/64
GE1/0/2
GE1/0/1
GE1/0/1
Host A
Host B
Vlan-int3
4001::1/64
GE1/0/2