网络设备配置与管理实验指导书.doc_第1页
网络设备配置与管理实验指导书.doc_第2页
网络设备配置与管理实验指导书.doc_第3页
网络设备配置与管理实验指导书.doc_第4页
网络设备配置与管理实验指导书.doc_第5页
已阅读5页,还剩66页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

实验指导知识点: 路由器口令的配置 静态路由的配置 RIP协议的配置 IGRP协议配置 EIGRP协议配置 OSPF协议配置 RIP协议路由重分配的配置 EIGRP协议路由重分配的配置 OSPF协议路由重分配的配置 标准访问控制列表的配置 扩展访问控制列表的配置 帧中继的配置 ISDN的配置 VLAN的配置本章将主要介绍具体的网络实验。在学习本章过程中指导教师应首先对实验进行相应的讲解(说明在实验中应注意的重点事项,特别要强调有些实验如操作不当可能引起硬件损坏等严重后果),再演示实验内容,然后由学生动手实践操作,最后要求学生写出实验报告。针对学生不同的层次水平,指导教师可酌情考虑选择其中的部分或自行再增加一些内容作为课堂实验。10.1 路由器口令的配置10.1.1 实验目的通过本实验,可以掌握以下技能:l 配置接口IP地址。l 配置路由器口令。l 验证路由口令的配置。10.1.2 设备需求l Cisco路由器3台,分别命名为RouterA、RouterB和RouterC。其中RouterA具有1个以太网接口和1个串行接口;RouterB具有1个以太网接口和2个串行接口;RouterC具有1个以太网接口和1个串行接口。l 3根交叉线序双绞线,2根串行线。l 1台access server,及用于反向Telnet的相应电缆。l 1台带有超级终端程序的PC机,以及Console电缆及转接器。10.1.3 拓扑结构及配置说明实验的拓扑结构如图10-1所示。通过2根串行线分别把RouterA和RouterB连接起来,RouterB和RouterC连接起来。图10-1 实验的拓扑结构各路由器使用的接口及其编号见图10-1所示的标注。各接口IP地址分配如下:l RouterA: E0:172.16.11.1 S0:172.16.20.1l RouterB:E0:172.16.10.6 S0:172.16.20.2 S1:172.16.40.1 l RouterC:E0:172.16.50.1 S0:172.16.40.210.1.4 实验配置1. 基本网络配置RouterA:Router#config tRouter(config)#hostname RouterARouterA(config)#int ethernet 0RouterA(config-if)#ip address 172.16.11.1 255.255.255.250RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterA(config)#int serial 0RouterA(config-if)#ip address 172.16.20.1 255.255.255.250RouterA(config-if)#clock rate 56000RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterB:Router#config tRouter(config)#hostname RouterBRouterB(config)#int ethernet 0RouterB(config-if)#ip address 172.16.10.6 255.255.255.250RouterB(config-if)#no shutdownRouterB(config)#int serial 0RouterB(config-if)#ip address 172.16.20.2 255.255.255.250RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config)#int serial 1RouterB(config-if)#ip address 172.16.40.1 255.255.255.250RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config-if)#exitRouterC:Router#config tRouter(config)#hostname RouterCRouterC(config)#int ethernet 0RouterC(config-if)#ip address 172.16.50.1 255.255.255.250RouterC(config-if)#no shutdownRouterC(config)#int serial 0RouterC(config-if)#ip address 172.16.20.2 255.255.255.250RouterC(config-if)#clock rate 56000RouterC(config-if)#no shutdownRouterC(config-if)#exit2. 配置路由器特权口令RouterA:RouterA#configure terminalRouterA(config)#enable secret twins3. 配置路由器console口令RouterA#configure terminalRouterA(config)#line console 0RouterA(config-line)#password twinsRouterA(config-line)#login4. 配置路由器telnet口令RouterA#configure terminalRouterA(config)#line vty 0 4RouterA(config-line)#password twinsRouterA(config-line)#login5. 验证路由器口令的配置1) 设置enable password后, show running-config的输出Hostname RouterA!Enable password twins2) 设置enable secret后, show running-config的输出Hostname RouterA!Enable secret SoVrsPUqRn3) 设置console password后, show running-config的输出Line con 0Password twinsLogin4) 设置telnet password后, show running-config的输出Line vty 0 4Password twinslogin10.2 静态路由的配置10.2.1 实验目的通过本实验,可以掌握以下技能:l 配置接口IP地址。l 配置静态路由。l 验证静态路由的配置。10.2.2 设备需求l Cisco路由器3台,分别命名为RouterA、RouterB和RouterC。其中RouterA具有1个以太网接口和1个串行接口;RouterB具有1个以太网接口和2个串行接口;RouterC具有1个以太网接口和1个串行接口。l 3根交叉线序双绞线,2根串行线。l 1台access server,及用于反向Telnet的相应电缆。l 1台带有超级终端程序的PC机,以及Console电缆及转接器。10.2.3 拓扑结构及配置说明实验的拓扑结构如图10-2所示。通过2根串行线分别把RouterA和RouterB连接起来,RouterB和RouterC连接起来。图10-2 实验的拓扑结构各路由器使用的接口及其编号见图10-2所示的标注,各接口IP地址分配如下:l RouterA: E0:172.16.11.1 S0:172.16.20.1l RouterB:E0:172.16.10.6 S0:172.16.20.2 S1:172.16.40.1 l RouterC: E0:172.16.50.1 S0:172.16.40.210.2.4 实验配置1. 基本网络配置RouterA:Router#config tRouter(config)#hostname RouterARouterA(config)#int ethernet 0RouterA(config-if)#ip address 172.16.11.1 255.255.255.250RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterA(config)#int serial 0RouterA(config-if)#ip address 172.16.20.1 255.255.255.250RouterA(config-if)#clock rate 56000RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterB:Router#config tRouter(config)#hostname RouterBRouterB(config)#int ethernet 0RouterB(config-if)#ip address 172.16.10.6 255.255.255.250RouterB(config-if)#no shutdownRouterB(config)#int serial 0RouterB(config-if)#ip address 172.16.20.2 255.255.255.250RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config)#int serial 1RouterB(config-if)#ip address 172.16.40.1 255.255.255.250RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config-if)#exitRouterC:Router#config tRouter(config)#hostname RouterCRouterC(config)#int ethernet 0RouterC(config-if)#ip address 172.16.50.1 255.255.255.250RouterC(config-if)#no shutdownRouterC(config)#int serial 0RouterC(config-if)#ip address 172.16.20.2 255.255.255.250RouterC(config-if)#clock rate 56000RouterC(config-if)#no shutdownRouterC(config-if)#exit2. 配置静态路由RouterA:RouterA#configure terminalRouterA(config)#ip route 172.16.10.0 255.255.255.0 172.16.20.2RouterA(config)#ip route 172.16.40.0 255.255.255.0 172.16.20.2RouterA(config)#ip route 172.16.50.0 255.255.255.0 172.16.20.2RouterB:RouterB#configure terminalRouterB(config)#ip route 172.16.11.0 255.255.255.0 172.16.20.1RouterB(config)#ip route 172.16.50.0 255.255.255.0 172.16.40.2RouterC:RouterC#configure terminalRouterC(config)#ip route 172.16.10.0 255.255.255.0 172.16.40.1RouterC(config)#ip route 172.16.11.0 255.255.255.0 172.16.40.1RouterC(config)#ip route 172.16.20.0 255.255.255.0 172.16.40.110.2.5 验证静态路由配置1. show ip route该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由的,该命令如下:RouteA#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o -ODRGateway of last resort is not set 172.16.0.0/24 is subnetted, 7 subnetsS 172.16.50.0 1/0 via 172.16.20.0S 172.16.10.0 1/0 via 172.16.20.0S 172.16.10.0 1/0 via 172.16.20.0S 172.16.40.0 1/0 via 172.16.20.0C 172.16.20.0 is directly connected, Serial0C 172.16.11.0 is directly connected, Ethernet0RouteB#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o -ODRGateway of last resort is not set 172.16.0.0/24 is subnetted, 5 subnetsS 172.16.50.0 1/0 via 172.16.40.2S 172.16.11.0 1/0 via 172.16.20.1C 172.16.40.0 is directly connected, Serial1C 172.16.10.0 is directly connected, Ethernet0C 172.16.20.0 is directly connected, Serial0RouteC#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o -ODRGateway of last resort is not set 172.16.0.0/24 is subnetted, 6 subnetsS 172.16.20.0 1/0 via 172.16.40.1S 172.16.11.0 1/0 via 172.16.40.1S 172.16.10.0 1/0 via 172.16.40.1C 172.16.40.0 is directly connected, Serial1C 172.16.55.0 is directly connected, TokenRing0C 172.16.50.0 is directly connected, Ethernet02. ping 指令的使用从RouterA路由器去ping RouterC路由器,如果能ping通,说明静态路由工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。10.3 RIP协议的配置10.3.1 实验目的通过本实验,可以掌握以下技能:l 配置接口IP地址。l 配置RIP协议。l 验证RIP协议配置。10.3.2 设备需求l Cisco路由器3台,分别命名为twins、sa、和gill。其中twins具有2个以太网接口;sa具有2个以太网接口;gill具有2个以太网接口。l 2条交叉线序双绞线。l 1台access server,及用于反向Telnet的相应电缆。l 1台带有超级终端程序的PC机,以及Console电缆及转接器。10.3.3 拓扑结构及配置说明实验的拓扑结构如图10-3所示。通过2对交叉线序双绞线分别把twins和sa连接起来,twins和gill连接起来。图10-3 实验的拓扑结构各路由器使用的接口及其编号见图10-3所示的标注,各接口IP地址分配如下:l twins:E0:192.168.2.1 E1:192.168.3.1l sa:E0:192.168.2.2 E1:192.168.4.1l gill:E0:192.168.3.2 E1:192.168.5.110.3.4 实验配置1. 基本网络配置twins:Router#config tRouter(config)#hostname twinstwins(config)#int ethernet 0twins(config-if)#ip address 192.168.2.1 255.255.255.252twins(config-if)#no shutdowntwins(config-if)#exittwins(config)#int ethernet 1twins(config-if)#ip address 192.168.3.1 255.255.255.252twins(config-if)#no shutdowntwins(config-if)#exitsa:Router#config tRouter(config)#hostname sasa(config)#int ethernet 0sa(config-if)#ip address 192.168.2.2 255.255.255.252sa(config-if)#no shutdownsa(config)#int ethernet 1sa(config-if)#ip address 192.168.4.1 255.255.255.0sa(config-if)#no shutdownsa(config-if)#exitgill:Router#config tRouter(config)#hostname gillgill(config)#int ethernet 0gill(config-if)#ip address 192.168.3.2 255.255.255.252gill(config-if)#no shutdowngill(config)#int ethernet 1gill(config-if)#ip address 192.168.5.1 255.255.255.0gill(config-if)#no shutdowngill(config-if)#exit2. 配置RIP协议twins:twins(config)#router riptwins(config-router)#network 192.168.2.0twins(config-router)#network 192.168.3.0twins(config-router)#exitsa:sa(config)#router ripsa(config-router)#network 192.168.2.0sa(config-router)#network 192.168.4.0sa(config-router)#exitgill:gill(config)#router ripgill(config-router)#network 192.168.3.0gill(config-router)#network 192.168.5.0gill(config-router)#exit10.3.5 验证RIP协议配置:1. show ip protocols该命令显示路由器的IP路由选择协议配置,详细说明了协议的配置情况以及协议之间的交互情况,还指出了下一次更新在何时进行。这种细节对诊断配置错误很有帮助,该命令如下:sa#sh ip protocolsRouting Protocol is rip Sending updates every 30 seconds, next due in 23 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is Incoming update filter list for all interfaces is Redistributing: rip Default version control: send version 1, receive any version Interface send Recv Key-chain Ethernet0/0 1 1 2 Ethernet0/1 1 1 2 Routing for Networks: 192.168.2.0 192.168.4.0 Routing Information Sources: 192.168.2.1 120 00:00:06Distance: (default is 120) 2. show ip route该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由的,该命令如下:sa#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o -ODRGateway of last resort is not set 192.168.2.0/24 is subnetted, 1 subnetsC 192.168.2.0 is directly connected, Ethernet0/0192.168.4.0/24 is subnetted, 1 subnetsC 192.168.4.0 is directly connected, Ethernet0/1 192.168.3.0/24 is subnetted, 1 subnetsR 192.168.3.0 120/1 via 192.168.2.1, 00:07:17, Ethernet0/0 192.168.5.0/24 is subnetted, 1 subnetsR 192.168.5.0 120/2 via 192.168.2.1, 00:01:18, Ethernet0/03. ping 指令的使用从sa路由器去ping gill路由器,如果能ping通,说明RIP协议工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。10.4 IGRP协议配置10.4.1 实验目的通过本实验,可以掌握以下技能:l 配置接口IP地址。l 配置IGRP协议。l 验证IGRP协议配置。10.4.2 设备需求l Cisco路由器3台,分别命名为twins、sa和gill。其中twins具有2个以太网接口;sa具有2个以太网接口;gill具有2个以太网接口。l 2条交叉线序双绞线。l 1台access server,及用于反向Telnet的相应电缆。l 1台带有超级终端程序的PC机,以及Console电缆及转接器。10.4.3 拓扑结构及配置说明实验的拓扑结构如图10-4所示。通过2对交叉线序双绞线分别把twins和sa连接起来、twins和gill连接起来。图10-4 实验的拓扑结构各路由器使用的接口及其编号见图的标注。各接口IP地址分配如下:l twins: E0:192.168.2.1 E1:192.168.3.1l sa: E0:192.168.2.2 E1:192.168.4.1l gill:E0:192.168.3.2 E1:192.168.5.110.4.4 实验配置1. 基本网络配置twins:Router#config tRouter(config)#hostname twinstwins(config)#int ethernet 0twins(config-if)#ip address 192.168.2.1 255.255.255.252twins(config-if)#no shutdowntwins(config-if)#exittwins(config)#int ethernet 1twins(config-if)#ip address 192.168.3.1 255.255.255.252twins(config-if)#no shutdowntwins(config-if)#exitsa:Router#config tRouter(config)#hostname sasa(config)#int ethernet 0sa(config-if)#ip address 192.168.2.2 255.255.255.252sa(config-if)#no shutdownsa(config)#int ethernet 1sa(config-if)#ip address 192.168.4.1 255.255.255.0sa(config-if)#no shutdownsa(config-if)#exitgill:Router#config tRouter(config)#hostname gillgill(config)#int ethernet 0gill(config-if)#ip address 192.168.3.2 255.255.255.252gill(config-if)#no shutdowngill(config)#int ethernet 1gill(config-if)#ip address 192.168.5.1 255.255.255.0gill(config-if)#no shutdowngill(config-if)#exit2. 配置IGRP协议twins:twins(config)#router igrp 10twins(config-router)#network 192.168.2.0twins(config-router)#network 192.168.3.0twins(config-router)#exitsa:sa(config)#router igrp 10sa(config-router)#network 192.168.2.0sa(config-router)#network 192.168.4.0sa(config-router)#exitgill:gill(config)#router igrp 10gill(config-router)#network 192.168.3.0gill(config-router)#network 192.168.5.0gill(config-router)#exit10.4.5 验证IGRP协议配置:1. show ip protocols该命令显示路由器的IP路由选择协议配置,详细说明了协议的配置情况以及协议之间的交互情况,还指出了下一次更新在何时进行。这种细节对诊断配置错误很有帮助,该命令如下:sa#sh ip protocolsRouting Protocol is igrp 10 Sending updates every 90 seconds, next due in 54 seconds Invalid after 270 seconds, hold down 180, flushed after 630 Outgoing update filter list for all interfaces isIncoming update filter list for all interfaces isDefault networks flagged in outgoing updatesDefault networks accepter from incoming updatesIGRP metric weight K1=1, K2=0, K3=3, K4=0, K5=0IGRP maximum hopcount 100IGRPmaximum metric variance 1 Redistributing: igrp 10 Routing for Networks: 192.168.2.0 192.168.4.0 Routing Information Sources: 192.168.2.1 100 00:00:00Distance: (default is 100)2. show ip route该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由。该命令如下:sa#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o -ODRGateway of last resort is not set 192.168.2.0/24 is subnetted, 1 subnetsC 192.168.2.0 is directly connected, Ethernet0/0192.168.4.0/24 is subnetted, 1 subnetsC 192.168.4.0 is directly connected, Ethernet0/1 192.168.3.0/24 is subnetted, 1 subnetsI 192.168.3.0 100/273 via 192.168.2.1, 00:05:33, Ethernet0/0 192.168.5.0/24 is subnetted, 1 subnetsI 192.168.5.0 100/437 via 192.168.2.1, 00:04:24, Ethernet0/03. ping 指令的使用从sa路由器去ping gill路由器,如果能ping通,说明RIP协议工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。10.5 EIGRP协议配置10.5.1 实验目的通过本实验,可以掌握以下技能:l 配置接口IP地址。l 配置EIGRP协议。l 验证EIGRP协议配置。10.5.2 设备需求l Cisco路由器4台,分别命名为twins、sa、gill和hua。其中twins具有两个串行接口和1个以太网接口;sa具有1个串行接口;gill具有1个串行接口;hua具有1个以太网接口。l 两条串行线。l 1条交叉线序双绞线。l 1台access server,及用于反向Telnet的相应电缆。l 1台带有超级终端程序的PC机,以及Console电缆及转接器。10.5.3 拓扑结构及配置说明实验的拓扑结构如图10-5所示。通过2条两条串行线分别把twins和sa连接起来,把twins和gill连接起来,然后通过一条1条交叉线序双绞线把twins和hua连接起来。图10-5 实验的拓扑结构各路由器使用的接口及其编号见图10-5所示的标注,各接口IP地址分配如下:l twins:S0:192.168.10.1 S1:172.20.128.1 E0:172.20.192.1l sa:S0:192.168.10.2l gill:S0: 172.20.128.2l hua:E0: 172.20.192.210.5.4 实验配置1. 基本网络配置Twins:Router#config tRouter(config)#hostname twinstwins(config)#int serial 0twins(config-if)#ip address 192.168.10.1 255.255.255.0twins(config-if)#clock rate 56000twins(config-if)#no shutdowntwins(config-if)#exittwins(config)#int serial 1twins(config-if)#ip address 172.20.128.1 255.255.255.0twins(config-if)#clock rate 56000twins(config-if)#no shutdowntwins(config-if)#exittwins(config)#int ethernet 0twins(config-if)#ip address 172.20.192.1 255.255.255.250twins(config-if)#no shutdowntwins(config-if)#exitsa:Router#config tRouter(config)#hostname sasa(config)#int serial 0sa(config-if)#ip address 192.168.10.2 255.255.255.0sa(config-if)#no shutdownsa(config-if)#exitgill:Router#config tRouter(config)#hostname gillgill(config)#int serial 0gill (config-if)#ip address 172.20.128.2 255.255.255.0gill (config-if)#no shutdowngill(config-if)#exithuaRouter#config tRouter(config)#hostname huahua(config)#int ethernet 0hua(config-if)#ip address 172.20.192.2 255.255.255.250hua(config-if)#no shutdownhua(config-if)#exit2. 配置EIGRP协议twins:twins(config)#router eigrp 10twins(config-router)#network 172.20.0.0twins(config-router)#network 192.168.10.0twins(config-router)#exitsa:sa(config)# router eigrp 10sa(config-router)#network 192.168.10.0sa(config-router)#exi

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论