实验三路由器配置与管理

上传人:平*** 文档编号:14598189 上传时间:2017-10-31 格式:DOC 页数:6 大小:124.45KB
返回 下载 相关 举报
实验三路由器配置与管理_第1页
第1页 / 共6页
实验三路由器配置与管理_第2页
第2页 / 共6页
实验三路由器配置与管理_第3页
第3页 / 共6页
实验三路由器配置与管理_第4页
第4页 / 共6页
实验三路由器配置与管理_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《实验三路由器配置与管理》由会员分享,可在线阅读,更多相关《实验三路由器配置与管理(6页珍藏版)》请在金锄头文库上搜索。

1、实验三 路由器配置与管理实验学时:2实验类型:验证一、实验目的1. 巩固、理解计算机网络中静态路由相关知识;2. 理解路由器中路由表中路由信息的含义;3. 学以致用,掌握静态路由的配置方法。二、实验条件Cisco2621 Router、PacketTrace 仿真软件、具备 Windows 操作系统的 PC 机三、实验原理及相关知识1.实验拓扑2.PacketTrace 仿真软件介绍路由、交换仿真软件就是对真实的路由器、交换机等网络设备进行软件模拟,可以在安装仿真软件的普通 PC 上进行网络设备的配置、管理以及网络规划、网络验证等工作,而不需要真实的网络设备。目前,市场上路由、交换等网络设备模

2、拟软件有很多种,比较优秀的有 Boson、RouterSim、CIM 等。其中 PacketTrace 是目前最流行的,最接近真实环境的模拟软件。可以说,PacketTrace 软件是真实设备的缩影。3.PacketTrace 使用打开 PacketTrace 软件,选择“Custom Made Devices”中的 2621XM 系列路由器。再选择“Connections”连接线中的“Serial DCE” 连接线,按照如图路由器的方式连接好路由器。 然后,按照图示连接好交换机和主机。四、实验过程1.路由器配置模式及其转换 用户模式(user mode) router用户模式(user mo

3、de):该模式下只能查看路由器基本状态和普通命令,不能更改路由器配置。此时路由器名字后跟一个“”符号,表明是在用户模式下。如:router 特权模式(privileged mode) router#特权模式(privileged mode):该模式下可查看各种路由器信息及修改路由器配置。在用户模式下以 enable 命令登陆,此时“”将变成“#” ,表明是在 privileged mode .如:router# 全局配置模式(golbal configuration mode): router(config)#全局配置模式(golbal configuration mode):该模式下可进行更

4、高级的配置,并可由此模式进入各种配置子模式。其提示符如:router(config)# 从各模式下返回,只要不断输入 exit 即可2.按照地址表配置路由器各接口的地址信息 配置路由器 ARouteren /进入特权模式Router#config t /进入全局模式Router(config)#hostname Lab_A /设置主机名Lab_A(config)#interface fa0/0 /进入Fastethernet 0/0子接口模式Lab_A(config-if)#ip address 192.168.10.1 255.255.255.0 /配置Fa0/0接口的IP地址Lab_A(c

5、onfig-if)#no shut /激活Fa0/0接口Lab_A(config-if)#interface serial 0/0 /进入serial 0/0子接口模式Lab_A(config-if)#ip address 192.168.20.1 255.255.255.0 /配置serial 0/0接口的IP地址Lab_A(config-if)#no shut /激活serial 0/0接口Lab_A(config-if)#exit /退出子接口模式,返回全局模式Lab_A(config)#z /即Ctrl+Z的组合键,可直接返回特权模式Lab_A#copy running-config

6、startup-config /保存上面所做的所有配置Destination filename startup-config? EnterLab_A# /特权模式查看当前路由器配置Lab_A#show running-config 配置路由器 BRouterenRouter#config tRouter(config)#hostname Lab_BLab_B(config)#interface fa0/0Lab_B(config-if)#ip address 192.168.30.1 255.255.255.0Lab_B(config-if)#no shutLab_B(config-if)#i

