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 ipv6
Configuring IPSec Authentication for an OSPFv3 Area
To 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 Configuration Task List for OSPFv2 (OSPF for IPv4)).
The security policy index (SPI) value must be unique to one IPSec security policy (authentication or
encryption) on the router. Configure the 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 area authentication 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 an interface 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 mode
area-id authentication ipsec spi number {MD5 | SHA1} [key-encryption-type]
key
area area-id: specifies the area for which OSPFv3 traffic is to be authenticated. For area-id,
enter a number or an IPv6 prefix.
spi number: is the SPI value. The range is from 256 to 4294967295.
MD5 | SHA1: specifies the authentication type: message digest 5 (MD5) or Secure Hash Algorithm
1 (SHA-1).
key-encryption-type: (optional) specifies if the key is encrypted. The valid values are 0 (key is
not encrypted) or 7 (key is encrypted).
key: specifies the text string used in authentication. All neighboring OSPFv3 routers must share
key to exchange information. For MD5 authentication, the key must be 32 hex digits (non-
encrypted) or 64 hex digits (encrypted). For SHA-1 authentication, the key must be 40 hex digits
(non-encrypted) or 80 hex digits (encrypted).
Remove an IPSec authentication policy from an OSPFv3 area.
no area area-id authentication ipsec spi number
Display the configuration of IPSec authentication policies on the router.
show crypto ipsec policy
652 Open Shortest Path First (OSPFv2 and OSPFv3)