158
Default level
2: System level
Parameters
ipv6-address/prefix-length
: Specifies an IPv6 anycast address and its prefix length. The prefix length
ranges 1 to 128.
Description
Use the
ipv6 address anycast
command to configure an IPv6 anycast address for an interface.
Use the
undo ipv6 address anycast
command to remove the IPv6 anycast address from the interface.
By default, no IPv6 anycast address is configured for an interface.
Examples
# Set the IPv6 anycast address of VLAN-interface 100 to 2001::1 with prefix length 64.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 2001::1/64 anycast
ipv6 address auto
Syntax
ipv6 address auto
undo ipv6 address auto
View
Interface view
Default level
2: System level
Parameters
None
Description
Use the
ipv6 address auto
command to enable the stateless address autoconfiguration function on the
interface. With this function enabled, the interface can automatically generate a global unicast address.
Use the
undo ipv6 address auto
command to disable this function.
The stateless address autoconfiguration function is disabled by default.
NOTE:
After a global unicast address is generated through stateless autoconfiguration, a link-local address is
generated automatically, which can be removed only by executing the
undo ipv6 address auto
command.
Examples
# Enable stateless address autoconfiguration on VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100