还剩2页未读,继续阅读
文本内容:
思科模拟器OPSF单区域操作实验
一、实验拓扑图:
10.
10.
10.1/
2420.
20.
20.1/
3030.30^
0.1/24Loopback
1.
1.
1.1vian3Loopback
2.222FastEtiiernet0/24PC-1
二、操作步骤:
1、实验步骤1•一注意用三层交换机做本实验RT-A配置
1、基本配置创建vlan2和Vkm3并起三层接口,配置地址;ZXR10config#hostnameRT-ART-Aconfig#vlan2RT-Aconfig-vlan2#exitRT-Aconfig#inlerfacevlan2RT-Aconfig-if#ipadd
10.
10.
10.
1255.
255.
255.0RT-Aconfig-if#cxitRT-Aconfig#interfaceFastEthernet0/1Rl^Aconfig-if#switchportmodeaccessRT-Aconfig-if#switchportaccessvlan2RT-Aconfig-if#exitRT-Aconfig#vlan3RT-Aconfig-vlan3#exitRT-Aconfig#inlerfacevlan3RT-Aconfig-if#ipadd
20.
20.
20.
1255.
255.
255.252RT-Aconfig-if#exitRT-Aconfig#interfaceFastEthernet0/24RT-Aconfig-if#switchportmodeaccessRT-Aconfig-if#switchportaccessvlan3〃修改路由器主机名为RT-A//创建VLAN2〃将VLAN2提升成三层接口〃为interfacevan2添加IP地址〃将VLAN2提升成三层接口〃创建VLAN3〃将VLAN3提升成三层接口〃为interfacevlan3添加IP地址〃将VLAN3提升成三层接口RT-Aconfig-if#cxit
2、OSPF配置:RT-Aconfig#routerospf1〃在RT-A上启动OSPF进程RT-Aconfig-routcr#nctwork
20.
20.
20.
00.
0.
0.3area0//宣告
20.
20.
20.0网段,使此接口能收发OSPF报文RT-Aconfig-router#redistributeconnected〃引入直连路由,也叫重分发RT-Aconfig-routcr#nctwork
10.
10.
10.
00.
0.
0.255area0RT-Aconfig-router#exitRT-B配置
1、基本配置创建vlan4和Vlan5并起三层接口,配置地址;ZXR10config#hostnameRT-B〃修改路由器主机名为RT-BRT-Bconfig#vlan3//创建VLAN3RT-Bconfig-vlan3#exitRT-Bconfig#interfacevlan3〃将VLAN3提升成三层接口RT-Bconfig-if#ipadd
20.
20.
20.
2255.
255.
255.252〃为interfacevlan3添加IP地址RT-Bconfig-if#exitRT-Bconfig#intcrfaccFastEthcrnct0/24RT-Bconfig-if#switchportmodeaccessRl^Bfconfig-if#switchportaccessvlan3RT-Bconfig-if#EXITRT-Bconfig#vlan4RT-Bconfig-vlan4#cxit〃创建VLANRT-Bconfig#interfacevlan4RT-Bconfig-if#ipadd
30.
30.
30.
1255.
255.
255.0RT-Bconfig-if#exitRT-Bconfig#interfaceFastEthemet0/1RrBconfig-if#switchportmodeaccessRl^Bconfig-if#switchportaccessvlan4RT-Bconfig-if#EXIT
2、OSPF配置:RT-Bconfig#routerospf1RT-Bconfig-routcr#network
20.
20.
20.
00.
0.
0.3area0RT-Bconfig-router#redistributeconnectedRT-Bconfig-router#exitMetricOSPFRouterwithID
10.
10.
10.1ProcessID1NeighborIDPriStateDeadTimeAddress
20.
20.
20.21FULL/BDR00:00:
3320.
20.
20.2OSPFRouterwithID
20.
20.
20.2ProcessID1Neighbor
10.
10.
10.1Inthearea
0.
0.
0.0viainterfacevlan
320.
20.
20.iNeighborisDRStateFULLpriority1Cost1Queuecount:Retransmit
0.DD0LSReq0Deadtime:00:00:32Options:0x42InFullStatefor00:00:15测试结果PC-1ping
10.
10.
10.1PC-1ping
20.
20.
20.1PC-1ping
20.
20.
20.2PC-1ping
30.
30.
30.1PC-1ping
30.
30.
30.2PC-
22、实验步骤
21、创建Loopback接口,添加地址,发布到网段,并用Loopback地址做Routenld路由器A RT-ART-Aconfig#inlerfaceloopback1RT-Aconfig-loopback1#ipaddress
1.
1.
1.
1255.
255.
255.255RT-Aconfig#rouerospf1RT-Aconfig-router#netwoik
1.
1.
1.
10.
0.
0.0area0RT-Aconfig-router#router-id
1.
1.
1.1RPA#clearipospfprocess1路由器B RT-BRT-Bconfig#intcrfaceloopback1RT-Bconfig-loopback1#ipaddress
2.
2.
2.
2255.
255.
255.255RT-Bconfig-loopbackl#iexitRT-Bconflg#routerospf1RT-Bconfig-router#network
2.
2.
2.
20.
0.
0.0area0RT-Bconfig-router#router-id
2.
2.
2.2RT-B#clearipospfprocess1观察结果RT-/\config#showiprouteRT-Aconfig#showipospfneighbor现在的RouterId和刚才没有直接指定时相比较,发生了什么变化;
3、实验步骤3整个实验完成后
1、能学到对方网段的路由;
2、PC1与PC2可以ping通;
4、实验结论分析:学生根据实验情况,自行总结思考分析
10.
10.
10.
0255.
255.
255.
010.
10.
10.1vlan2direct
0010.
10.
10.
1255.
255.
255.
25510.
10.
10.1vlan2address
0020.
20.
20.
0255.
255.
255.
25220.
20.
20.1vlan3direct
0020.
20.
20.
1255.
255.
255.
25520.
20.
20.1vlan3address
0030.
30.
30.
0255.
255.
255.
020.
20.
20.2RT-Aconfig#showipospfneighborprocess1vlan3ospf11020〃查看RT-A邻居关系RT-Bconfig#showiproute〃观察RT-B路由表IPv4RoutingTable:DestMaskGwInterfaceOwnerPriMetric
10.
10.
10.
0255.
255.
255.
020.
20.
20.1vlan3ospf
1102020.
20.
20.
0255.
255.
255.
25220.
20.
20.2vlan3direct
0020.
20.
20.
2255.
255.
255.
25520.
20.
20.2vlan3address
0030.
30.
30.
0255.
255.
255.
030.
30.
30.1vlan4direct
0030.
30.
30.
1255.
255.
255.
25530.
30.
30.1vlan4address00RT-Bconfig#showipospfneighborprocess1〃查看RT-B邻居关系。