Here is our diagram for this lab
For this lab we will configure authentication for Area 0
First up some quick housecleaning
J1:
[edit]
jfry@J1# delete protocols ospf area 0 interface fe-0/0/7 authentication
[edit]
jfry@J1# commit and-quit
commit complete
Exiting configuration mode
jfry@J1>
and R4
R4(config)#int e0
R4(config-if)#no ip ospf authentication
R4(config-if)#no ip ospf message-digest-key 1
R4(config-if)#^Z
R4 up first!
Configure it for the area
R4(config)#router ospf 1
R4(config-router)#area 0 authentication message-digest
And then add our key under the interface:
R4(config-router)#int e0
R4(config-if)#ip ospf message-digest-key 1 md5 JunosIOS
R4(config-if)#
And there goes the neighborhood!
*Mar 1 10:28:16.905: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on Ethernet0 from FULL to DOWN, Neighbor Down: Dead timer expired
R4(config-if)#
Time for J1!
[edit]
jfry@J1# set protocols ospf area 0.0.0.0 interface fe-0/0/7.0 authentication md5 1 key JunosIOS
[edit]
jfry@J1# set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 authentication md5 1 key JunosIOS
[edit]
jfry@J1# set protocols ospf area 0.0.0.0 interface fe-0/0/2.0 authentication md5 1 key JunosIOS
[edit]
jfry@j1# commit and-quit
Hey, that command looks familiar! That is because it is the same command we ran before J
Now for J2:
[edit]
jfry@J2# set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 authentication md5 1 key JunosIOS
[edit]
jfry@J2# set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 authentication md5 1 key JunosIOS
[edit]
jfry@J2# commit and-quit
and J3:
[edit]
jfry@J3# set protocols ospf area 0.0.0.0 interface fe-0/0/1.0 authentication md5 1 key JunosIOS
[edit]
jfry@J3# set protocols ospf area 0.0.0.0 interface fe-0/0/2.0 authentication md5 1 key JunosIOS
[edit]
jfry@J3# commit and-quit
And like that, we have OSPF authentication. Not so much area on this one as Junos