262
Configuration procedure
# Specify IPv6 addresses for GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/0/2
[RouterA-GigabitEthernet2/0/2] ipv6 address 2::1 64
[RouterA-GigabitEthernet2/0/2] quit
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ipv6 address 1::1 64
# Disable RA message suppression on GigabitEthernet 2/0/1.
[RouterA-GigabitEthernet2/0/1] undo ipv6 nd ra halt
# Set the M flag to 1 in RA advertisements to be sent on GigabitEthernet 2/0/1. Hosts that receive the
RA messages will obtain IPv6 addresses through DHCPv6.
[RouterA-GigabitEthernet2/0/1] ipv6 nd autoconfig managed-address-flag
# Set the O flag to 1 in RA advertisements to be sent on GigabitEthernet 2/0/1. Hosts that receive the
RA messages will obtain information other than IPv6 address through DHCPv6.
[RouterA-GigabitEthernet2/0/1] ipv6 nd autoconfig other-flag
# Enable the DHCPv6 relay agent on GigabitEthernet 2/0/1 and specify the DHCPv6 server on the
relay agent.
[RouterA-GigabitEthernet2/0/1] ipv6 dhcp select relay
[RouterA-GigabitEthernet2/0/1] ipv6 dhcp relay server-address 2::2
Verifying the configuration
# Display DHCPv6 server address information on Router A.
[RouterA-GigabitEthernet2/0/1] display ipv6 dhcp relay server-address
Interface: GigabitEthernet2/0/1
Server address Outgoing Interface
2::2
# Display packet statistics on the DHCPv6 relay agent.
[RouterA-GigabitEthernet2/0/1] display ipv6 dhcp relay statistics
Packets dropped : 0
Packets received : 14
Solicit : 0
Request : 0
Confirm : 0
Renew : 0
Rebind : 0
Release : 0
Decline : 0
Information-request : 7
Relay-forward : 0
Relay-reply : 7
Packets sent : 14
Advertise : 0
Reconfigure : 0
Reply : 7