F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
706
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 prefix length ranges from 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
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