实验一 路由器基本命令配置(基于Cisco Packet Tracer仿真实验).doc_第1页
实验一 路由器基本命令配置(基于Cisco Packet Tracer仿真实验).doc_第2页
实验一 路由器基本命令配置(基于Cisco Packet Tracer仿真实验).doc_第3页
实验一 路由器基本命令配置(基于Cisco Packet Tracer仿真实验).doc_第4页
实验一 路由器基本命令配置(基于Cisco Packet Tracer仿真实验).doc_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

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

文档简介

实验一 路由器基本命令配置一、实验目的1、掌握路由器各种模式的切换;2、掌握路由器不同登陆方式口令的设置;3、掌握端口IP地址设置等常用命令的使用。二、 实验环境三、 实验步骤1、按照实验拓扑图,使用交叉网线连接PC1与路由器RTA的fa0/0端口。2、打开路由器RTA电源,启动路由器,观察路由器启动信息,提示是否进入系统配置对话框。System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)Copyright (c) 2000 by cisco Systems, Inc.cisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memorySelf decompressing the image :# OK Restricted Rights LegendUse, duplication, or disclosure by the Government issubject to restrictions as set forth in subparagraph(c) of the Commercial Computer Software - RestrictedRights clause at FAR sec. 52.227-19 and subparagraph(c) (1) (ii) of the Rights in Technical Data and ComputerSoftware clause at DFARS sec. 252.227-7013. cisco Systems, Inc. 170 West Tasman Drive San Jose, California 95134-1706Cisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)Technical Support: /techsupportCopyright (c) 1986-2005 by cisco Systems, Inc.Compiled Wed 27-Apr-04 19:01 by miwangcisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory.Processor board ID JAD05190MTZ (4292891495)M860 processor: part number 0, mask 49Bridging software.X.25 software, Version FastEthernet/IEEE 802.3 interface(s)32K bytes of non-volatile configuration memory.63488K bytes of ATA CompactFlash (Read/Write) - System Configuration Dialog -Continue with configuration dialog? yes/no:实验结果分析:3、在路由器RTA上,输入no,并按回车键,进入路由器用户模式。Continue with configuration dialog? yes/no: noPress RETURN to get started!Router实验结果分析:4、在路由器RTA上,输入enable命令,由用户模式进入特权模式,输入exit命令,由特权模式退回到用户模式。Routerenable Router#exitRouter con0 is now availablePress RETURN to get started.Routerenable Router#实验结果分析:5、在路由器RTA上,输入configure terminal命令由特权模式进入全局配置模式,利用hostname命令将路由器的名称改为RTA。Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname RTARTA(config)#实验结果分析:6、在路由器RTA上,利用enable password命令设置由用户模式进入特权模式的密码;设置完成后,退回到用户模式,再进入特权模式,验证设置的密码是否生效。RTA(config)#enable password ciscoRTA(config)#exitRTA#%SYS-5-CONFIG_I: Configured from console by consoleRTA#exitRTA con0 is now availablePress RETURN to get started.RTAenable Password: RTA#实验结果分析:7、在路由器RTA上,输入configure terminal命令进入全局配置模式,输入line console 0,并利用password、login命令设置由控制台连接路由器的密码;设置完成后,退出路由器设置模式,然后再进入用户模式,验证进入用户模式的密码是否生效。RTA#configure terminal Enter configuration commands, one per line. End with CNTL/Z.RTA(config)#line console 0RTA(config-line)#password ciscoRTA(config-line)#loginRTA(config-line)#endRTA#%SYS-5-CONFIG_I: Configured from console by consoleRTA#exitRTA con0 is now availablePress RETURN to get started.User Access VerificationPassword: RTAenable Password: RTA#实验结果分析:8、在路由器RTA上,输入configure terminal命令进入全局配置模式,输入interface FastEthernet 0/0进入fa0/0端口模式,利用ip address命令配置fa0/0端口ip地址为54/24,输入no shutdown命令激活fa0/0端口。RTA#configure terminal Enter configuration commands, one per line. End with CNTL/Z.RTA(config)#interface fastEthernet 0/0RTA(config-if)#ip address 54 RTA(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRTA(config-if)#endRTA#实验结果分析:9、在PC1上,设置PC1的IP地址为/24,网关为路由器RTA的fa0/0端口ip地址54,在PC1上ping 54,可以ping通,在PC1上利用telnet命令登陆路由器,登陆不成功。PCping 54Pinging 54 with 32 bytes of data:Reply from 54: bytes=32 time=63ms TTL=255Reply from 54: bytes=32 time=31ms TTL=255Reply from 54: bytes=32 time=31ms TTL=255Reply from 54: bytes=32 time=31ms TTL=255Ping statistics for 54: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 31ms, Maximum = 63ms, Average = 39msPCPCtelnet 54Trying 54 .OpenConnection to 54 closed by foreign hostPC实验结果分析:10、在路由器RTA上,进入全局配置模式,输入line vty 0 4,并利用password命令设置远程登陆路由器时要输入的密码。RTA#configure terminal Enter configuration commands, one per line. End with CNTL/Z.RTA(config)#line vty 0 4 RTA(config-line)#password ciscoRTA(config-line)#endRTA#实验结果分析:11、在PC1上利用telnet命令登陆路由器,输入第10步设置的密码,登陆成功,进入路由器RTA用户模式,输入enable命令及相应密码,进入路由器RTA特权模式。PCtelnet 54Trying 54 .OpenUser Access VerificationPassword: RTAenable Password: RTA#实验结果分析:12、在路由器RTA特权模式,利用show running-config查看路由器当前配置,利用write命令保存路由器当前配置。RTA#show running-config Building configuration.Current configuration : 503 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname RTA!enable password cisco!ip name-server !interface FastEthernet0/0 ip address 54 duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!ip classless!line con 0 password cisco loginline vty 0 4 password cisco login!endRTA#write Building configuration.OKRTA#实验结果分析:13、在路由器RTA上,执行show version、show ip route、show interfaces等常用命令。RTA#show version Cisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)Technical Support: /techsupportCopyright (c) 1986-2005 by cisco Systems, Inc.Compiled Wed 27-Apr-04 19:01 by miwangImage text-base: 0x8000808C, data-base: 0x80A1FECCROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)Copyright (c) 2000 by cisco Systems, Inc.ROM: C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)System returned to ROM by reloadSystem image file is flash:c2600-i-mz.122-28.bincisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory.Processor board ID JAD05190MTZ (4292891495)M860 processor: part number 0, mask 49Bridging software.X.25 software, Version FastEthernet/IEEE 802.3 interface(s)32K bytes of non-volatile configuration memory.63488K bytes of ATA CompactFlash (Read/Write)Configuration register is 0x2102RTA#RTA#show ip route Codes: 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, 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, 1 subnetsC is directly connected, FastEthernet0/0RTA#RTA#show interfaces fastEthernet 0/0FastEthernet0/0 is up, line protocol is up (connected) Hardware is Lance, address is 0001.c701.9001 (bia 0001.c701.9001) Internet address is 54/24 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Tim

温馨提示

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

评论

0/150

提交评论