< Home

managed-address-flag

Function

The managed-address-flag command configures a rule to match RA messages against the M flag in RA messages.

The undo managed-address-flag command deletes the rule used to match RA messages against the M flag in RA messages.

By default, no rule is configured to match RA messages against the M flag in RA messages.

Format

managed-address-flag { on | off }

undo managed-address-flag

Parameters

Parameter Description Value

on

Indicates that the M flag is set to 1.

-

off

Indicates that the M flag is set to 0.

-

Views

IPv6 RA guard policy view

Default Level

2: Configuration level

Usage Guidelines

The M flag in an RA message determines whether users use stateful autoconfiguration to obtain IPv6 addresses. When the M flag is set to 1, a user obtains an IPv6 address using stateful autoconfiguration (for example, a DHCPv6 server). When the M flag is set to 0, a user obtains an IPv6 address using stateless autoconfiguration. That is, an IPv6 address is generated for the user according to the prefix information advertised by the router and the link-layer address of the user.

After a rule is configured to match RA messages against the M flag in RA messages in the IPv6 RA guard policy view, the interface to which the policy is applied checks the M flag in the received RA messages and forwards the messages only when the messages match the rule. Otherwise, the interface discards the messages.

Example

# In the IPv6 RA guard policy p1, set the matching rule of the M flag to on. That is, users obtain IPv6 addresses using stateful autoconfiguration.

<HUAWEI> system-view
[HUAWEI] nd raguard policy p1
[HUAWEI-nd-raguard-policy-p1] managed-address-flag on
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >