实验10 OSPF单区域基本配置.doc
文本预览下载声明
实验十 OSPF单区域基本配置
试验目的:
OSPF单区域的基本配置技术。背景描述 你是某集成商的高级技术支持工程师,现在让你为某企业设计一个网络骨干结构,你选择了使用ospf路由协议来构建。
R1#ping 12.1.1.2
Sending 5, 100-byte ICMP Echoes to 12.1.1.2, timeout is 2 seconds:
press Ctrl+C to break
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
2、启动OSPF路由协议
R1(config)#router osp 100
R1(config-router)#network 1.1.1.0 0.0.0.255 area 0
R1(config-router)#network 12.1.1.0 0.0.0.255 area 0
R1(config-router)#
*Apr 10 14:45:16: %OSPFV2-5-NBRCHG: OSPF[100] Nbr[2.2.2.2-FastEthernet 0/0] Loading to Full, LoadingDone
R2(config)#router osp 100
R2(config-router)#network 12.1.1.0 0.0.0.255 area 0
R2(config-router)#network 2.2.2.0 0.0.0.255 area 0
*Apr 10 14:44:40: %OSPFV2-5-NBRCHG: OSPF[100] Nbr[1.1.1.1-FastEthernet 0/1] Loading to Full, LoadingDone
验证测试:R1#show ip ospf neighbor (以R1为例)OSPF process 100, 1 Neighbors, 1 is Full:
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 1 Full/BDR 00:00:35 12.1.1.2 FastEthernet 0/0
R1#ping 2.2.2.2
Sending 5, 100-byte ICMP Echoes to 2.2.2.2, timeout is 2 seconds:
press Ctrl+C to break
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/10 ms
3、试验完成
【注意事项】
ospf进程建议相同的进程号,利于网络规划管理;
声明网段后,掩码用反掩码。
广东科学技术职业学院 锐捷网络安全实验室
2
启动ospf进程声明网段属于区域0
R1与邻居的状态
显示全部