![H3C SR8800-F Configuration Manual Download Page 199](http://html2.mh-extra.com/html/h3c/sr8800-f/sr8800-f_configuration-manual_4025863199.webp)
183
Step Command
Remarks
5.
Specify a SIP server address
or domain name.
sip-server
{
address ipv6-address
|
domain-name domain-name
}
By default, no SIP server
address or domain name is
specified.
6.
Configure a self-defined
DHCPv6 option.
option
code
hex
hex-string
By default, no self-defined
DHCPv6 option is
configured.
7.
Return to system view.
quit
N/A
8.
Create a DHCPv6 address
pool and enter its view.
ipv6 dhcp pool
pool-name
By default, no DHCPv6
address pools exist.
9.
Specify a DHCPv6 option
group.
option-group
option-group-number
By default, no DHCPv6
option group is specified.
Configuring a DHCPv6 policy for IPv6 address
and prefix assignment
About DHCPv6 policy for IPv6 address and prefix assignment
In a DHCPv6 policy, each DHCPv6 user class has a bound DHCPv6 address pool. Clients matching
different user classes obtain IPv6 addresses, IPv6 prefixes, and other parameters from different
address pools. The DHCPv6 policy must be applied to the interface that acts as the DHCPv6 server.
When receiving a DHCPv6 request, the DHCPv6 server compares the packet against the user
classes in the order that they are configured.
If a match is found and the bound address pool has assignable IPv6 addresses or prefixes, the
server uses the address pool for assignment. If the bound address pool does not have assignable
IPv6 addresses or prefixes, the assignment fails.
If no match is found, the server uses the default DHCPv6 address pool for assignment. If no default
address pool is specified or the default address pool does not have assignable IPv6 addresses or
prefixes, the assignment fails.
For successful assignment, make sure the applied DHCPv6 policy and the bound address pools
exist.
A match rule cannot match an option added by the DHCPv6 device, for example, Option 18 or Option
37.
Procedure
To configure a DHCPv6 policy for IPv6 address and prefix assignment:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a DHCPv6 user class
and enter DHCPv6 user class
view.
ipv6 dhcp class class-name
By default, no DHCPv6 user
classes exist.
3.
Configure a match rule for the
DHCPv6 user class.
if-match rule
rule-number
{
option
option-code
[
ascii
ascii-string
[
offset
offset
|
partial
] |
hex
hex-string
[
mask
mask
|
offset
offset
length
length
|
partial
] ] |
relay-agent
gateway-ipv6-address
}
By default, no match rule is
configured for a DHCPv6 user
class.