Configuring IPv6 address assignment

About IPv6 address assignment

Use one of the following methods to configure IPv6 address assignment:

Restrictions and guidelines

Procedure

  1. Enter system view.

    system-view

  2. (Optional.) Specify the IPv6 addresses excluded from dynamic assignment.

    ipv6 dhcp server forbidden-address start-ipv6-address [ end-ipv6-address ] [ vpn-instance vpn-instance-name ]

    By default, all IPv6 addresses except for the DHCPv6 server's IP address in a DHCPv6 address pool are assignable.

    If the excluded IPv6 address is in a static binding, the address still can be assigned to the client.

  3. Enter DHCPv6 address pool view.

    ipv6 dhcp pool pool-name

  4. Specify an IPv6 subnet for dynamic assignment.

    network { prefix/prefix-length | prefix prefix-number [ sub-prefix/sub-prefix-length ] } [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]

    By default, no IPv6 address subnet is specified.

    The IPv6 subnets cannot be the same in different address pools.

    If you specify an IPv6 prefix by its ID, make sure the IPv6 prefix is in effect. Otherwise, the configuration does not take effect.

  5. (Optional.) Specify a non-temporary IPv6 address range.

    address range start-ipv6-address end-ipv6-address [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]

    By default, no non-temporary IPv6 address range is specified, and all unicast addresses on the subnet are assignable.

  6. (Optional.) Specify a temporary IPv6 address range.

    temporary address range start-ipv6-address end-ipv6-address [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]

    By default, no temporary IPv6 address range is specified, and the DHCPv6 server cannot assign temporary IPv6 addresses.

  7. (Optional.) Enable EUI-64 address allocation mode.

    address-alloc-mode eui-64

    By default, EUI-64 address allocation mode is disabled.

    This feature enables the DHCPv6 server to obtain the client MAC address in the DHCP request and generates an EUI-64 IPv6 address to assign to the client.

  8. (Optional.) Create a static binding.

    static-bind address ipv6-address/addr-prefix-length duid duid [ iaid iaid ] [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]

    By default, no static binding is configured.

    To add more static bindings, repeat this step.