思科OSPF基础实验
https://upload-images.jianshu.io/upload_images/24325874-10742403dd781b4b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240AR1:e0/0 12.1.1.1 24 lo 0 1.1.1.1 24AR2: e 0/1 23.1.1.1.24 lo 0 2.2.2.2 24 e 0/0 12.1.1.2 24AR3:e 0/0 23.1.1.2 24 lo 0 3.3.3.3 24本次实验使用环回口模拟PC。每台路由器配置对应的地址。命令如下图自己配置一下。
https://upload-images.jianshu.io/upload_images/24325874-4314499d232cd544.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
全局配置启动OSPF, network精确宣告进接口,添加区域Cisco Network路由的方法有2种: network做OSPF进程内全局宣告 也支持全0反码位255做全接口宣告直接进入接口宣告,接口优先级高于全局network配置完毕地址,测试ping直连,开始宣告接口。
https://upload-images.jianshu.io/upload_images/24325874-371d7b583133cff4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
本次演示两种宣告方式。R2、R3使用OSPF进程内全局宣告。 R1使用接口下宣告。
https://upload-images.jianshu.io/upload_images/24325874-5c06074770a56856.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
R1(config)#router ospf 110启用OSPF 进程号110 进程号本地有效R1(config-router)#router-id 1.1.1.1 RID 1.1.1.1用于OSPF区域内标识符R1(config)#int lo0进入接口R1(config-if)#ip ospf 110 area 0.0.0.0将接口宣告进区域0
https://upload-images.jianshu.io/upload_images/24325874-96a29437d53f84d9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
R2(config)#router ospf 110启用OSPF 进程号110 进程号本地有效R2(config-router)#router-id 2.2.2.2 RID 2.2.2.2用于OSPF区域内标识符R2(config-router)#network 2.2.2.2 0.0.0.0 area 0宣告2.2.2.2 进入区域0R2(config-router)#network 12.1.1.2 0.0.0.0 area 0R2(config-router)#network 23.1.1.1 0.0.0.0 area 0
https://upload-images.jianshu.io/upload_images/24325874-afb4be031136410f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
测试R3 Ping R1的环回口。可以通 实验结束。
https://upload-images.jianshu.io/upload_images/24325874-bf46cdf9667ecf31.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
show ip ospf neighbor查看OSPF邻居
https://upload-images.jianshu.io/upload_images/24325874-1177643d24551bf3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
上图信息:邻居:2.2.2.2,优先级是1,是这个网络的DR,和R3之间的邻接关系是full,Dead时间从40开始倒计时,直连的邻居接口IP地址,本地连接邻居的接口。show ip ospf interface brief查看OSPF进程接口
https://upload-images.jianshu.io/upload_images/24325874-db1c76a6c220da03.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
上图信息:包含了接口、进程、区域、接口IP/掩码、度量值、网络类型show ip route查看路由表
https://upload-images.jianshu.io/upload_images/24325874-79acb03aa9abdd34.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240
前缀标记为O的是OSPF路由。区域间路由前缀标记为OIA;外部路由前缀标记为OE1 OE2;
页:
[1]