The ipv6 address link-local cga command configures a CGA IPv6 link-local address for an interface.
The undo ipv6 address link-local cga command deletes the CGA IPv6 link-local address configured for an interface.
By default, no CGA IPv6 link-local address is configured for an interface.
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, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Management interface view
Usage Scenario
Link-local addresses are used for the communications between link-local nodes in either the neighbor discovery or the stateless auto-configuration process. The packets with link-local addresses being the source or destination addresses are not forwarded to other links, that is, link-local addresses are valid only on local links.
You can also run the ipv6 address link-local command to manually configure a link-local address for an interface. 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.Prerequisites
Before running the ipv6 address link-local command to configure a link-local address for an interface, you need to run the ipv6 enable command in the interface view to enable the IPv6 function on the interface.
Before configuring a CGA link-local address, you must complete the following configurations: 1.Run the rsa key-pair label command in the system view to create an RSA key pair. 2.Run the ipv6 security rsakey-pair command in the interface view to bind the created RSA key pair to the interface. 3.Run the ipv6 security modifier command in the interface view to configure a modifier value and a security level for the CGA address.Configuration Impact
If an automatically allocated link-local address has already been configured on an interface, the ipv6 address link-local configuration overrides the existing link-local address.
Precautions
Try to avoid changing link-local addresses.
You can configure multiple IPv6 addresses but only one link-local address for an interface. The following IPv6 addresses cannot be configured for an interface:<HUAWEI> system-view [~HUAWEI] rsa key-pair label huawei modulus 2048 [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] ipv6 enable [*HUAWEI-GigabitEthernet0/1/1] ipv6 security rsakey-pair huawei [*HUAWEI-GigabitEthernet0/1/1] ipv6 security modifier sec-level 1 [*HUAWEI-GigabitEthernet0/1/1] ipv6 address fe80::1 link-local cga