201
Enabling the DHCPv6 relay agent to advertise
IPv6 prefixes
A DHCPv6 client can obtain an IPv6 prefix through DHCPv6 and use this IPv6 prefix to assign IPv6
address to clients in a downstream network. If the IPv6 prefix is in a different subnet than the IPv6
address of the DHCPv6 client's upstream interface, the clients in the downstream network cannot
access the external network. You can enable the DHCPv6 relay agent that is on the same link as the
DHCPv6 client to advertise the IPv6 prefix.
To enable the DHCPv6 relay agent to advertise IPv6 prefixes:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the DHCPv6 relay
agent to advertise IPv6
prefixes.
ipv6 dhcp advertise pd-route
By default, the DHCPv6 relay
agent does not advertise IPv6
prefixes.
Before using this command, make
sure the DHCPv6 relay agent is
enabled to record DHCPv6 relay
entries.
Display and maintenance commands for 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 relay entries that record
clients' IPv6 address information.
display ipv6 dhcp relay client-information address
[
interface
interface-type interface-number
|
ipv6
ipv6-address
] [
vpn-instance
vpn-instance-name
]
Display DHCPv6 relay entries that record
clients' IPv6 prefix information.
display ipv6 dhcp relay client-information pd
[
interface
interface-type interface-number
|
prefix
prefix/prefix-len
]
[
vpn-instance
vpn-instance-name
]
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 DHCPv6 relay entries that record
clients' IPv6 address information.
reset ipv6 dhcp relay client-information address
[
interface
interface-type interface-number
|
ipv6
ipv6-address
]
[
vpn-instance
vpn-instance-name
]
Clear DHCPv6 relay entries that record
clients' IPv6 prefix information.
reset ipv6 dhcp relay client-information pd
[
interface
interface-type interface-number
|
prefix
prefix/prefix-len
]
[
vpn-instance
vpn-instance-name
]
Clear packets statistics on the DHCPv6
relay agent.
reset ipv6 dhcp relay statistics
[
interface
interface-type
interface-number
]