The ipv6 nd autoconfig managed-address-flag command sets the M flag of stateful autoconfiguration in an RA packet.
The undo ipv6 nd autoconfig managed-address-flag command deletes the M flag of stateful autoconfiguration in an RA packet.
By default, the "managed address configuration" flag (M flag) is not set in the RA message.
Usage Scenario
Prerequisites
The IPv6 function has been enabled on the interface using the ipv6 enable command in the interface view.
Precautions
After the ipv6 nd autoconfig managed-address-flag command is run, a host can obtain configurations (excluding an IPv6 address) such as the router lifetime, neighbor reachable time, retransmission interval, and PMTU by means of stateful autoconfiguration even if the ipv6 nd autoconfig other-flag command is not run.
After the display ipv6 interface command is run, the command output shows that the attached hosts obtain IPv6 addresses through stateful autoconfiguration or stateless autoconfiguration.
# Set the M flag of stateful autoconfiguration in an RA packet on VLANIF2.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface vlanif 2 [HUAWEI-Vlanif2] ipv6 enable [HUAWEI-Vlanif2] ipv6 nd autoconfig managed-address-flag
# Set the M flag of stateful autoconfiguration in an RA packet on GE0/0/1.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ipv6 nd autoconfig managed-address-flag