R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

267
Default
No IPv6 anycast address is configured for an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies an IPv6 anycast address.
prefix-length: Specifies a prefix length in the range of 1 to 128.
Examples
# Set the IPv6 anycast address of interface GigabitEthernet 2/1/1 to 2001::1 with prefix length 64.
Method 1:
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ipv6 address 2001::1/64 anycast
Method 2:
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ipv6 address 2001::1 64 anycast
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.