< Home

Configuring the Address Prefixes to Be Advertised

Nodes of the local links can perform address auto-configuration by using prefixes of these addresses.

Procedure

  1. Access the system view.

    system-view

  2. Access the interface view.

    interface interface-type interface-number

  3. (Optional) Configure RA messages not to carry the default prefix generated based on the interface IPv6 address.

    ipv6 nd ra prefix default no-advertise

    By default, RA messages carry the default prefix generated based on the interface IPv6 address.

  4. Set the prefix of RA messages.

    ipv6 nd ra prefix { ipv6-address ipv6-prefix-length | ipv6-prefix/ipv6-prefix-length } valid-lifetime preferred-lifetime [ no-autoconfig ] [ off-link ]

    The prefix configuring using the ipv6 nd ra prefix command takes precedence over the default prefix generated based on the interface IPv6 address. An RA message can carry a maximum of 10 prefixes. If exactly 10 prefixes have been manually configured, the default prefix will not be carried.

    If stateless address allocation is used, you must specify the prefix length as 64. Otherwise, the address does not take effect, and RA messages will be discarded.

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