ipv6 nd ra prefix default no-advertise

Function

The ipv6 nd ra prefix default no-advertise command configures RA messages not to carry the prefix generated based on an interface IPv6 address.

The undo ipv6 nd ra prefix default no-advertise command restores the default configuration.

By default, RA messages contain only the prefix specified through the ipv6 address command.

Format

ipv6 nd ra prefix default no-advertise

undo ipv6 nd ra prefix default no-advertise

Parameters

None

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Management interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nd write

Usage Guidelines

Usage Scenario

If the ipv6 nd ra prefix command is run to configure a prefix, the device advertises both the address prefix configured using the ipv6 nd ra prefix command and that using the ipv6 address command.

By default, RA messages do not carry the default prefix generated based on the interface IPv6 address. If a user does not want the RA message to carry the default address prefix, run the ipv6 nd ra prefix default no-advertise command.

Prerequisites

IPv6 has been enabled on the involved interface using the ipv6 enable command.

Configuration Impact

After a host receives the RA message with the prefix configured through the ipv6 nd ra prefix default no-advertise command, the host updates the local prefix information.

Precautions

The prefix configured through the ipv6 nd ra prefix default no-advertise command cannot be fe80:: (prefix of a link-local address), ff00:: (prefix of a multicast address), or prefix of an unspecified address. It neither can be the prefix that has been used by another interface (including the interface address prefix and prefix carried in RA messages).

Example

# Configure the GE 0/1/1 to not carry the default address prefix in RA messages.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/1] ipv6 nd ra prefix default no-advertise
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >