NOTE: When you configure encryption using the ipv6 ospf encryption ipsec command, you enable both IPsecencryption and authentication. However, when you enable authentication on an interface using the ipv6 ospfauthentication ipsec command, you do not enable encryption at the same time.The SPI value must be unique to one IPsec security policy (authentication or encryption) on the router. Configure the same authenticationpolicy (the same SPI and key) on each OSPFv3 interface in a link.• Enable IPsec encryption for OSPFv3 packets on an IPv6-based interface.INTERFACE modeipv6 ospf encryption {null | ipsec spi number esp encryption-algorithm [key-encryption-type]key authentication-algorithm [key-authentication-type] key}• null: causes an encryption policy configured for the area to not be inherited on the interface.• ipsec spi number: is the security policy index (SPI) value. The range is from 256 to 4294967295.• esp encryption-algorithm: specifies the encryption algorithm used with ESP. The valid values are 3DES, DES, AES-CBC,and NULL. For AES-CBC, only the AES-128 and AES-192 ciphers are supported.• key: specifies the text string used in the encryption. All neighboring OSPFv3 routers must share the same key to decryptinformation. Required lengths of a non-encrypted or encrypted key are: 3DES - 48 or 96 hex digits; DES - 16 or 32 hex digits; AES-CBC - 32 or 64 hex digits for AES-128 and 48 or 96 hex digits for AES-192.• key-encryption-type: (optional) specifies if the key is encrypted. The valid values are 0 (key is not encrypted) or 7 (key isencrypted).• authentication-algorithm: specifies the encryption authentication algorithm to use. The valid values are MD5 or SHA1.• key: specifies the text string used in authentication. All neighboring OSPFv3 routers must share key to exchange information. ForMD5 authentication, the key must be 32 hex digits (non-encrypted) or 64 hex digits (encrypted). For SHA-1 authentication, the keymust be 40 hex digits (non-encrypted) or 80 hex digits (encrypted).• key-authentication-type: (optional) specifies if the authentication key is encrypted. The valid values are 0 or 7.• Remove an IPsec encryption policy from an interface.no ipv6 ospf encryption ipsec spi number• Remove null encryption on an interface to allow the interface to inherit the encryption policy configured for the OSPFv3 area.no ipv6 ospf encryption null• Display the configuration of IPsec encryption policies on the router.show crypto ipsec policy• Display the security associations set up for OSPFv3 interfaces in encryption policies.show crypto ipsec sa ipv6Configuring IPSec Authentication for an OSPFv3 AreaTo configure, remove, or display IPSec authentication for an OSPFv3 area, use the following commands.Prerequisite: Before you enable IPsec authentication on an OSPFv3 area, first enable OSPFv3 globally on the router (refer to ConfigurationTask List for OSPFv3 (OSPF for IPv6)).The security policy index (SPI) value must be unique to one IPSec security policy (authentication or encryption) on the router. Configurethe same authentication policy (the same SPI and key) on each interface in an OPSFv3 link.If you have enabled IPSec encryption in an OSPFv3 area using the area encryption command, you cannot use the areaauthentication command in the area at the same time.The configuration of IPSec authentication on an interface-level takes precedence over an area-level configuration. If you remove aninterface configuration, an area authentication policy that has been configured is applied to the interface.• Enable IPSec authentication for OSPFv3 packets in an area.CONF-IPV6-ROUTER-OSPF modearea-id authentication ipsec spi number {MD5 | SHA1} [key-encryption-type] key652 Open Shortest Path First (OSPFv2 and OSPFv3)