ipv6 address auto

Use ipv6 address auto to enable the stateless address autoconfiguration function on an interface, so that the interface can automatically generate a global unicast address.

Use undo ipv6 address auto to disable this function.

Syntax

ipv6 address auto

undo ipv6 address auto

Default

The stateless address autoconfiguration function is disabled.

Views

Interface view

Predefined user roles

network-admin

Usage guidelines

After a global unicast address is generated through stateless autoconfiguration, a link-local address is generated automatically.

To remove the global unicast address and the link-local address that are automatically generated, use the undo ipv6 address auto command or the undo ipv6 address command.

Examples

# Enable stateless address autoconfiguration on VLAN-interface 100.

<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address auto