The ipv6 enable command enables the IPv6 function on an interface.
The undo ipv6 enable command disables the IPv6 function on an interface.
By default, the IPv6 function is disabled on an interface.
Usage Scenario
You can perform IPv6 configurations on an interface only when the interface has the IPv6 function enabled.
Prerequisites
The ipv6 command has been run in the system view.
Follow-up Procedure
Configure IPv6 addresses and ND parameters. ND parameters include the M flag, O flag, RA halt flag, interval for sending RA packets, lifetime of RA packets, interval for sending NS packets, DAD counts, period during which the IPv6 neighbor keeps reachable, prefix carried in the RA packet, and static ND entries.
Precautions
When system resources are insufficient, the ipv6 enable command does not take effect and an alarm is generated. The alarm ID is 1.3.6.1.4.1.2011.5.25.227.2.1.22.
# Enable the IPv6 function on VLANIF10.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] ipv6 enable
# Enable the IPv6 function 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