1.链路明文认证
R1(config)#int f1
R1(config-if)#ip ospf authen(开启链路明文认证)
R1(config-if)#ip ospf authentication-key 1 xx(设置密钥xx)
R2(config)#int f2
R2(config-if)#ip ospf authen(开启链路明文认证)
R2(config-if)#ip ospf authentication-key 1 xx(设置密钥xx)
--------------------------------------------------------------------------------------------------------
2.链路MD5明文认证
R1(config)#int f1
R1(config-if)#ip os authentication message-digest(开启md5认证)
R1(config-if)#ip os message-digest-key 1 md5 xx(设置秘钥xx)
R2(config)#int f1
R2(config-if)#ip os authentication message-digest(开启md5认证)
R2(config-if)#ip os message-digest-key 1 md5 xx(设置秘钥xx)
----------------------------------------------------------------------------------------------------------------
3.区域明文认证
R1(config)#int f1
R1(config-if)#ip os authentication-key 1 xx(设置密码)
R1(config)#router ospf 110
R1(config-router)#area 0 authen(开启明文认证)
R2(config)#int f2
R2(config-if)#ip os authentication-key 1 xx(设置密码)
R2(config)#int f1
R2(config-if)#ip os authentication-key 1 xx(设置密码)
R2(config)#router ospf 110
R2(config-router)#area 0 authen(开启明文认证)
R3(config)#int f2
R3(config-if)#ip os authentication-key 1 xx设置密码)
R3(config)#router ospf 110
R3(config-router)#area 0 authen(开启明文认证)
------------------------------------------------------------------------------------------------------------------
4.区域MD5认证
R1(config)#int f1
R1(config-if)#ip os message-diges-key 1 md5 xx(设置密码)
R1(config)#router ospf 110
R1(config-router)#area 0 authen messge-digest(开启MD5认证)
R2(config)#int f2
R2(config-if)#ip os message-diges-key 1 md5 xx(设置密码)
R2(config)#int f1
R2(config-if)#ip os message-diges-key 1 md5 xx(设置密码)
R2(config)#router ospf 110
R2(config-router)#area 0 authen messge-digest(开启MD5认证)
R3(config)#int f2
R1(config-if)#ip os message-diges-key 1 md5 xx(设置密码)
R3(config)#router ospf 110
R3(config-router)#area 0 authen messge-digest(开启MD5认证)
本文详细介绍了OSPF路由协议中的四种认证方式:链路明文认证、链路MD5认证、区域明文认证及区域MD5认证的具体配置步骤。通过在R1、R2和R3路由器上的操作演示,帮助读者掌握不同场景下如何正确配置OSPF认证。
5643

被折叠的 条评论
为什么被折叠?



