3.4 OSPF配置详解

7.OSPF报文认证

图片[1]-3.4 OSPF配置详解-大赛人网
图3-50 OSPF 报文认证网络拓扑

1)基本配置

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255
[R1-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher dsrw.com

[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255
[R2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255
[R2-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher dsrw.com

[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255
[R3-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher dsrw.com
[R3-ospf-1-area-0.0.0.1]network 34.1.1.0 0.255.255.255
[R3]interface GigabitEthernet 0/0/2
[R3-GigabitEthernet0/0/2]ospf authentication-mode simple cipher dsrw.com

[R4]ospf 1 router-id  4.4.4.4
[R4-ospf-1-area-0.0.0.1]network 34.1.1.0 0.255.255.255
[R4]interface GigabitEthernet 0/0/2
[R4-GigabitEthernet0/0/2]ospf authentication-mode simple cipher dsrw.com

2)查看配置

<R1>display current-configuration 
 authentication-mode md5 1 cipher %$%$iw|=!K<FDB^3@@(fSGm-guo!%$%$
[R4]display  current-configuration 
interface GigabitEthernet0/0/2            
 ip address 34.1.1.4 255.0.0.0            
 ospf authentication-mode simple cipher %$%$;4tf&.K1|2B`k)JZ`;6=g{/*%$%$ 

1 2 3 4 5 6 7 8

© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容