




已阅读5页,还剩50页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实训一 认识交换机路由器(10 分)1. 实训目的能够熟练辨认各厂商路由器、交换机。通过本章的实训,读者应能掌握路由器及交换机的辨认及路由器交换机各端口的功能。2. 实训内容(1) 能够轻松完成对路由器及交换机的辨认。(2) 能够掌握路由器及交换机的端口功能。3. 实训过程(1) 认识路由器前/后面板、以太网/广域网接口、控制端口(Console)及备用端口。(2) 认识交换机前/后面板、控制端口(Console)。实训二(1) 备份网络操作系统(20 分)1. 实训目的(1) 掌握TFTP 服务器的安装使用。(2) 掌握系统映像文件的备份。2. 实训内容(1) 能够为PC 和路由器以太网端口配置IP地址及子网掩码。(2) 能够正确选用终端线实现路由器与PC 的连接。(3) 能够熟练使用TFTP Server 的安装与使用。(4) 能够熟练使用TFTP Server 完成操作系统的备份。3. 实训过程(1) 在网上搜索TFTP Server 软件,并下载。(2) 直接运行tftpserver.exe 并安装。(3) 终端线连接Router 的Console 口和PC串口。(4) 使用交叉双绞线连接已安装好AUI-RJ-45模块的路由器和PC。(5) 运行Cisco TFTP Server,其主界面如图所示。(6) 依次选择ViewOptions,在其中可更改备份路径(如图所示)(7) 执行【开始】|【程序】|【附件】|【通信】|【超级终端】命令,登录Router 进入特权模式(enable 模式)。RouterAenPassword:RouterA#(8) 特权模式下输入copy startup-config tftp 完成对启动配置的备份;输入copyrunning-config tftp完成对运行配置的备份,如图4.6所示。RouterA#copy startup-config tftpRemote host ? 0Name of configuration file to write routera-config?Write file routera-config on host 0?confirmWriting routera-config ! OKRouterA#实训二(2) 网络操作系统的恢复(10 分)1. 实训目的掌握从TFTP服务器完成路由器的启动。2. 实训内容(1) 能够正确选用终端线实现路由器与PC 的连接。(2) 能够熟练更改路由器启动顺序。(3) 能够熟练完成从TFTP服务器启动路由器。(4) 实训过程(以思科设备为例)3. 实训过程(1) 使用超级终端登录路由器,并进入配置模式。RouterAenablePassword:RouterA#configure terminalEnter configuration commands, one per line. End with CNTL/Z.RouterA(config)#(2) 改路由器启动,改为从TFTP 服务器启动。RouterA(config)#boot system tftp ?WORD Configuration filenameRouterA(config)#boot system tftp routera-config(3) 重新启动路由器,完成从TFTP服务器启动路由器。RoueterA#reload实训三 静态路由和路由表(30 分)1.实训目的本章通过实验,可以使学生掌握在路由器上配置静态路由的方法,理解默认网关、默认路由的意义,掌握查看路由表和端口的命令,理解路由表和端口中各内容的含义。2.实训内容(1) 静态路由。(2) 查看路由表。3.实训过程1静态路由分析路由器根据路由表的内容进行IP包的转发。路由表的内容我们可以通过静态手工的方式输入。本实验我们需要按给定参数设置各路由器端口IP 地址及子网掩码;设置PC 的IP地址与默认网关;在路由器A上设置到达路由器B 右端网络的静态路由;在路由器B上设置到达默认网络的默认网关,最终使PC 之间能够相互访问。实训步骤(1) 按参考配置图连接设备;各参数说明见表。名 称说明相 关 参 数PC- B配置、测试用计算机IP: /24网关: 54PC-C配置、测试用计算机IP: /24网关: 54Router A路由器(至少两个以太口)E0: /24E1: 54/24Router B路由器(至少两个以太口)E0: /24E1: 54/24(2) 进入各路由器,按上表设置各端口地址,并按下面的命令将静态路由信息输入。ip route prefix mask address | interface distance permanent(3) 配置完毕后,各路由器上的命令清单如下。路由器A上的配置命令清单:Router-A#show runBuilding configuration.Current configuration:!version 12.1service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Router-A!enable password cisco!ip subnet-zero!interface Ethernet0/0ip address !interface Ethernet0/1ip address 54 !no ip classlessip route no ip http server!line con 0transport input noneline aux 0line vty 0 4password ciscologin!end路由器B上的配置命令清单:Router-B#show runBuilding configuration.Current configuration : 607 bytes!version 12.2no parser cacheno service single-slot-reload-enableservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Router-B!logging rate-limit console 10 except errors!ip subnet-zero!no ip dhcp-client network-discovery!interface Ethernet0/0ip address full-duplex!interface Ethernet0/1ip address 54 half-duplex!ip classlessip route ip http server!line con 0line aux 0line vty 0 4loginline vty 5 15login!no scheduler allocate!End2查看路由表分析路由器能否按照我们设想的路径进行信息的转发,取决于路由表的内容。本实验通过使用查看路由表和端口的相关命令,来验证和理解路由表和端口中各内容的含义。实训步骤(1) 保证上一实验已正常完成。(2) 在特权模式下分别输入下面的两条命令,查看输出结果。show ip routeshow interface 端口号(3) 显示结果如下。路由器A上的路由表内容:Router-A#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC /24 is directly connected, Ethernet0/1S /24 1/0 via C /24 is directly connected, Ethernet0/0路由器B上的路由表内容:Router-B#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is to network C /24 is directly connected, Ethernet0/1C /24 is directly connected, Ethernet0/0S* /0 1/0 via 实训四(1) 基本RIP配置(10 分)1. 实训目的掌握使用E0 端口实现两台路由器的互联;理解RIP 的含义及用法。2. 实训内容(1) 能够按给定参数设置各路由器E0 端口IP地址及子网掩码。(2) 能够正确完成RIP 的配置。(3) 能够正确启动一个RIP 路由选择进程,然后切换到路由器配置模式。(4) 能够正确指定RIP 路由选择进程的关联网络。(5) 能够使路由器之间相互访问。3. 实训过程配置环境及参数如图所示。1) 主要相关命令Router(config)router ripRouter(configrouter)network networknumber2) 配置命令清单(1) 路由器Joe 配置清单。Joe(config)#router ripJoe(config-router-rip)#network Joe(config-router-rip)#network (2) 路由器Hamer 配置清单。Hamer(config)#router ripHamer(config-router-rip)#network Hamer(config-router-rip)#network (3) 路由器Tom 配置清单。Tom(config)#router ripTom(config-router-rip)#network Tom(config-router-rip)#network 实训四(2) 基本IGRP配置(30 分)1. 实训目的掌握基本IGRP 配置;理解IGRP 协议的含义及用法。2. 实训内容(1) 能够按给定参数设置各路由器E0 端口IP地址及子网掩码。(2) 能够正确完成IGRP 路由协议的配置。(3) 能够正确启动一个IGRP 路由选择进程,然后切换到路由器配置模式。(4) 能够正确指定IGRP 路由选择进程的网络序列。3. 实训过程1) 实验器材这个实验所用的器材有:两个有一个以太网端口和一个串口的Cisco 路由器,一个有两个串口的Cisco 路由器,Cisco 10.0和更高版本,PC(运行终端仿真),两根Cisco DTE/DCE交叉(crossover)电缆,一根Cisco 扁平(rolled)电缆。2) 配置环境及图示这个配置将演示用IGRP 进行基本的路由选择。如图所示,路由器A、路由器B、路由器C用IGRP 发送路由选择信息。路由器A、路由器B、路由器C 用交叉电缆连接。路由器B 作为DCE 给路由器A 和路由器C 提供时钟信号。IP 地址如图所示。所有的路由器都将配置成有IGRP 功能。它们将发送所有相连网络的信息。3) 主要相关命令Router(config)router igrp as-numberRouter(config)router igrp 101;Router(configrouter)network network4) 配置命令清单(1) 路由器A 配置清单:hostname RouterA!interface Loopback0 -Defines a virtual interface that will be usedas a test pointip address no keepalive!interface Ethernet0ip address no keepalive-Disables the keepalive on the Ethernet interface, allowsthe interface to stry up when it is not attached to a hubinterface Serial0ip address !router IGRP 64-Enable the IGRP routing process on the routernetwork -Specifies what interface will receive and send IGRProuting work network !no ip classless!(2) 路由器B 配置清单:hostname RouterBinterface Serial0ip address no fair-queueclockrate 500000-Act as DCE providing clock!interface Serial1ip address clockrate 500000-Act as DCE providing clock!router IGRP 64-Enable the IGRP routing process on the routernetwork -Specifies what interface will receive and send IGRProuting work !(3) 路由器C 配置清单:hostname RouterC!interface Ethernet0ip address no keepalive-Disables the keepalive on the Ethernet interface, allowsthe interface to stry up when it is not attached to a hubinterface Serial0ip address !router IGRP 64-Enable the IGRP routing process on the roternetwork -Specifies what interface will receive and send IGRProuting work !no ip classless!注意:类似RIP,IGRP 配置故障的查找也比较简单。用show ip route 显示路由器A上的路由表。下面是这个命令的输出例子。注意到通过IGRP 学到了两个网络: 和193.1.1. 0。RouterA#show ip route/24 is subnetted, 1 subnetsC is directly connected, Loopback0/24 subnetted, 1 subnetsC is directly connected,Ethernet0I /16 100/10576 via , 00:00:40,Serial0C /24 is directly connected, Serial0I /16 100/10476 via , 00:00:40,Serial0在路由器A 上,用debug ip igrp transactions 命令监视传输的路由选择更新信息。下面是这个命令的输出例子。注意在串口0 路由器 A 不发出从路由器 B 学到的网络信息( 和),而在其他接口路由器A 发出从路由器B 学到的网络信息。这种情况表示水平分割在起作用。记住,当打开水平分割功能时路由器将不会向路径带来的接口发出距离、路径信息。RouterA#debug ip igrp transactionsIGRP:sending update to 55 via Ethernet0()Network , metric=501Network , metric=10576Network , metric=8476Network , metric=10476IGRP:sending update to 55 via Loopback()Network , metric=1100Network , metric=10576Network , metric=8476Network , metric=10476IGRP:sending update to 55 via Serial0()Network , metric=501Network , metric=1100现在用no ip split horizons 接口配置命令关闭路由器A 上的水平分割功能。RouterA(config-if)#interface Serial0RouterA(config-if)#no ip split-horizon在路由器A 上,用debug ip igrp transacation命令监视传输的路由选择更新信息。下面是这个命令的输出例子。注意所有的路径信息(包括串口0 从路由器B 学到的)都发送到串口0。RouterA#debug ip igrp transactionsIGRP:sending update to 55 via Ethernet0()Network , metric=501Network , metric=10576Network , metric=8476Network , metric=10476IGRP:sending update to 55 via Loopback()Network , metric=1100Network , metric=10576Network , metric=8476Network , metric=10476IGRP:sending update to 55 via Serial0()Network , metric=501Network , metric=1100Network , metric=10576Network , metric=8476Network , metric=1100在路由器A 上,用下列命令删除IGRP 进程并添加一个使用自治系统56的新进程。RouterA#configure terminalEnter configuration commands, one per line. End with CNTL/Z.RouterA(config)#no router igrp 64RouterA(config)#router igrp 56RouterA(config-router)#network RouterA(config-router)#network RouterA(config-router)#network 用show ip route 命令显示路由器A 上的IP 路由选择信息表。下面是这个命令的输出例子。注意到由于自治系统号各不相同,通过IGRP 没有学到任何网络。自治系统号必须匹配,否则路由器将不会交换路由选择信息。RouterA#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidatedefaultU - per-user static route, o - ODRGateway of last resort is not set/24 is subnetted, 1 subnetsC is directly connected, Loopback0/24 subnetted, 1 subnetsC is directly connected,Ethernet0C /24 is directly connected, Serial0实训四(3) 基本EIGRP配置(30 分)1. 实训目的掌握基本的EIGRP 配置;理解EIGRP的含义及用法。2. 实训内容(1) 能够按给定参数设置各路由器E0 端口IP地址及子网掩码。(2) 能够正确完成EIGRP 路由协议的配置。(3) 能够正确启动一个EIGRP 路由选择进程(定义自治系统),然后切换到路由路由器配置模式。(4) 能够正确指定EIGRP 路由选择进程的网络序列。(5) 能够正确定义链路带宽。3. 实训过程1) 配置环境及图示配置将会验证使用EIGRP的基本路由。所有路由器都被配置了EIGRP。路由器A 和路由器B 用一个中继器相连,而路由器C 通过一根交叉电缆与路由器A和路由器B 串行连接。路由器C 将充当DCE,向路由器A 和路由器B 提供时钟,IP 地址如图所示。所有的路由器将会配置给EIGRP 并且通告所有连接的网络。2) 主要相关命令Router(config)#Router eigrp autonomous-system-numberRouter(config-router)#network network-numberRouter(config-if)#bandwidth kilobits3) 配置命令清单(1) 路由器A 的配置清单:hostname RouterA!interface Ethernet0ip address binterface Serial0ip address !router EIGRP 64-Enable the IGRP routing process on the routernetwork -Specifies what interface will receive and send EIGRProuting work !no ip classless!(2) 路由器B 的配置清单:hostname RouterB!interface Ethernet0ip address binterface Serial0ip address !router EIGRP 64-Enable the IGRP routing process on the routernetwork -Specifies what interface will receive and send EIGRProuting work !no ip classless!(3) 路由器C 的配置清单:hostname RouterCinterface Loopback0 -Defines a virtual interface that will be usedas a test pointip address interface Serial0ip address clockrate 500000-Act as DCE providing clock!interface Serial1ip address clockrate 500000-Act as DCE providing clock!router EIGRP 64-Enable the IGRP routing process on the routernetwork -Specifies what interface will receive and send EIGRProuting work network !no ip classess注意:就像IGRP 一样,EIGRP是一个简单的协议。使用show ip route 命令可以配置和查询故障。下面的示例是这个命令的输出。注意,两个网络(和)经由EIGRP而学习到。EIGRP 路由表项由字母D和EX标识。D 表示在相同自治系统内的路由,而EX 表示从不同自治系统接收的路由。EIGRP 内部路由的管理距离为90,而外部路由的管理距离为170。RouterA#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidatedefaultU - per-user static route, o - ODRGateway of last resort is not setD /8 90/2297856via ,00:22:19 Serial0C /24 is directly connected, Serial0D /24 90/2195456via ,00:22:20 Ethernet0C /24 is directly connected, Ethernet0在路由器A 的路由表中,分类网络 替代了路由器C 的子网。其原因是:当两个或多个网络路由器配置命令配置了IP EIGRP 处理时,默认路由和自动汇总被执行。要取消自动汇总,可以使用命令no auto-summary。使用命令show ip protocols,显示关于EIGRP的信息。注意,在路由器C上,启动了自动汇总,并且路由器汇总了网络。RouterC#show ip protocolsRouting Protocol is eigrp 64Outgoing update filter list for all interfaces isIncoming update filter list for all interfaces isDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hop count 100EIGRP maximum metric variance 1Redistributing: eigrp 64Automatic network summarization is in effect/8 for Serial0summarizing with metric 2297856Routing Information Sources:Gateway Distance Last Update(this router) 5 00:00:03 90 00:41:18 90 00:00:14Distance: internal 90 external 170让我们来看一看在路由器C 上取消自动汇总。在EIGRP 路由处理下,从路由器C 输入命令no auto summary。RouterC#configure terminalEnter configuration commands, one per line. End with CNTL/Z.RouterC(config)#router eigrp 64RouterC(config-router)#no auto-summary使用show ip protocols命令显示EIGRP 的信息,注意在路由器C上,自动网络汇总被关掉了。RouterC#show ip protocolRouting Protocol is eigrp 64Outgoing update filter list for all interfaces isIncoming update filter list for all interfaces isDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hop count 100EIGRP maximum metric variance 1Redistributing: eigrp 64Automatic network summarization is not in effectRouting for Networks:使用命令show ip route显示在路由器A 上的路由表的内容。注意子网 正处在路由表中。RouterA#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidatedefaultU - per-user static route, o - ODRGateway of last resort is not setD /8 90/2297856via ,00:13:00 Serial0C /24 is directly connected, Serial0D /24 90/2195456via ,00:13:00 Ethernet0C /24 is directly connected, Ethernet0使用debug eigrp packets 命令在路由器A 上监视邻居之间的Hello 包的交换。下面将给出这个命令的输出,注意Hello 包在邻居间发送。Hello 包在邻居路由器间周期地发送,使得路由器能快速动态地发现邻居的消失。RouterA#debug eigrp packetsEIGRP Packets debugging is on(Updata, Request,Query,Reply,Hello,Ipxsap,PROBE.ACK)RouterA#EIGRP: Received Hello on Serial0 nbr AS 64,Flag 0x0,Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0EIGRP: Received Hello on Ethernet0AS 64,Flag 0x0,Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0EIGRP: Received Hello on Serial0AS 64,Flag 0x0,Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0EIGRP: Received Hello on Ethernet0 nbr AS 64,Flag 0x0,Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/使用show ip eigrp neighbors 命令显示路由器A 的EIGRP的邻居。下面的例子将给出这条命令的输出。注意路由器A 有两个邻居,(路由器C)和(路由器B)。这条命令显示关于自治系统号、邻居存在多久、邻居驻留的接口信息。RouterA#show ip eigrp neighborsIP_EIGRP neighbors for process 64H Address Interface Hold Uptime SRTT RTO Q Sep(sec) (ms) cnt Num1 se0/0 13 00:13:14 15 200 0 310 se0/0 10 00:57:17 35 210 0 38在路由器A 上,使用命令show ip eigrp topology命令显示EIGRP拓扑数据库。注意目的地址前的字母P。这个字母表明对于一个特定目的端的路由器处于一个被动状态。当一个路由器处于一个被动状态,对于这个目的端不需要重新计算EIGRP。只有当路由器失去了它的后继时才会进行重新计算(没有可利用的可行性后继)。对于目的端网络(),路由器A 可以通过两条路径到达这个网络:通过或。后继是一条通过 的后继,因为通过 到达网络比通过的成本小。因为可以通过到达,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年飞行器构造原理考试试题及答案解析
- 生药学考研冲刺试题模拟试卷及答案
- 2025年无人机驾驶员(五级)理论考试题及答案
- 2025机修钳工技能试题及答案
- 增强现实导板设计-洞察及研究
- 高粱收购合同模板(3篇)
- 高空作业雇佣合同模板(3篇)
- 高空施工承包合同(3篇)
- 安徽导游笔试题及答案
- 安规安全考试题库及答案
- 医院死亡报卡培训课件
- catia考试图纸题目及答案
- pos机风险管理办法
- 2025年京东集团招聘笔试指南与面试技巧
- 起重机械定期检查与维护方案
- 2025年行业机器人边缘计算技术应用与场景分析
- 国际物流运输合同(标准版)
- 动物样品采集培训课件
- (2025年)医疗机构工作人员廉洁从业九项准则考核试题(+答案)
- 手机桌面市场深度解析
- 山河已无恙+吾辈当自强+课件-2025-2026学年高二上学期用《南京照相馆》和731上一节思政课
评论
0/150
提交评论