华三路由器OSPF认证

一、区域认证

1、基于区域的简单口令认证

R1:

<H3C>sys

System View: return to User View with Ctrl+Z.

H3C\]sysn R1 \[R1\]int l1 \[R1-LoopBack1\]ip add 1.1.1.1 32 \[R1-LoopBack1\]int s1/0 \[R1-Serial1/0\]ip add 202.11.1.1 24 \[R1-Serial1/0\]undo sh \[R1-Serial1/0\]qu \[R1\]ospf 1 \[R1-ospf-1\]area 0 \[R1-ospf-1-area-0.0.0.0\]net \[R1-ospf-1-area-0.0.0.0\]network 1.1.1.1 0.0.0.0 \[R1-ospf-1-area-0.0.0.0\]network 202.11.1.1 0.0.0.255 \[R1-ospf-1-area-0.0.0.0\]authentication-mode simple plain 1234 \[R1-ospf-1-area-0.0.0.0\]qu \[R1-ospf-1\]qu \[R1\]router id \[R1\]router id 1.1.1.1 //修改路由器ID \[R1\]qu \reset ospf 1 process Reset OSPF process? \[Y/N\]:y R2: \sys System View: return to User View with Ctrl+Z. \[H3C\]sysn R2 \[R2\]int l1 \[R2-LoopBack1\]ip add 2.2.2.2 32 \[R2-LoopBack1\]int s1/0 \[R2-Serial1/0\]ip add 202.11.1.2 24 \[R2-Serial1/0\]qu \[R2\]ospf 1 \[R2-ospf-1\]ar 0 \[R2-ospf-1-area-0.0.0.0\]network 2.2.2.2 0.0.0.0 \[R2-ospf-1-area-0.0.0.0\]network 202.11.1.2 0.0.0.255 \[R2-ospf-1-area-0.0.0.0\]authentication-mode simple plain 1234 \[R2-ospf-1-area-0.0.0.0\]qu \[R2-ospf-1\]qu \[R2\]router id 2.2.2.2 //修改路由器ID \[R2\]qu \reset ospf 1 process Reset OSPF process? \[Y/N\]:y 验证: ![](https://i-blog.csdnimg.cn/direct/22efb071f1b0499794721da7f087560e.png)![](https://i-blog.csdnimg.cn/direct/6c8bdce28d92438893a3e70d839c7e07.png) 2、基于区域的MD5认证 R1: \[R1\]ospf 1 \[R1-ospf-1\]area 0 \[R1-ospf-1-area-0.0.0.0\]net \[R1-ospf-1-area-0.0.0.0\]network 1.1.1.1 0.0.0.0 \[R1-ospf-1-area-0.0.0.0\]network 202.11.1.1 0.0.0.255 \[R1-ospf-1-area-0.0.0.0\]authentication-mode md5 0 plain 1234 \[R1-ospf-1-area-0.0.0.0\]qu R2: \[R2\]ospf 1 \[R2-ospf-1\]ar 0 \[R2-ospf-1-area-0.0.0.0\]network 2.2.2.2 0.0.0.0 \[R2-ospf-1-area-0.0.0.0\]network 202.11.1.2 0.0.0.255 \[R2-ospf-1-area-0.0.0.0\]authentication-mode md5 0 plain 1234 \[R2-ospf-1-area-0.0.0.0\]qu 二、接口认证 1、基于接口的简单口令认证 R1: \[R1\]int s1/0 \[R1-Serial1/0\]ospf authentication-mode simple plain 1234 \[R1-Serial1/0\]qu \[R2\]int s1/0 \[R2-Serial1/0\]ospf authentication-mode simple plain 1234 \[R2-Serial1/0\]qu 验证: ![](https://i-blog.csdnimg.cn/direct/3557cedcd2304e0abe22e88ecf336016.png)![](https://i-blog.csdnimg.cn/direct/71dd8f2ca3ec43ce925adb1d1c1d0343.png) 2、基于接口的MD5认证 R1: \[R1\]int s1/0 \[R1-Serial1/0\]ospf authentication-mode md5 1 plain 1234 \[R1-Serial1/0\]qu R2: \[R2\]int s1/0 \[R2-Serial1/0\]ospf authentication-mode md5 1 plain 1234 \[R2-Serial1/0\]qu

相关推荐
染夕陌木2 小时前
极简教程:GitLab 上配置 SSH Key(附常见问题解决)
运维·ssh·gitlab
志栋智能2 小时前
超自动化运维如何重塑IT组织的核心竞争力?
运维·服务器·网络·数据库·人工智能·自动化
小明同学012 小时前
计算机网络编程---发展历程、两种协议、封装与分用
网络·计算机网络
JS_SWKJ2 小时前
攻防升级下,网闸与光闸的创新突围——2026年网络安全隔离行业新趋势及产品实践
网络·安全·web安全
.select.2 小时前
TCP 7 (滑动窗口,流量控制)
服务器·网络·tcp/ip
@insist1232 小时前
网络工程师-交换机核心配置完全指南
运维·服务器·网络·网络工程师·软考·软件水平考试
@insist1232 小时前
网络工程师-路由器与动态路由协议配置全解
网络·智能路由器·网络工程师·软考·软件水平考试
齐潇宇2 小时前
LVS 基线检查与安全加固指南(附案例)
服务器·网络·php
ん贤2 小时前
手敲Linux命令
linux·运维·服务器