Configuring an IPv6 Prefix Pool

Before configuring the NDRA address assignment mode, you need to configure an IPv6 prefix pool and bind it to an address pool.

Context

Only one prefix and its mask can be configured in a prefix pool. After a prefix pool is locked, the leases of addresses that have been assigned cannot be renewed and new addresses cannot be assigned. The address reservation type can be configured only in a prefix pool.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ipv6 prefix prefix-name [ local | delegation | remote ]

    An IPv6 prefix pool is created and its view is displayed.

    • After the local prefix pool is bound to the local IPv6 address pool, the local device functions as a server to assign prefixes or IPv6 addresses to users.

    • After a delegation prefix pool is bound to an IPv6 delegation address pool, the local device functions as a delegating router to assign IPv6 prefixes to requesting routers. Requesting routers exclusively use these IPv6 prefixes. The delegation prefix pool with the slaac-unshare-only command configured has a higher priority.

    • After a remote prefix pool is bound to a remote IPv6 address pool, the remote DHCPv6 server assigns IPv6 prefixes or addresses to users.

  3. (Optional) Run slaac-unshare-only

    The delegation prefix pool to be used only in stateless address assignment mode is configured.

    The delegation prefix pool configured with this command can only be used for unshared prefix assignment through ND, instead of DHCPv6 IA_PD prefix assignment, and is preferred in IPv6 prefix assignment through ND.

  4. Run prefix prefix-address/prefix-length [ delegating-prefix-length delegating-prefix-length ]

    An IPv6 address prefix is configured.

    The assignable prefix length is the length of the IPv6 prefix that a delegating router assigns to a requesting router. The assignable prefix length configured in a prefix pool must be greater than the prefix length configured in the prefix pool. Otherwise, prefixes in the prefix pool cannot be assigned to users.

  5. (Optional) Run excluded-ipv6-address start-ipv6-address [ end-ipv6-address ]

    A specified IPv6 address or address segment is excluded.

    The excluded IPv6 addresses must be in the assignable range of the prefix pool. If the end IPv6 address is not specified, only the start IPv6 address is excluded.

  6. (Optional) Run excluded-ipv6-prefix start-ipv6-prefix/prefix-length [ end-ipv6-prefix/prefix-length ]

    One or more IPv6 prefixes are excluded.

    The excluded IPv6 prefix must be in the assignable range of the prefix pool. When the end IPv6 prefix is not specified, only the start IPv6 prefix is excluded.

  7. (Optional) Run lock

    An IPv6 prefix pool is locked.

    After this command is run, no prefix in the locked prefix pool can be assigned, preventing new users from going online using prefixes in the prefix pool.

    This method is typically used when a prefix pool cannot be deleted because its prefixes are in use by online users. You can lock the prefix pool first to stop it from assigning prefixes. After all users go offline, the prefixes in the prefix pool are all released, and the prefix pool can then be deleted.

  8. (Optional) Run vpn-instance vpn-instance-name

    A VPN instance is bound to the prefix pool.

  9. (Optional) Run lifetime preferred-lifetime { days days-value [ hours hours-value [ minutes minutes-value ] ] | infinite } valid-lifetime { days days-value [ hours hours-value [ minutes minutes-value ] ] | infinite }

    The lifetime of IPv6 prefixes is configured.

    The preferred-lifetime parameter is used to calculate the lease renewal time and rebinding time of the IPv6 prefix pool. The time value must be no less than 1 minute. The default value is two days.

    The valid-lifetime parameter specifies the validity period of a specified IPv6 prefix. The user using the prefix will be logged out after the validity period expires. The time value must be no less than 1 minute and the preferred-lifetime value. The default value is three days.

  10. (Optional) Run conflict auto-recycle interval interval-time

    The interval for automatically reclaiming conflicting prefixes is configured.

    This command is valid only to the local prefix pool.

  11. (Optional) Run reserved prefix { duid | mac } [ lease ]

    The reservation type of user prefixes in the prefix pool is configured.

    This command can be run only in the local and delegation prefix pools.

  12. (Optional) Run recycle prefix start-prefix [ end-prefix ]

    The prefix status is configured as idle.

  13. (Optional) Run reserved ipv6-address { duid | mac } [ lease ]

    The reservation type of user addresses in the prefix pool is configured.

    This command can be configured only in the remote prefix pool.

  14. (Optional) Run recycle ipv6-address start-prefix [ end-prefix ]

    The address status is configured as idle.

    The command can only be run in the local prefix pool.

  15. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >