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

Table Of Contents
705
Syntax
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/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 0/1 to 2001::1 with prefix length 64.
Method 1:
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 address 2001::1/64
Method 2:
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 address 2001::1 64
ipv6 address prefix-number
Use ipv6 address prefix-number to apply a prefix to generate an IPv6 address. The IPv6 address of an
interface comprises the specified prefix, sub-prefix bit, and host bit.
Use undo ipv6 address prefix-number to remove an IPv6 address generated with an applied prefix.
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