OSPF认证
1.接口认证
[R1-ospf-1]dis this
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 10.1.12.1 0.0.0.0
[R2-ospf-1]dis this
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 10.1.12.2 0.0.0.0
[R1-GigabitEthernet0/0/0]ospf authentication-mode md5 1 plain aaaa
[R2-GigabitEthernet0/0/0]ospf authentication-mode md5 1 plain bbbb
2.区域认证
[R1-ospf-1-area-0.0.0.0]authentication-mode md5 1 plain aaaa
[R2-ospf-1-area-0.0.0.0]authentication-mode md5 1 plain bbbb