A simple record is nothing special.
OSPF Authentication experiment solution:
1. R1 and R2 perform neighbor md5 authentication
2. Perform Regional md5 authentication in area 2
3. Create a virtual link based on area1 between R1 and R2 for md5 authentication.
R1 main configuration information:
!
Interface Loopback0
Ip address 1.1.1.1 255.255.255.255
Ip ospf 1 area 0
!
Interface FastEthernet0/0
Ip address 192.168.1.1 255.255.255.0
Ip ospf authentication message-digest // enable OSPF neighbor md5 authentication on the Interface
Ip ospf message-digest-key 1 md5 cisco // configure the OSPF neighbor authentication key on the Interface
Ip ospf 1 area 1
!
Router ospf 1
Router-id 1.1.1.1
Log-adjacency-changes
Area 1 virtual-link 2.2.2.2 authentication message-digest // enable md5 authentication on the virtual link
Area 1 virtual-link 2.2.2.2 message-digest-key 1 md5 vlink // create a virtual link and configure the OSPF virtual link Authentication key
!
R2 main configuration information:
!
Interface FastEthernet0/0
Ip address 192.168.1.2 255.255.255.0
Ip ospf authentication message-digest // enable OSPF neighbor md5 authentication on the Interface
Ip ospf message-digest-key 1 md5 cisco // configure the OSPF neighbor authentication key on the Interface
Ip ospf 1 area 1
!
Interface FastEthernet1/0
Ip address 192.168.2.1 255.255.255.0
Ip ospf message-digest-key 1 md5 area // configure the regional authentication key on the interface of the Region
Ip ospf 1 area 2
!
Router ospf 1
Router-id 2.2.2.2
Log-adjacency-changes
Area 1 virtual-link 1.1.1.1 authentication message-digest // enable md5 authentication on the virtual link
Area 1 virtual-link 1.1.1.1 message-digest-key 1 md5 vlink // create a virtual link and configure the OSPF virtual link Authentication key
Area 2 authentication message-digest // configure md5 authentication in the OSPF region on area2
!
R3 configuration information:
!
Interface FastEthernet0/0
Ip address 192.168.2.2 255.255.255.0
Ip ospf message-digest-key 1 md5 area // configure the regional authentication key on the interface of the Region
Ip ospf 1 area 2
!
Router ospf 1
Router-id 3.3.3.3
Log-adjacency-changes
Area 2 authentication message-digest // configure md5 authentication in the OSPF region on area2
!