《OSPF路由选择协议配置.docx》由会员分享,可在线阅读,更多相关《OSPF路由选择协议配置.docx(14页珍藏版)》请在第一文库网上搜索。
1、四、实验内容及实验环节拓扑图环节一实验环境准备如果本任务中您使用的是空配备设备,需要从环节1开始配备,然后跳过步骤2o如果使用的设备涉及上一种实验的配备,请直接从环节2开始配备。基本配备以及IP编址。syStem-viewEntersystemview,returuserviewwithCtrI+Z.HuweisysnameR1R1interfaceGigabitEthemet0/0/1R1-GigObitEthernet0/0/1ipaddress10.0.12.124R1-GigabitEtheret0/0/1quitRIinterfaceGigabitEthernet0/0/0数学与计算
2、机学院实验报告年学期-3学期课程名称计算机网络专业班级1班学号姓名任课教师一、实验项目信息项目名称:OSPF路由选择合同配备实验时间:6月6日实验学时:3学时实验地点:工科楼501实验楼二、实验目的及规定1 .掌握OSPF中RoUterID的配备措施2 ,掌握OSPF的配备措施3 .掌握通过dispIy命令查者OSPF运营状态的措施4 .掌握使用OSPF发布缺省路由的措施5 .掌握修改OSPFheII。和dead时间的配备措施6 .理解多路访问网络中的DR或BDR选举7 .掌握OSPF路由优先级B修改措施三、实验环境WindOWSseNSPR3-1oopBackOquitR3interface
3、1oopBack2R3-1oopBack2ipaddress172.16.0.124环节二清除设备上原有的配备打开必要的接口,关闭无关接口。R1interfaceGigabitEtheret0/0/1R1-GigabitEtherne10/0/1undoshutdownR1-GigabitEthernetOO1quitR2interfceGigabitEthernetO/0/0R2-GigabitEtheretO0shutdownR3interfaceGigabitEthemet0/0/OR3-GigabitEthernet000undoshutdownR3-GigabitEthernet0/
4、0/0quitR3interfaceGigabitEthernet0/0/1R3-GigabitEthernetO/O/1shutdownR3-GigabitEthernetOO1quitR3undointerface1oopBack3R3undointerface1oopBack4R3undointerface1oopBack5删除设备上的RIP认证配备和RIP进程1oR1-GigabitEthernetOOOipaddress1O.O.13.124R1-Gigab计EthernetOOOquitR1iterface1oopBackOR1-1oopBackipaddress10.0.1.12
5、4system-viewEntersystemview,returnuserviewwithCtr1+Z.HuaweisysameR2R2interfaceGigabitEthernetO/O/1R2-GigabitEthernetOO1ipaddress10.0.12.224R2-GigabitEthernet0/0/1quitR2interface1oopBackOR2-1oopBackOipaddress10.0.2.224system-viewEntersystemview,returnuserviewwithCtr1+Z.HuaweisysnameR3R3interfaceGigab
6、itEthernet0/0R3-GigabitEthernet/0/0ipaddress10.0.13.324R3-GigabitEthernet000quitR3interface1oopBack0R3-1oopBack0ipaddress10.0.3.324将R1的ROUterID配备为10.0.1.1(逻辑接口1oOPbcICko的地址),启动发布到C)SPF区域0。R10spf1router-id10.0.1.1R1-ospf-1are注意:同一种路由器可以启动多种OSPF进程,默认进程号为1,由于进程号只具有本地意义,因此同一路由域的不同路由器可以使用相似或不同的OSPF进程号。此外
7、network命令背面需使用反掩码。和10.0.2.0/24发布到OSPF区域OoR2-ospf-1area0R2-ospf-1-area-0.0.0.0network10.0.2.00.0.0.255outputomitted-Nov3009:41:39+00:00R2%01OSPF/4/NBR_CHANGE_E(1)5:NeighborchangesRIinterfceGigabitEthemet0/0/0R1-GigabitEthernet000undoripauthentication-modeR1-GigabitEthernetOOOquitRIundorip1Warning:The
8、RIPprocesswiI1bede1eted.Continue?YNyR2interfaceGigabitEthernet0/0/0R2-GigabitEthernet0/0/0undoripauthetication-modeR2-GigabitEthernet0/0quitR2interfaceGigabitEthernet0/0/1R2-GigabitEthernetOO1udoripauthetiction-modeR2-GigabitEthernet0/1quitR2undorip1Warning:TheR1PprocesswiIIbedeIeted.Continue?YNyR3i
9、nterfaceGigabitEtheret0/0/1R3-GigbitEthernetOO1undoripauthetication-modeR3-GigabitEthernetOO1quitR3undorip1Warning:TheRIPprocesswi11bede1eted.Continue?Y/Ny环节三配备OSPF环节四验证OSPF配备待C)SPF收敛完毕后,查看RI、R2和R3上的路由表。disp1ayiproutig-1abIedisp1yiprouting-tabIedisp1ayiprouting-tab1eRouteFIags:R-re1ay,D-downIoadtofi
10、bRoutingTab1es:Pub1icDestinations:16Routes:16Destination/MaskProtoPreCostF1agsNextHopInterfaceevent:neighborstatuschnged.(Process1d=1,NeighborAddress=10.0.12.1,NeighborEvent=1oadingDone,NeSghborPreviousState=1oading,NeighborCurrentState=FuII)当回显信息中涉及aNeighborCurrentS2te=Fu11”信息时,表白邻接关系已经建立。和10.0.13.
11、0/24发布到OSPF区域0。R3-ospf-1area0outputomittedNov3016:05:34+00:00R3%01OSPF/4/NBR_CHANGE_E(I)5:Neighborchangesevent:neighborstatuschanged.(ProcessId=1,NeighborAddress=10.0.13.1,NeighborEvent=1oadingDonezNeighborPreviOusState=1oading1NeighborCurretState=Fu1I)在R1上执行disp1oyospfinterfaceGigQbitEtherne10/0/0,
12、查看OSPF默认的he11o和ded时间。disp1ayospfinterfaceGigabitEthernet0/0/0InterfacesInterface:10.0.13.1(GigabitEthernet0/0/0)Cost:1State:DRType:BroadcastMTU:1500Priority:1Timers:HeIIo10,Dead40,Po11120,Retransmit5,TransmitDe1ay1在R1KJGEO/0/0接口执行OSPftimer命令,将C)SPFhe11odead时间分别修改为15秒和60秒。R1interfCeGigQb计Ethernet0/0/
13、0RI-GigabitEthemet0/0/0ospftimerhe11o15R1-GigabitEthernet000ospftimerdead60disp1ayospfinterfaceGigabitEthernet0/0/0在R1上查看CISPF邻居状态。检测R2和R1(10.0.1.1)以及R2和R3(1O.0.3.3)间的连通性。ping10.0.1.1PING10.0.1.1:56databytes,pressCTR1_CtobreakRep1yfrom10.0.1.1:bytes=56Sequence=1tt1=255time=37ms执行disp1ayospfpeer命令,查看
14、C)SPF邻居状态。disp1ayospfpeerdisp1ayospfpeer命令显示所有C)SPF邻居的具体信息。本任务中,10.0.13.0网段上R1是DR。由于DR选举是非抢占模式,如果C)SPF进程不重启,R3将不会取代RI的DR角色。执行disp1ayospfPeerbrief命令,可以查看简要的C)SPF邻居信息。disp1ayospfpeerbrief环节五修改OSPFhe11o和dead时间参数环节六OSPF缺餐路由发布及验证在R3上配备缺省路由并发布到C)SPF域内。R3ipr0ute-StatiC0.0.0.00.0.0.01oOpBack2R3ospf1R3-ospf-1defau1t-route-advertise查看R1和R2的路由表。可以看到,R1和R2均已经学习到了R3发布的缺省路由。disp1ayiprouting-tab1edisp1ayiprouting-tbIe使用Ping命令,检测R2与172.16.0.1/24网段之间的连通性。PING172.