R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

651
ipv6 address
Syntax
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ]
View
Interface view
Default level
2: System level
Parameters
ipv6-address: IPv6 address.
prefix-length: Prefix length of the IPv6 address, in the range of 1 to 128.
Description
Use ipv6 address to configure an IPv6 global unicast address for an interface.
Use undo ipv6 address to remove the IPv6 address from the interface.
By default, no global unicast address is configured for an interface.
Except the link-local address automatically obtained and the link-local address generated through
stateless autoconfiguration, all IPv6 addresses will be removed from the interface if the undo ipv6
address command is executed without any parameter specified.
Examples
# Set the global IPv6 unicast address of GigabitEthernet 0/1 to 2001::1 with prefix length 64.
Method I:
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 address 2001::1/64
Method II:
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 address 2001::1 64
ipv6 address anycast
Syntax
ipv6 address ipv6-address/prefix-length anycast
undo ipv6 address ipv6-address/prefix-length anycast
View
Interface view
Default level
2: System level