思科模拟器OSPFV2中安全认证配置(区域认证)

文章详细介绍了OSPFV2协议中如何配置区域和接口的认证,包括区域内的明文和密文认证,以及接口间的明文和MD5密文认证,以确保网络通信的安全性。

OSPFV2首要职责不是对数据进行转发,而是通过路由器之间的互相更新信息来构成新的路由表的

1.区域明文、密文认证

区域密文认证:
R1(config-router)#area 1 authentication message-digest 
R1(config-if)#ip osp message-digest-key 1 md5 123

区域明文认证:
R1(config-router)#area 1 authentication 
R1(config-router)#in g 0/0
R1(config-if)#ip osp authentication-key 123

在路由器R1和R2上配置基于区域的明文认证(以R1为例)
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 10.1.1.0 0.0.0.255 area 1
R1(config-router)#network 10.1.2.0 0.0.0.255 area 1
R1(config-router)#network 10.0.12.0 0.0.0.255 area 1
R1(config-router)#area 1 authentication	
R1(config-router)#interface gigabitEthernet 0/0
R1(config-if)#ip ospf authentication-key cisco   	

在路由器R3和R4上配置基于接口的MD5认证(以R3为例)
R3(config)#router ospf 1
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 10.0.23.0 0.0.0.255 area 0
R3(config-router)#network 10.0.34.0 0.0.0.255 area 2
R3(config-router)#interface gigabitEthernet 0/0
R3(config-if)#ip ospf authentication message-digest	
R3(config-if)#ip ospf message-digest-key 1 md5 cisco

2.介于接口之间的区域认证

1.接口之间的明文认证
R1(config)#in g 0/1
R1(config-if)#ip ospf authentication
R1(config-if)#ip ospf authentication-k
R1(config-if)#ip ospf authentication-key 123
R1(config-if)#e

2.接口之间的密文认证
R1(config)#in g 0/1
R1(config-if)#ip ospf authentication me
R1(config-if)#ip ospf authentication message-digest 
R1(config-if)#ip ospf me
R1(config-if)#ip ospf message-digest-key 1 m
R1(config-if)#ip ospf message-digest-key 1 md5 123
R1(config-if)#

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Super鸣_

谢谢ovo

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值