路由器配置——基于区域的OSPF简单认证
发布日期:2021-08-13 04:54:56 浏览次数:6 分类:技术文章

本文共 2075 字,大约阅读时间需要 6 分钟。

一、实验目的:掌握区域的OSPF简单认证

二、拓扑图:

 

三、具体步骤配置:

(1)R1路由器配置

Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1

R1(config)#interface s0/0/0

R1(config-if)#ip address 192.168.1.1 255.255.255.0

R1(config-if)#clock rate 64000

R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R1(config-if)#exit

R1(config)#interface l0

R1(config-if)#ip address 1.1.1.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#router ospf 1

R1(config-router)#router-id 1.1.1.1

R1(config-router)#network 192.168.1.0 0.0.0.255 area 0

R1(config-router)#network 1.1.1.0 0.0.0.255 area 0

R1(config-router)#area 0 authentication

R1(config-router)#interface s0/0/0

R1(config-if)#ip ospf authentication-key 123

 

R1(config-if)#end

(2)R2路由器配置

Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2

R2(config)#interface s0/0/0

R2(config-if)#ip address 192.168.1.2 255.255.255.0

R2(config-if)#clock rate 64000

This command applies only to DCE interfaces

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#interface l0

R2(config-if)#ip address 2.2.2.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#router ospf 1

R2(config-router)#router-id 2.2.2.2

R2(config-router)#network 192.168.1.0 0.0.0.255 area 0

R2(config-router)#network 2.2.2.0 0.0.0.255 area 0

R2(config-router)#area 0 authentication

R2(config-router)#interface s0/0/0

R2(config-if)#ip ospf authentication-key 123

 

R2(config-if)#end

四、验证测试:

1、检查端口是否启用了简单口令认证

图中红色标记处信息表明端口启用了简单口令认证

(2)检查区域是否采用了简单口令认证

图中红色标记处表明区域0采用了简单口令认证

(3)如果R1区域0没有启动认证,而R2区域0启动简单口令认证,则R2上出现下面

的信息

*Feb 10 11:03:03.071: OSPF: Rcv pkt from 192.168.12.1, Serial0/0/0 : Mismatch

Authentication type. Input packet specified type 0, we use type 1

(4)如果R1 和R2 的区域0 都启动简单口令认证,但是R2 的接口下没有配置密码或密

码错误,则R2 上出现下面的信息:
*Feb 10 10:55:53.071: OSPF: Rcv pkt from 192.168.12.1, Serial0/0/0 : Mismatch
Authentication Key - Clear Text

转载于:https://www.cnblogs.com/evolve/p/9233213.html

转载地址:https://blog.csdn.net/weixin_30677073/article/details/95889037 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:团队计划(6.1)
下一篇:Android文字跑马灯控件(文本自动滚动控件)

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2024年04月23日 16时11分23秒