Question on OSPF mdf5 key, new system

Answered Question
May 28th, 2009
User Badges:

Imagine on a new site, I am configuring new routers and networks and I need to advertise networks via OSPF. Does it work if I copy the md5 key from another router (from another site within the company) and pasted it onto the new router like shown below? I read the documentation in the link below and it sounds like I should create new md5 key. How people are doing to maintain such md5 keys in practical situations?

http://www.cisco.com/en/US/docs/ios/iproute/command/reference/irp_osp2.html#wp1011693



Basically I thought abotu copying the key from the example below and I want to confirm whether that approach works and it is recommended?

int vlan 305

description to switch5

(...)

ip ospf message-digest-key 10 mdf 5 7 99348548584

(...)



Correct Answer by Edison Ortiz about 8 years 1 month ago

Just tried and it works:


On the source router:


interface FastEthernet0/1

description R1

ip address 192.168.13.3 255.255.255.0

ip ospf authentication message-digest

ip ospf message-digest-key 1 md5 7 123A2C243124


On the destination router:


R1(config)#int f0/1

R1(config-if)#ip ospf authentication message-digest

R1(config-if)# ip ospf message-digest-key 1 md5 7 123A2C243124

R1(config-if)#

00:03:50: %OSPF-5-ADJCHG: Process 1, Nbr 33.3.3.3 on FastEthernet0/1 from LOADING to FULL, Loading Done


R1(config-if)#do show ip os int | be Message

Message digest authentication enabled

Youngest key id is 1


R3#sh ip os int | be Message

Message digest authentication enabled

Youngest key id is 1



HTH,


__


Edison.


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Edison Ortiz Thu, 05/28/2009 - 11:28
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

Just tried and it works:


On the source router:


interface FastEthernet0/1

description R1

ip address 192.168.13.3 255.255.255.0

ip ospf authentication message-digest

ip ospf message-digest-key 1 md5 7 123A2C243124


On the destination router:


R1(config)#int f0/1

R1(config-if)#ip ospf authentication message-digest

R1(config-if)# ip ospf message-digest-key 1 md5 7 123A2C243124

R1(config-if)#

00:03:50: %OSPF-5-ADJCHG: Process 1, Nbr 33.3.3.3 on FastEthernet0/1 from LOADING to FULL, Loading Done


R1(config-if)#do show ip os int | be Message

Message digest authentication enabled

Youngest key id is 1


R3#sh ip os int | be Message

Message digest authentication enabled

Youngest key id is 1



HTH,


__


Edison.


Actions

This Discussion