The ipv6 address command configures a global unicast address for an interface.
The undo ipv6 address command deletes the global unicast address configured for an interface.
By default, no global unicast address is configured for an interface.
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies the IPv6 address to be configured for the interface. |
The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
prefix-length |
Specifies the prefix length of the IPv6 address. |
The value is an integer that ranges from 1 to 128. In the EUI-64 address format, the prefix length must be less than 64. |
ipv6-address/prefix-length |
Specifies the IPv6 address and prefix length of an interface. |
The value is the IPv6 address/IPv6 address prefix length. |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, PW-VE sub-interface view, PW-VE interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Management interface view
Usage Scenario
A global unicast address equals an IPv4 public network address. Global unicast addresses are for links that can be aggregated and are provided for network service providers. The structure of global unicast addresses allows route-prefix aggregation for limiting the number of global routing entries. A global unicast address is composed of a 48-bit route prefix managed by operators, a 16-bit subnet ID managed by local nodes, and a 64-bit interface ID.
Configuring an IPv6 address with the prefix length of 127 has the following advantages:Prerequisites
Before running the ipv6 address command to configure a global unicast address for an interface, you need to run the ipv6 enable command in the interface view to enable the IPv6 function on the interface.
Configuration Impact
If the ipv6 address is run to configure an IPv6 address for an interface but no link-local address is configured for the interface, the system automatically generates a link-local address for the interface.
If no parameter (IPv6 address and prefix length) is specified in the undo ipv6 address command, all the IPv6 addresses configured for the interface are deleted.Precautions