《《网络设备配置与管理》实验指导书》由会员分享,可在线阅读,更多相关《《网络设备配置与管理》实验指导书(71页珍藏版)》请在金锄头文库上搜索。
1、实验指导知识点: 路由器口令的配置 静态路由的配置 RIP协议的配置 IGRP协议配置 EIGRP协议配置 OSPF协议配置 RIP协议路由重分配的配置 EIGRP协议路由重分配的配置 OSPF协议路由重分配的配置 标准访问控制列表的配置 扩展访问控制列表的配置 帧中继的配置 ISDN的配置 VLAN的配置本章将主要介绍具体的网络实验。在学习本章过程中指导教师应首先对实验进行相应的讲解(说明在实验中应注意的重点事项,特别要强调有些实验如操作不当可能引起硬件损坏等严重后果),再演示实验内容,然后由学生动手实践操作,最后要求学生写出实验报告。针对学生不同的层次水平,指导教师可酌情考虑选择其中的部分
2、或自行再增加一些内容作为课堂实验。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电缆及转接
3、器。10.1.3 拓扑结构及配置说明实验的拓扑结构如图10-1所示。通过2根串行线分别把RouterA和RouterB连接起来,RouterB和RouterC连接起来。图10-1 实验的拓扑结构各路由器使用的接口及其编号见图10-1所示的标注。各接口IP地址分配如下:l RouterA: l RouterB:E0:172.16.10.6 S0:172.16.20.2 S1:172.16.40.1 l RouterC:10.1.4 实验配置1. 基本网络配置RouterA:Router#config tRouter(config)#hostname RouterARouterA(config)#
4、int ethernet 0RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterA(config)#int serial 0RouterA(config-if)#clock rate 56000RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterB:Router#config tRouter(config)#hostname RouterBRouterB(config)#int ethernet 0RouterB(config-if)#no shutdownRou
5、terB(config)#int serial 0RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config)#int serial 1RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config-if)#exitRouterC:Router#config tRouter(config)#hostname RouterCRouterC(config)#int ethernet 0RouterC(co
6、nfig-if)#no shutdownRouterC(config)#int serial 0RouterC(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(co
7、nfig-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后, s
8、how 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 Cisc
9、o路由器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、及其编号见图10-2所示的标注,各接口IP地址分配如下:l RouterA: l RouterB:E0:172.16.10.6 S0:172.16.20.2 S1:172.16.40.1 l RouterC: 10.2.4 实验配置1. 基本网络配置RouterA:Router#config tRouter(config)#hostname RouterARouterA(config)#int ethernet 0RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterA(config)#int serial 0RouterA(co
11、nfig-if)#clock rate 56000RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterB:Router#config tRouter(config)#hostname RouterBRouterB(config)#int ethernet 0RouterB(config-if)#no shutdownRouterB(config)#int serial 0RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config)
12、#int serial 1RouterB(config-if)#clock rate 56000RouterB(config-if)#no shutdownRouterB(config-if)#exitRouterC:Router#config tRouter(config)#hostname RouterCRouterC(config)#int ethernet 0RouterC(config-if)#no shutdownRouterC(config)#int serial 0RouterC(config-if)#clock rate 56000RouterC(config-if)#no
13、shutdownRouterC(config-if)#exit2. 配置静态路由RouterA:RouterA#configure terminalRouterB:RouterB#configure terminalRouterC:RouterC#configure terminal10.2.5 验证静态路由配置1. show ip route该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由的,该命令如下:RouteA#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile,
14、 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 subnetsC 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 - mobi