7、nterface serial 0/0Lab_B(config-if)#ip address 192.168.20.2 255.255.255.0Lab_B(config-if)#clock rate 64000Lab_B(config-if)#no shutLab_B(config-if)#interface serial 0/1Lab_B(config-if)#ip address 192.168.40.1 255.255.255.0Lab_B(config-if)#clock rate 64000Lab_B(config-if)#no shutLab_B(config-if)#exitL

8、ab_B(config)#zLab_B#copy running-config startup-configDestination filename startup-config? Enter查看当前路由器配置Lab_B#show running-config 配置路由器 C 配置信息可以参考路由器A进行。3. 配置主机的IP地址每台主机的IP地址信息配置:网关:连接为PC机的路由器F0/0接口的IP地址,如PC0的网关为192.168.10.1IP地址:与网关在同一个子网,PC0的IP地址可为192.168.10.2测试: 在主机上ping各自网关,查看结果,然后主机间相互测试,查看结果。4

9、. 路由器路由信息配置 配置之前路由器 A 的路由信息Lab_A#sh ip route /特权模式下,查看路由表命令C 192.168.10.0/24 is directly connected, FastEthernet0/0C 192.168.20.0/24 is directly connected, Serial 0/0 配置之前路由器 B 的路由信息Lab_B#sh ip routeoutput cutGateway of last resort is not setC 192.168.20.0/24 is directly connected, Serial0/0C 192.16

10、8.40.0/24 is directly connected, Serial0/1C 192.168.30.0 is directly connected FastEthernet 0/0 配置之前路由器 C 的路由信息Lab_C#sh ip routeoutput cutGateway of last resort is not setC 192.168.50.0/24 is directly connected, FastEthernet0/0C 192.168.40.0/24 is directly connected, Serial0/05. 配置路由器路由 配置路由器 A 路由La

11、b_A(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 Lab_A(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2Lab_A(config)#ip route 192.168.50.0 255.255.255.0 192.168.20.2/ip route 目的网络 子网掩码 下一跳地址 配置之后路由器 A 的路由信息Lab_A#sh ip routeoutput cutS 192.168.50.0 1/0 via 192.168.20.2S 192.168.40

12、.0 1/0 via 192.168.20.2S 192.168.30.0 1/0 via 192.168.20.2C 192.168.20.0 is directly connected, Serial 0/0C 192.168.10.0 is directly connected, FastEthernet0/0 配置路由器 B 路由Lab_B(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1Lab_B(config)#ip route 192.168.50.0 255.255.255.0 192.168.40.2 配置之后路

13、由器 B 的路由信息Lab_B#sh ip routeoutput cutS 192.168.50.0 1/0 via 192.168.40.2C 192.168.40.0 is directly connected, Serial0/1C 192.168.30.0 is directly connected, FastEthernet 0/0C 192.168.20.0 is directly connected, Serial0/0S 192.168.10.0 1/0 via 192.168.20.1 配置路由器 C 路由Lab_C(config)#ip route 192.168.30.

14、0 255.255.255.0 192.168.40.1Lab_C(config)#ip route 192.168.20.0 255.255.255.0 192.16.40.1Lab_C(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1 配置之后路由器 A 的路由信息Lab_A#sh ip routeoutput cutC 192.168.50.0 is directly connected, FastEthernet0/0C 192.168.40.0 is directly connected, Serial0/0S 192.

15、168.30.0 1/0 via 192.168.40.1S 192.168.20.0 1/0 via 192.168.40.1S 192.168.10.0 1/0 via 192.168.40.1在路由器B、C特权模式下使用show ip route 命令,查看路由器B、C的路由信息。6. 测试连通性 路由器 A ping 路由器 CLab_A#ping 192.168.50.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.50.1, timeout is 2 seconds:!Success

16、rate is 80 percent (4/5), round-trip min/avg/max = 64/66/68 msLab_A# 路由器C ping路由器ALab_C#ping 192.168.10.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 64/67/72 ms 主机在各主机间使用ping命令,测试主机间的连通性。7. 常用路由器状态查询命令(在特权模

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号