Configuring Basic IPv6 Functions 509
■ EUI-64 format: When the EUI-64 format is adopted to form IPv6 addresses, the
IPv6 address prefix of an interface is the configured prefix and the interface
identifier is derived from the link-layer address of the interface.
■ Manual configuration: IPv6 site-local addresses or aggregatable global unicast
addresses are configured manually.
IPv6 link-local addresses can be configured in either of the following ways:
■ Automatic generation: The device automatically generates a link-local address
for an interface according to the link-local address prefix (FE80::/64) and the
link-layer address of the interface.
■ Manual assignment: IPv6 link-local addresses can be assigned manually.
Follow these steps to configure an IPv6 unicast address:
n
■ After an IPv6 site-local address or aggregatable global unicast address is
configured for an interface, a link-local address will be generated automatically.
The automatically generated link-local address is the same as the one
generated by using the ipv6 address auto link-local command. If a link-local
address is manually assigned to an interface, this link-local address takes effect.
If the manually assigned link-local address is removed, the automatically
generated link-local address takes effect.
■ The manual assignment takes precedence over the automatic generation. That
is, if you first adopt the automatic generation and then the manual
assignment, the manually assigned link-local address will overwrite the
automatically generated one. If you first adopt the manual assignment and
then the automatic generation, the automatically generated link-local address
will not take effect and the link-local address of an interface is still the manually
assigned one. If you delete the manually assigned address, the automatically
generated link-local address is validated.
To do… Use the command… Remarks
Enter system view system-view -
Enter interface view interface interface-type
interface-number
-
Configure an
IPv6
aggregatable
global unicast
address or
site-local
address
Manually assign an
IPv6 address
ipv6 address
{ ipv6-address
prefix-length |
ipv6-address/prefix-lengt
h }
Required to use either
command.
By default, no site-local
address or aggregatable
global unicast address is
configured for an
interface.
Adopt the EUI-64
format to form an
IPv6 address
ipv6 address
ipv6-address/prefix-lengt
h eui-64
Configure an
IPv6 link-local
address
Automatically
generate a link-local
address
ipv6 address auto
link-local
Optional
By default, after an IPv6
site-local address or
aggregatable global
unicast address is
configured for an
interface, a link-local
address will be
generated automatically.
Manually assign a
link-local address for
an interface
ipv6 address
ipv6-address link-local