HP VPN Firewall Appliances Network Management Command Reference
708
Parameters
ipv6-address/prefix-length: Specifies an IPv6 anycast address and its prefix length. The prefix length
ranges 1 to 128.
Examples
# Set the IPv6 anycast address of GigabitEthernet 0/1 to 2001::1 with prefix length 64.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 address 2001::1/64 anycast
ipv6 address auto
Use ipv6 address auto to enable the stateless address autoconfiguration function on the interface. With
this function enabled, 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
Default command level
2: System level
Usage guidelines
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 GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 address auto
ipv6 address auto link-local
Use ipv6 address auto link-local to automatically generate a link-local address for an interface.
Use undo ipv6 address auto link-local to remove the automatically generated link-local address for the
interface.
Syntax
ipv6 address auto link-local
undo ipv6 address auto link-local