12-22
Note that you cannot specify the prefix length of an IPv6 address in the EUI-64 format to be greater than
64.
Examples
# Configure an IPv6 address in EUI-64 format for VLAN-interface 100. The prefix length of the address
is the same as that of 2001::1/64, and the interface ID is generated based on the MAC address of the
AP.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 2001::1/64 eui-64
ipv6 address link-local
Syntax
ipv6 address
ipv6-address
link-local
undo ipv6 address ipv6-address
link-local
View
Interface view
Default Level
2: System level
Parameters
ipv6-address
: IPv6 link-local address. The first ten bits of an address must be 1111111010 (binary), that
is, the first group of hexadecimals in the address must be FE80 to FEBF.
Description
Use the
ipv6 address link-local
command to configure a link-local address for the interface.
Use the
undo ipv6 address link-local
command to remove the configured link-local address for the
interface.
Note that:
Manual assignment takes precedence over automatic generation. That is, if you first adopt automatic
generation and then manual assignment, the manually assigned link-local address will overwrite the
automatically generated one. If you first adopt manual assignment and then 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. For automatic generation of an IPv6 link-local address, see
the
ipv6 address auto link-local
command.
Examples
# Configure a link-local address for VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address fe80::1 link-local