闫辉 发表于 2020-12-7 16:56:28

华为OSPF基础实验

https://upload-images.jianshu.io/upload_images/24325874-44d67f2a08252ed9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


地址规划:AR1: G0/0/0    12.1.1.1 24       lo 0       1.1.1.1 24AR2:G0/0/1   23.1.1.1.24      lo 0       2.2.2.2 24   G0/0/0 12.1.1.2 24AR3:G0/0/0   23.1.1.2 24      lo 0       3.3.3.3 24本次实验使用环回口模拟PC。每台路由器配置对应的地址。命令如下图自己配置一下。
https://upload-images.jianshu.io/upload_images/24325874-f92deda645099464.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


检查直连连通性
https://upload-images.jianshu.io/upload_images/24325874-080daea250581104.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


没有问题开始配置OSPF本次演示两种宣告方式。R2、R3使用OSPF进程内全局宣告。 R1使用接口下宣告。
https://upload-images.jianshu.io/upload_images/24325874-0f7c168c97a30bf9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


ospf 10 router-id 2.2.2.2            OSPF进程10 RID 2.2.2.2area 0.0.0.0进入区域0(华为宣告要进入对应的区域宣告)network 2.2.2.2 0.0.0.0
https://upload-images.jianshu.io/upload_images/24325874-5e33e74375cfead3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


R2 R3配置完成,配置R1的接口宣告OSPFR1的配置如下:ospf 10 router-id 1.1.1.1                         创建OSPFRID指为1.1.1.1area 0.0.0.0                            创建区域0qint lo 0                                       进入接口 ospf enable 10 area 0.0.0.0宣告进ospf 10 的区域0int g 0/0/0 ospf enable 10 area 0.0.0.0disp ospf peer查看OSPF邻居状态   
https://upload-images.jianshu.io/upload_images/24325874-4a49783d5b877947.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


R1和R2已经建立邻居,在R2上面也已经看到R1 R3的邻居。现在ping测试一下。
https://upload-images.jianshu.io/upload_images/24325874-051ac588129b4149.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


实验完成。补充Display命令:display ospf peer brief查看邻居摘要信息Area 0.0.0.0内通过0/0/0接口 和RID2.2.2.2 建立邻居,状态位full
https://upload-images.jianshu.io/upload_images/24325874-545b7cd2d066121f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


disp ospf interface查看接口是否宣告    接口地址、接口网络类型、度量值、优先级、DR地址、DBR地址                                    
https://upload-images.jianshu.io/upload_images/24325874-e673f6a82df2e7ad.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240



guptmzh 发表于 2022-12-1 15:24:33

华为技术之OSPF协议学习指南
页: [1]
查看完整版本: 华为OSPF基础实验