Configuring MD5 Authentication
1. Enable OSPF MD5 authentication for Area 0 on switches 1, 2, and 3.
2. Configure MD5 key ID for Area 0 on switches 1, 2, and 3.
3. Assign MD5 key ID to OSPF interfaces on switches 1, 2, and 3.
4. Enable OSPF MD5 authentication for Area 2 on switch 4.
5. Configure MD5 key for the virtual link between Area 2 and Area 0 on switch 2 and
6. Assign MD5 key ID to OSPF virtual link on switches 2 and 4.
480
CN4093 Application Guide for N/OS 8.4
Use the following commands to configure MD5 authentication on the switches
shown in Figure
:
CN 4093(config-router-ospf)# area 0 authentication-type md5
CN 4093(config-router-ospf)# message-digest-key 1 md5-key test
CN 4093(config-router-ospf)# exit
CN 4093(config)# interface ip 1
CN 4093(config-ip-if)# ip ospf message-digest-key 1
CN 4093(config-ip-if)# exit
CN 4093(config)# interface ip 2
CN 4093(config-ip-if)# ip ospf message-digest-key 1
CN 4093(config-ip-if)# exit
CN 4093(config)# interface ip 3
CN 4093(config-ip-if)# ip ospf message-digest-key 1
CN 4093(config-ip-if)# exit
CN 4093(config)# router ospf
CN 4093(config-router-ospf)# area 2 authentication-type md5
switch 4.
CN 4093(config-router-ospf)# message-digest-key 2 md5-key test
CN 4093(config-router-ospf)# area-virtual-link 1 message-digest-key 2
CN 4093(config-router-ospf)# exit