Configuring an IPv6 link-local address

IPv6 link-local addresses can be configured in either of the following ways:

An interface can have only one link-local address. To avoid link-local address conflicts, use the automatic generation method.

Manual assignment takes precedence over automatic generation.

To configure automatic generation of an IPv6 link-local address for an interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Configure the interface to automatically generate an IPv6 link-local address.

ipv6 address auto link-local

Optional.

By default, no link-local address is configured on an interface.

After an IPv6 global unicast address is configured on the interface, a link-local address is generated automatically.

To configure an IPv6 link-local address manually:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Configure an IPv6 link-local address manually.

ipv6 address ipv6-address link-local

Optional.

By default, no link-local address is configured on an interface.

After an IPv6 global unicast address is configured on the interface, a link-local address is generated automatically.

After an IPv6 global unicast address is configured for an interface, a link-local address is generated automatically.

The undo ipv6 address auto link-local command can only remove the link-local addresses generated through the ipv6 address auto link-local command.