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.
Parameter | Description | Value |
---|---|---|
on |
Indicates that the M flag is set to 1. |
- |
off |
Indicates that the M flag is set to 0. |
- |
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.