R3303-HP HSR6800 Routers Layer 3 - IP Services Command Reference

Table Of Contents
201
ipv6 address
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.
Syntax
ipv6 address { ipv6-address prefix-length | prefix/prefix-length }
undo ipv6 address [ ipv6-address prefix-length | prefix/prefix-length ]
Default
No global unicast address is configured for an interface.
Views
Interface view
Default command level
2: System level
Parameters
ipv6-address: IPv6 address.
prefix-length: Prefix length of the IPv6 address, in the range of 1 to 128.
Usage guidelines
Except for the link-local address automatically obtained and the link-local address generated through
stateless autoconfiguration, all IPv6 addresses are removed from the interface if the undo ipv6 address
command is executed without any parameter specified.
Examples
# Set the IPv6 global unicast address of GigabitEthernet 3/1/1 to 2001::1 with prefix length 64.
Method 1:
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/1/1
[Sysname-GigabitEthernet3/1/1] ipv6 address 2001::1/64
Method 2:
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/1/1
[Sysname-GigabitEthernet3/1/1] ipv6 address 2001::1 64
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