The ipv6 address cga command configures a CGA global unicast address.
The undo ipv6 address cga command deletes a CGA global unicast address.
By default, no CGA global unicast address.
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies the IPv6 address to be configured for the interface. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
prefix-length |
Specifies the prefix length of an IPv6 address. |
The value is an integer ranging from 1 to 128. |
ipv6-address/prefix-length |
Specifies the IPv6 address and prefix length of an interface. |
The value is the IPv6 address/IPv6 address prefix length. |
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
To enable IPv6 SEND to protect ND messages, you need to configure a CGA IPv6 address on an interface. Running the ipv6 address cga command configures a CGA IPv6 global unicast address.
Prerequisites
Before running the ipv6 address cga command, 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 enable command in the interface view to enable IPv6 on the interface. 3.Run the ipv6 security rsakey-pair command in the interface view to bind the created RSA key pair to the interface. 4.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 a CGA IPv6 address is configured for an interface, an ND message sent by the interface will carry CGA and RSA options. After receiving the ND message, the remote interface checks the validity of the ND message sender and the integrity of the ND message based on the CGA and RSA options. If the strict security mode is configured on a local interface, the interface processes secure packets and discards insecure packets sent from a remote interface.
Follow-up Procedure
Run the ipv6 nd security strict command to enable the strict security mode on the interface.
Precautions
<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 2001:db8::1/64 cga