ipv6 dhcp prefix-pool

Use ipv6 dhcp prefix-pool to create a prefix pool, specify the prefix/prefix length for the pool, and specify the assigned prefix length.

Use undo ipv6 dhcp prefix-pool to remove the specified prefix pool.

Syntax

ipv6 dhcp prefix-pool prefix-pool-number prefix prefix/prefix-len assign-len assign-len

undo ipv6 dhcp prefix-pool prefix-pool-number

Default

No prefix pool is configured.

Views

System view

Predefined user roles

network-admin

Parameters

prefix-pool-number: Specifies a prefix pool number in the range of 1 to 128.

prefix prefix/prefix-len: Specifies a prefix/prefix length for the pool. 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.

Usage guidelines

Different prefix pools cannot overlap.

You cannot modify an existing prefix pool. To change the prefix pool settings, you must delete the prefix pool first.

Removing a prefix pool clears all prefix bindings from the prefix pool.

Examples

# Create prefix pool named 1, and specify the prefix 2001:0410::/32 with assigned prefix length being 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