第五章在华为路由器上配置静态路由和RIP协议(实训)在华为路由器上配置静态路由和RIP协议(实训)主讲:唐中剑2配置路由器RIP路由在华为路由器上配置静态路由和RIP协议(实训)实训内容配置路由器静态路由3实验名称在华为路由器上配置静态路由和RIP协议。在华为路由器上配置静态路由和RIP协议(实训)4实验目的1.掌握路由器静态路由的配置方法。2.掌握路由器动态路由RIP的配置方法。在华为路由器上配置静态路由和RIP协议(实训)5实验设备1.华为R2126路由器3台。2.计算机3台。3.网线3根。4.路由器串口线2根。在华为路由器上配置静态路由和RIP协议(实训)6实验拓扑路由器静态路由配置(实训)7实验步骤1.在HW-routesim中,根据实验拓扑图组建局域网。2.根据拓扑图对每台计算机配置IP地址。如计算机A配置为:PCAlogin:rootpassword:linux[root@PCAroot]#ifconfigeth0192.168.11.10netmask255.255.255.0[root@PCAroot]#routeadddefaultgw192.168.11.1路由器静态路由配置(实训)8实验步骤3.进入路由器A,对其如下进行配置。QuidwaysysEntersystemview,returntouserviewwithCtrl+Z.[Quidway]inte0[Quidway-Ethernet0]ipadd192.168.11.1255.255.255.0[Quidway-Ethernet0]undoshutdown[Quidway-Ethernet0]quit[Quidway]ints0[Quidway-Serial0]ipadd192.168.1.1255.255.255.0[Quidway-Serial0]clockrate64000[Quidway-Serial0]undoshutdown[Quidway-Serial0]quit[Quidway]iproute192.168.12.0255.255.255.0192.168.1.2[Quidway]iprouting路由器静态路由配置(实训)9实验步骤4.进入路由器B,对其如下进行配置。QuidwaysysEntersystemview,returntouserviewwithCtrl+Z.[Quidway]inte0[Quidway-Ethernet0]ipadd192.168.12.1255.255.255.0[Quidway-Ethernet0]undoshutdown[Quidway-Ethernet0]quit[Quidway]ints0[Quidway-Serial0]ipadd192.168.1.2255.255.255.0[Quidway-Serial0]undoshutdown[Quidway-Serial0]quit[Quidway]iproute192.168.11.0255.255.255.0192.168.1.1[Quidway]iprouting路由器静态路由配置(实训)10实验步骤5.分别进入每台计算机,Ping其它计算机,测试能否Ping通。6.分别进入每个路由器,用displayiproute命令,查看各路由器的路由表。路由器静态路由配置(实训)11路由器A的路由表[Quidway]displayiprouteRoutingTable:Destination/MaskProtoperfMerticNexthopinterface192.168.11.0/24Direct00127.0.0.1FastEthernet0/0192.168.1.0/24Direct00127.0.0.1Serial0/0192.168.12.0/24Static601192.168.1.2Serial0/0路由器RIP配置(实训)12路由器B的路由表[Quidway]displayiprouteRoutingTable:Destination/MaskProtoperfMerticNexthopinterface192.168.12.0/24Direct00127.0.0.1FastEthernet0/0192.168.1.0/24Direct00127.0.0.1Serial0/0192.168.11.0/24Static601192.168.1.1Serial0/0路由器RIP配置(实训)13实验拓扑路由器RIP配置(实训)14实验步骤1.在HW-routesim中,根据实验拓扑图组建局域网。2.根据拓扑图对每台计算机配置IP地址。如计算机A配置为:PCAlogin:rootpassword:linux[root@PCAroot]#ifconfigeth0192.168.11.10netmask255.255.255.0[root@PCAroot]#routeadddefaultgw192.168.11.1路由器RIP配置(实训)15实验步骤3.进入路由器A,对其如下进行配置。QuidwaysystemEntersystemview,returntouserviewwithCtrl+Z.[Quidway]interfacee0[Quidway-Ethernet0]ipadd192.168.11.1255.255.255.0[Quidway-Ethernet0]undoshutdown[Quidway-Ethernet0]quit[Quidway]ints0[Quidway-Serial0]ipadd192.168.1.1255.255.255.0[Quidway-Serial0]undoshut[Quidway-Serial0]quit[Quidway]rip[Quidway-rip]network192.168.11.0[Quidway-rip]network192.168.1.0[Quidway-rip]quit[Quidway]iprouting路由器RIP配置(实训)16实验步骤4.进入路由器B,对其如下进行配置。QuidwaysystemEntersystemview,returntouserviewwithCtrl+Z.[Quidway]interfacee0[Quidway-Ethernet0]ipadd192.168.12.1255.255.255.0[Quidway-Ethernet0]undoshutdown[Quidway-Ethernet0]quit[Quidway]ints0[Quidway-Serial0]ipadd192.168.1.2255.255.255.0[Quidway-Serial0]undoshut[Quidway-Serial0]quit[Quidway]ints1[Quidway-Serial1]ipadd192.168.2.2255.255.255.0[Quidway-Serial1]undoshut[Quidway-Serial1]quit[Quidway]rip[Quidway-rip]network192.168.12.0[Quidway-rip]network192.168.1.0[Quidway-rip]network192.168.2.0[Quidway-rip]quit[Quidway]iprouting路由器RIP配置(实训)17实验步骤5.进入路由器C,对其如下进行配置。QuidwaysystemEntersystemview,returntouserviewwithCtrl+Z.[Quidway]interfacee0[Quidway-Ethernet0]ipadd192.168.13.1255.255.255.0[Quidway-Ethernet0]undoshutdown[Quidway-Ethernet0]quit[Quidway]ints1[Quidway-Serial1]ipadd192.168.2.3255.255.255.0[Quidway-Serial1]undoshut[Quidway-Serial1]quit[Quidway]rip[Quidway-rip]network192.168.13.0[Quidway-rip]network192.168.2.0[Quidway-rip]quit[Quidway]iprouting路由器RIP配置(实训)18实验步骤6.分别进入每台计算机,Ping其它计算机,测试能否Ping通。7.分别进入每个路由器,用displayiproute命令,查看各路由器的路由表。路由器RIP配置(实训)19路由器A的路由表[Quidway]displayiprouteRoutingTable:Destination/MaskProtoperfMerticNexthopinterface192.168.11.0/24Direct00127.0.0.1FastEthernet0/0192.168.1.0/24Direct00127.0.0.1Serial0/0192.168.12.0/24RIP1001192.168.1.2Serial0/0192.168.2.0/24RIP1001192.168.1.2Serial0/0192.168.13.0/24RIP1002192.168.1.2Serial0/0路由器RIP配置(实训)20路由器B的路由表[Quidway]displayiprouteRoutingTable:Destination/MaskProtoperfMerticNexthopinterface192.168.12.0/24Direct00127.0.0.1FastEthernet0/0192.168.1.0/24Direct00127.0.0.1Serial0/0192.168.2.0/24Direct00127.0.0.1Serial0/1192.168.11.0/24RIP1001192.168.1.1Serial0/0192.168.13.0/24RIP1001192.168.2.3Serial0/1路由器RIP配置(实训)21路由器C的路由表[Quidway]displayiprouteRoutingTable:Destination/MaskProtoperfMerticNexthopinterface192.168.13.0/24Direct00127.0.0.1FastEthernet0/0192.168.2.0/24Direct00127.0.0.1Serial0/1192.168.12.0/24RIP1001192.168.2.2Serial0/1192.168.1.0/24RIP1001192.168.2.2Serial0/1192.168.11.0/24RIP1002192.168.2.2Serial0/1路由器RIP配置(实训)22作业根据本次实训,完成实训报告路由器RIP配置(实训)23本课总结配置路由器RIP路由在华为路由器上配置静态路由和RIP协议(实训)配置路由器静态路由谢谢大家!交换机STP的配置(实训)