# OSPF HMAC-SHA Extended Authentication

**URL:** https://forum.networklessons.com/t/ospf-hmac-sha-extended-authentication/1940
**Category:** Lessons Discussion
**Created:** [July 19, 2017, 10:06am UTC](https://forum.networklessons.com/t/ospf-hmac-sha-extended-authentication/1940 "2017-07-19T10:06:32Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [September 26, 2023, 5:47am UTC](https://forum.networklessons.com/t/ospf-hmac-sha-extended-authentication/1940/12 "2023-09-26T05:47:09Z")

</div>

Hello Rajasekhar

Looking at some of the Cisco documentation on the subject, I see that the configuration process has changed slightly for IOS XR. The authentication is applied like so:

First, you need to define the key-chain:

```auto
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:

```auto
router ospf 1
 area 0
  authentication keychain R1
  interface GigabitEthernet0/0/0/2
 commit

```

This `authentication` command can be applied at the interface or the `router ospf` configuration mode. More information about the command can be found here:

> **[OSPF Commands on Cisco IOS XR Software](https://www.cisco.com/c/en/us/td/docs/ios_xr_sw/iosxr_r3-7/routing/command/reference/rr37ospf.html#wp998765)**
>
> OSPF Commands on Cisco IOS XR Software

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/ospf-hmac-sha-extended-authentication/1940)._
