The CGA is an IPv6 address generated using a public key and the hash algorithm. Two communication parties can authenticate the CGA of each other to defend against spoofing attacks. The Rivest-Shamir-Adleman Algorithm (RSA) can be used to protect packet integrity.
system-view
After the command is executed, you are prompted to enter the length of host key. To enhance security, the length of host key is recommended to be longer than 1024 bits.
interface interface-type interface-number
ipv6 security rsakey-pair key-label
ipv6 security modifier sec-level sec-value [ modifier-value ]
The modifier value can be manually configured only when the security level of the CGA address is 0.
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } cga
Or
ipv6 address ipv6-address link-local cga
Run the ipv6 nd security strict command to enable the strict security mode on the interface.
If a local device is enabled with the strict security mode whereas the remote device is not, the local device considers the messages sent by the remote device invalid and discards them.