实验五路由器的基本配置演示文稿_第1页
实验五路由器的基本配置演示文稿_第2页
实验五路由器的基本配置演示文稿_第3页
实验五路由器的基本配置演示文稿_第4页
实验五路由器的基本配置演示文稿_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

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

文档简介

1、运城学院 计算机科学与技术系1实验四实验四 路由器的基本配置路由器的基本配置 主主 讲讲 人:人: 杨杨 战战 武武运城学院运城学院 计算机科学与技术系计算机科学与技术系运城学院 计算机科学与技术系2路由器工作流程路由器工作流程IPETHPPP以太网口以太网口串口串口IPPPPETH串口串口以太网口以太网口协议封装协议封装路由选择路由选择协议转换协议转换路由器路由器路由器路由器传送传送拆包拆包接收接收发送发送工作过程工作过程运城学院 计算机科学与技术系3路由器的结构路由器的结构硬件组成硬件组成CPU(处理器)RAM(存储正在运行的配置文件)FLASH(负责保存OS的映像和路由器的微码)NVRA

2、M(保存配置件)ROM(加载OS)接口(完成路由器与其它设备的数据交换) 软件结构软件结构BOOT ROM:主要功能是路由器加电后完成有 关初始化工作,并向内存中加入操作系统代码 COMWARE:H3C路由器上运行的软件平台运城学院 计算机科学与技术系4AR28-31备备份份口口配配置置口口运城学院 计算机科学与技术系5配置路由器配置路由器l通过通过console口配置口配置l通过拨号远程配置通过拨号远程配置l通过通过telnet方式配置方式配置l通过通过FTP方式传送配置文件方式传送配置文件运城学院 计算机科学与技术系6通过通过console口配置口配置建立本地配置环境配置口配置口(Cons

3、ole)配置口(配置口(console)电缆)电缆R232 串口串口 运城学院 计算机科学与技术系7创建超级终端(创建超级终端(II)运城学院 计算机科学与技术系8选择串口(选择串口(III)运城学院 计算机科学与技术系9端口设置(端口设置(IV)运城学院 计算机科学与技术系10进入路由器配置界面进入路由器配置界面 User interface Con 0 is available. Press ENTER to get started. Router console运城学院 计算机科学与技术系11用户模式下常用命令用户模式下常用命令l Router ?Exec commands: Sessi

4、on number to resume connect Open a terminal connection disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC logout Exit from the EXEC ping Send echo messages resume Resume an active network connection sho

5、w Show running system information ssh Open a secure shell client connection telnet Open a telnet connection terminal Set terminal line parameters traceroute Trace route to destination运城学院 计算机科学与技术系12特权模式下常用命令特权模式下常用命令l Router enablel Router #Exec commands: Session number to resumeclock Manage the sy

6、stem clock configure Enter configuration mode connect Open a terminal connection copy Copy from one file to another debug Debugging functions (see also undebug) delete Delete a file enable Turn on privileged commands erase Erase a filesystem exit Exit from the EXEC no Disable debugging informations

7、ping Send echo messages reload Halt and perform a cold restarttelnet Open a telnet connection traceroute Trace route to destination write Write running configuration to memory, network,运城学院 计算机科学与技术系13全局配置模式全局配置模式lRouter #configure terminal Enter configuration commands, one per line. End with CNTL/Z

8、.lRouter(config)#接口配置模式接口配置模式Router(config)#interface f1/0Router(config-if)#运城学院 计算机科学与技术系14 单臂路由配置实验组网拓扑图单臂路由配置实验组网拓扑图 运城学院 计算机科学与技术系15Router#configure terminalRouter(config)#interface f1/0Router(config-if)#inter f1/0.1 /定义子接口f1/0.1 Router(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip

9、address /指定以太网子接口属于VLAN1,此命令应用在以太网子接口上。只有配置了该命令之后,以太网子接口才会根据配置的VLAN ID 号在以太网帧头中嵌入VLAN 标签,与该网口相连的交换机接口才能正确处理接收到的帧。Router(config-if)#inter f1/0.2 /定义子接口f1/0.2Router(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip address /指定以太网子接口属于VLAN2Route

10、r(config-if)#inter f1/0.3 /定义子接口f1/0.3Router(config-subif)#encapsulation dot1Q 3Router(config-subif)#ip address /指定以太网子接口属于VLAN3步骤一步骤一 路由器的配置路由器的配置运城学院 计算机科学与技术系16Switchenable Switch#configure terminal Switch(config)#vlan 2 Switch(config)#interface range f0/1-5 Switch(config

11、-if-range)#switchport access vlan 2 Switch(config)#vlan 3 Switch(config)#interface range f0/7-11 Switch(config-if-range)#switchport access vlan 3 Switch(config)#inter e0/24 Switch(config-if)#switchport mode trunk 设为trunk Switch(config-if)#switchport trunk allowed vlan all步骤二步骤二 交换机的配置交换机的配置运城学院 计算机科

12、学与技术系17步骤三步骤三 工作站配置工作站配置Vlan1中的工作站中的工作站Ip 地址:254子网掩码:网 关: Vlan2中的工作站中的工作站Ip 地址:254子网掩码:网 关: Vlan3中的工作站中的工作站Ip 地址:254子网掩码:网 关: 运城学院 计算机科学与技术系18C:Documents and SettingsAdministratoripconfigIP Address. .

13、. . . . . . . . . . : 2Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . : C:Documents and SettingsAdministratorping Pinging with 32 bytes of data:Reply from : bytes=32 time10ms TTL=255Reply from : bytes=32

14、 time10ms TTL=255Reply from : bytes=32 time10ms TTL=255Reply from : bytes=32 time10ms TTL=255Ping statistics for :Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0ms步骤四步骤四 在在Vlan2V

15、lan2中的工作站测试连通性中的工作站测试连通性运城学院 计算机科学与技术系19Router#show 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 exte

16、rnal type 2, E - EGP i - 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 - ODR P - periodic downloaded static routeGateway of last resort is not set /24 is subnetted, 3 subnetsC is directly connected, FastEthernet0/0C is directly connected, FastEthernet0/0.1C is directly connected, Fas

温馨提示

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

评论

0/150

提交评论