Configuring A Dhcpv6 Policy For Ipv6 Address And Prefix Assignment - HPE FlexNetwork 10500 Series Configuration Manual

Layer 3-ip services
Table of Contents

Advertisement

Step
9.
Specify a DHCPv6 option
group.
Configuring a 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 relay agent, for example, Option 18 or
Option 37.
To configure a DHCPv6 policy for IPv6 address and prefix assignment:
Step
1.
Enter system view.
2.
Create a DHCPv6 user class
and enter DHCPv6 user class
view.
3.
Configure a match rule for the
DHCPv6 user class.
4.
Return to system view.
5.
Create a DHCPv6 policy and
enter DHCPv6 policy view.
6.
Specify a DHCPv6 address
pool for a DHCPv6 user class.
7.
Specify the default DHCPv6
address pool.
8.
Return to system view.
9.
Enter interface view.
10. Apply the DHCPv6 policy to the
interface.
Command
option-group option-group-number
Command
system-view
ipv6 dhcp class class-name
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 }
quit
ipv6 dhcp policy policy-name
class class-name pool pool-name
default pool pool-name
quit
interface interface-type
interface-number
ipv6 dhcp apply-policy
policy-name
197
Remarks
By default, no DHCPv6
option group is specified.
Remarks
N/A
By default, no DHCPv6 user
classes exist.
By default, no match rule is
configured for a DHCPv6 user
class.
N/A
By default, no DHCPv6
policies exist.
By default, no address pool is
specified for a user class.
By default, no default address
pool is specified.
N/A
N/A
By default, no DHCPv6 policy
is applied to an interface.

Advertisement

Table of Contents
loading

Table of Contents