OSPF - HMAC-SHA Extended Authentication

OSPF used to only support plain text and MD5 authentication but since IOS 15.4(1)T, OSPF also supports HMAC-SHA (Hash Message Authentication Code Secure Hash Algorithm). In addition, OSPF now uses key chains like RIP and EIGRP.

However, the configuration process for IOS-XR has changed:

First, you need to define the key-chain:

key chain R1
 key 1
  key-string R1_Password
  cryptographic-algorithm hmac-sha-256
 commit

Then, you need to apply this key-chain to the OSPF area:

router ospf

This authentication command can be applied at the interface or the router ospf configuration mode.

Links:

https://forum.networklessons.com/t/ospf-hmac-sha-extended-authentication/1940/12?u=lagapides

https://networklessons.com/cisco/ccie-routing-switching-written/ospf-hmac-sha-extended-authentication

https://www.cisco.com/c/en/us/td/docs/ios_xr_sw/iosxr_r3-7/routing/command/reference/rr37ospf.html#wp998765

https://networklessons.com/cisco/ccie-routing-switching-written/how-to-configure-ospf-plain-text-authentication

https://networklessons.com/cisco/ccie-routing-switching-written/how-to-configure-ospf-md5-authentication