认证

来源:互联网 发布:php 星期几 编辑:程序博客网 时间:2024/05/03 08:39

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认证)
原创粉丝点击