Myluzh Blog

Strive to become a dream architect.

HCIP-OSPF认证

发布时间: 2023-2-24 文章作者: myluzh 分类名称: Huawei


0x01 为什么要做ospf认证



0x02 ospf认证方式:
(1)区域认证方式。
(2)接口认证方式
支持的认证模式分为null (不认证) 、simple (明文)、MD5以及HMAC-MD5。
当两种认证方式都存在时,优先使用接口认证方式。

0x03拓扑
微信图片_20230303094258.png

0x03 基于接口的认证
在R3 R4之间接口开启认证
[R3-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher abc123
[R4-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher abc123

0x04 基于区域的认证
在区域下配置认证,这样属于该区域的接口都会变成认证接口,如图在R7上配置区域2的认证,所以需要在邻居R3与R2也开启认证。
[R7-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher abc123
[R2-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher abc123
[R3-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher abc123

标签: ospf hcip 认证

发表评论