< Home

ipv6 address link-local (Interface view)

Function

The ipv6 address link-local command allows you to manually configure a link-local address for an interface manually.

The undo ipv6 address link-local command deletes the manually configured link-local address on the interface.

Format

ipv6 address ipv6-address link-local [ cga ]

undo ipv6 address ipv6-address link-local [ cga ]

Parameters

Parameter Description Value

ipv6-address

Specifies the IPv6 address. When the link-local address is configured, the IPv6 address prefix must match FE80::/10.

-

cga

Indicates a CGA IPv6 link-local address.

-

Views

Ethernet interface view, Eth-Trunk interface view, VLANIF interface view, Tunnel interface view, BDIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Link-local addresses are used for communications between link-local nodes in the ND process or the stateless address autoconfiguration process. The packet with a link-local address being the source or destination address will not be forwarded to other links. That is, link-local addresses are valid only on local links.

To enable IPv6 SEND to protect ND messages that carry CGA and RSA options, you need to configure a CGA IPv6 address on the interface. Running the ipv6 address link-local command with the keyword cga generates a CGA IPv6 link-local address.

Configuration Impact

If an automatically allocated link-local address has already been configured on an interface, running the ipv6 address link-local command will overwrite the existing link-local address.

Precautions

Try to avoid changing the link-local address.

You can configure multiple IPv6 global unicast addresses but only one link-local address for an interface.

The IPv6 addresses that cannot be assigned to an interface include:

  • Loopback address (::1/128)

  • Unspecified address (::/128)

  • Multicast address

  • Anycast address

The undo ipv6 address link-local command deletes only the manually configured link-local address. To delete the automatically generated link-local address, run the undo ipv6 address auto link-local command.

Example

# Configure the link-local address for GigabitEthernet 0/0/1 manually.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] ipv6 enable
[sysname-GigabitEthernet0/0/1] ipv6 address fe80::1 link-local

# Configure a CGA IPv6 link-local address on GE 1/0/0.

<sysname> system-view
[sysname] rsa key-pair label huawei modulus 2048
NOTES: If the key modulus is greater than 512, It may take few minutes. Please
wait Key Successfully Created
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ipv6 enable
[sysname-GigabitEthernet0/0/0] ipv6 security rsakey-pair huawei
[sysname-GigabitEthernet0/0/0] ipv6 security modifier sec-level 0
[sysname-GigabitEthernet0/0/0] ipv6 address fe80::1 link-local cga
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >