R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

242
Displaying and maintaining the DHCPv6 relay
agent
Execute display commands in any view and reset commands in user view.
Task Command
Display the DUID of the local device. display ipv6 dhcp duid
Display DHCPv6 server addresses
specified on the DHCPv6 relay agent.
display ipv6 dhcp relay server-address [ interface interface-type
interface-number ]
Display packet statistics on the DHCPv6
relay agent.
display ipv6 dhcp relay statistics [ interface interface-type
interface-number ]
Clear packets statistics on the DHCPv6
relay agent.
reset ipv6 dhcp relay statistics [ interface interface-type
interface-number ]
DHCPv6 relay agent configuration example
Network requirements
As shown in Figure 94, configure the DHCPv6 relay agent on Router A to relay DHCP packets between
DHCPv6 clients and the DHCPv6 server.
Router A acts as the gateway of network 1::/64. It sends RA messages to notify the hosts to obtain IPv6
addresses and other configuration parameters through DHCPv6. For more information about RA
messages, see "Configuring basic IPv6 settings."
Figure 94 Network diagram
Configuration procedure
1. Configure the DHCPv6 relay agent on Router A:
# Specify IPv6 addresses for GigabitEthernet 2/1/1 and GigabitEthernet 2/1/2.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/2
[RouterA-GigabitEthernet2/1/2] ipv6 address 2::1 64