ipv6 dhcp prefix-pool
Use ipv6 dhcp prefix-pool to create a prefix pool and specify the prefix and the assigned prefix length for the pool.
Use undo ipv6 dhcp prefix-pool to delete the specified prefix pool.
Syntax
ipv6 dhcp prefix-pool prefix-pool-number prefix { prefix-number | prefix/prefix-len } assign-len assign-len [ vpn-instance vpn-instance-name ]
undo ipv6 dhcp prefix-pool prefix-pool-number [ vpn-instance vpn-instance-name ]
Default
No prefix pools exist.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
prefix-pool-number: Specifies a prefix pool number in the range of 1 to 128.
prefix { prefix-number | prefix/prefix-len }: Specifies a prefix by its ID or in the format of prefix/prefix length. The value range for the prefix-number argument is 1 to 1024. The value range for the prefix-len argument is 1 to 128.
assign-len assign-len: Specifies the assigned prefix length. The value range is 1 to 128, and the value must be greater than or equal to prefix-len. The difference between assign-len and prefix-len must be no more than 16.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. To create a prefix pool for the public network, do not specify this option.
Usage guidelines
Different prefix pools cannot overlap.
To modify a prefix pool, execute the undo ipv6 dhcp prefix-pool command to delete the prefix pool, and then execute the ipv6 dhcp prefix-pool command.
Deleting a prefix pool clears all prefix bindings from the prefix pool.
When you specify a prefix by its ID, follow these restrictions and guidelines:
This command does not take effect if the prefix does not exist. This command takes effect after the prefix is created.
Do not specify the same prefix for different prefix pools in a VPN.
If the prefix that the ID represents is changed, the prefix range in the prefix pool accordingly changes.
Examples
# Create IPv6 prefix 88:99::/32 with the ID 3. Configure prefix pool 2 with IPv6 prefix 3 and assigned prefix length 42. Prefix pool 2 contains 1024 prefixes from 88:99::/42 to 88:99:FFC0::/42.
<Sysname> system-view [Sysname] ipv6 prefix 3 88:99::/32 [Sysname] ipv6 dhcp prefix-pool 2 prefix 3 assign-len 42
# Create prefix pool 1, and specify the prefix 2001:0410::/32 with the assigned prefix length 42. Prefix pool 1 contains 1024 prefixes from 2001:0410::/42 to 2001:0410:FFC0::/42.
<Sysname> system-view [Sysname] ipv6 dhcp prefix-pool 1 prefix 2001:0410::/32 assign-len 42
Related commands
display ipv6 dhcp prefix-pool
prefix-pool