R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
652
Parameters
ipv6-address/prefix-length: Specifies an IPv6 anycast address and its prefix length. The prefix length
ranges 1 to 128.
Description
Use ipv6 address anycast to configure an IPv6 anycast address for an interface.
Use undo ipv6 address anycast 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 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
Syntax
ipv6 address auto
undo ipv6 address auto
View
Interface view
Default level
2: System level
Parameters
None
Description
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.
The stateless address autoconfiguration function is disabled by default.
NOTE:
A
fter a
g
lobal unicast address is
g
enerated throu
g
h stateless autoconfi
g
uration, 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