HP VPN Firewall Appliances Network Management Command Reference

707
Syntax
ipv6 address prefix-number sub-prefix/prefix-length
undo ipv6 address prefix-number
Default
No prefix is applied for IPv6 address generation on an interface.
Views
Interface view
Default command level
2: System level
Parameters
prefix-number: Specifies an IPv6 prefix by its ID in the range of 1 to 1024.
sub-prefix/prefix-length: Specifies the sub-prefix bit and host bit for an IPv6 address, and specifies the
prefix length. The value range for the prefix length is 1 to 128.
Usage guidelines
A maximum of one IPv6 address can be generated with the applied IPv6 prefix for an interface. You
cannot repeatedly execute the ipv6 address prefix-number command on the interface to modify the
prefix.
Examples
# Create IPv6 prefix AAAA::/16 and assign ID 1 to the prefix. Apply the prefix to GigabitEthernet 0/1
to generate an IPv6 address, set sub-prefix bit and host bit to BBBB:CCCC:DDDD::10, and the prefix
length to 32. The generated address for the interface is AAAA:CCCC:DDDD::10/32.
<Sysname> system-view
[Sysname] ipv6 prefix 1 AAAA::/16
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 address 1 BBBB:CCCC:DDDD::10/32
ipv6 address anycast
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.
Syntax
ipv6 address ipv6-address/prefix-length anycast
undo ipv6 address ipv6-address/prefix-length anycast
Default
No IPv6 anycast address is configured for an interface.
Views
Interface view
Default command level
2: System level