7.OSPF报文认证
![图片[1]-3.4 OSPF配置详解-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片8-11-1024x254.png)
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{/*%$%$
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容