实验4路由器基本配置_第1页
实验4路由器基本配置_第2页
实验4路由器基本配置_第3页
实验4路由器基本配置_第4页
实验4路由器基本配置_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

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

文档简介

1、宁德师范学院计算机系实验报告(学年第 学期)课程名称计算机网络 _实验名称 实验4路由器基本配置专 业 _计算机科学与技术_年 级 _11级 _学号 _姓名_指导教师 _实验日期_实验目的与要求:1、 掌握路由器几种常用配置方法;2、 掌握采用Console线缆配置路由器的方法;3、 掌握采用tel net方式配置路由器的方法;4、 熟悉路由器不同的命令行操作模式以及各种模式之间的切换;5、掌握路由器的基本配置命令;实验设备(环境):Win dows操作系统 Packet Tracer模拟器软件实验内容:1、 新建实验拓扑图2、 熟悉路由器基本设置方式与常用命令3、 在路由器上配置IP地址3、

2、配置路由器远程密码技术原理:路由器的管理方式基本分为两种:带内管理和带外管理。通过路由器的Con sole 口管理路由器属于带外管理,不占用路由器的网络接口,其特点是需要使用配置线缆,近距离配置。第一次配置时必 须利用Con sole端口进行配置。交叉线与直通线的用法:相同设备的连接要用交叉线,不同设备的连接要用直通线,此处的相同 并不是以名称判断,而是以功能划分。如计算机和路由器也被认为是相同设备。实验背景:假设你是某公司新来的网络管理员,公司要求熟悉网络产品,首先要求你登录路由器,了解、掌 握路由器的命令行操作。同时作为网管,你第一次在设备机房对路由器进行了初次配置后,希望以后 再办公司或

3、出差时也可以对设备进行远程管理,现在要在路由器上做适当的配置。实验步骤:路由器基本配置(一):实验拓补图rtouteru1、用标准 con sole 线缆连接计算机的串口和路由器的con sole 口,在计算机上启用超级终端,并配置Router(c on fig-if)#exitRouter(c on fig)#nost name R1R1(co nfig)#e nable password 123456R1(co nfig)#l ine vty 0 4R1(co nfig-lin e)#password abc123R1(c on fig-l in e)#log inR1(co nfig-l

4、i ne)#exitR1(co nfig)#i nterface faO/OR1(co nfig-if)#ip address % In complete comma nd.R1(config-if)#ip address R1(config-ifj#no shutdown/ 开启端口R1(co nfig-if)#e nd/修改置进入特权模式密码/设置telnet远程登录密码/配置路由器的管理IP地址超级终端的参数,使计算机与路由器通过con sole 口建立连接;2、 配置路由器的管理IP地址,并为telnet用户配置用

5、户名和登录口令。 配置计算机的IP地址(与路 由器管理IP地址在同一个网段),通过网线将计算机和路由器相连,通过计算机tel net到路由器上进 行查看配置;3、更改路由器的主机名;4、擦除配置信息、保存配置信息、显示配置信息;5、显示当前配置信息;6、显示历史命令:Routere n Router#c onf t En ter con figurati on comma nds, one per line. End with CNTL/Z.Router(config)#i nterface faO/ORouter(config-if)#no shutdow/ 路由器端口默认关闭,开启faO/

6、O 端口%LINK-5-CHANGED: In terface FastEthernet0/0, cha nged state to up %LINEPROTO-5-UPDOWN: Line protocol on In terface FastEthernet0/0, changed state to up%SYS-5-CONFIG_I: Con figured from con sole by consolePC端登录测试:2 1 、验证进入特权模式的密码Switche n Password:2、验证tel net远程登录密码a. 给PC机设置IP地址192.16S.l-N2&S虐合宮陞若

7、昌.0r 二 TL rj i El 目192 九石曰丄!. with 32 byfofRepl y Heply Raly Replyfxom f EOffLfJfrom12-丄SB_l_li feytes=3212z.呂”七e332r LB .1.1:v3Z15Z .168 _ 1 *1 r bytes=3Ztime=SinsTTL=2S5TTIu=2S5 TTlLi265 TTLr=2S5b、打开 Comma nd PromptP翼ule 百i TfPC Uciisufid L工1. OPCipGQTTfTP Afidxes a _ _zStlblC M&91E. .D

8、a faul Ga9way. :PO-pinngrPmg :s匸acst;cs for- IfiB-l-liPecMes: Snc 4, Rec:i*vd 4, (0* lots).AppxrojclixiaXe xround Xxip t;xsies in mll-seconds;Miniinum = 1ms. Maxiinum = Sms Avexage = 4 msPCCA1EIC 192163,1.1Trying 1SZ.1CB.1.1. .Op ntTaef Ace-eaa V*EcaE a FLPassword, zPasswordsPassword:RA nPassword.:P

9、as s wo I;id. zRA# ahtcw xujiiimg eonf iguontirp疋鼻匸久* - Web 曰row性orCisco IPCommunicatorTfxt EditorPPPOE DirtierCuxzzent confxuxation 二 6S7 bytesvafsXon 1Z2conconconcon1/01 RARARARA(config)#interface serial 2/0(config-if)#ip address (config-if)#dock rate 64000(co

10、nfig-if)#no shutdownFastEthernet0/0 YES manual upupFastEthernet1/0 YES manual updownSerial2/0YES manual downdownSerial3/01、用标准co nsole 线缆连接计算机1的串口和路由器的co nsole 口,用交叉线连接计算机2的fastetrernet 和路由器的fastethernet 0/0 口,用 V.3.5线缆连接来个路由器的 serial 2/0 接口。2、 分别两个配置路由器的管理IP地址,并为telne

11、t用户配置用户名和登录口令。配置计算机的IP地址,通过网线将计算机和路由器相连,通过计算机tel net到路由器上进行查看配置。3、 将两个路由器的主机名分别更改为RA和RB4、显示当前配置信息。5、配置路由器的远程密码。6、显示历史命令:RouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname RARA(config)#interface fastethernet 0/0RA(config-if)#ip address 192.168.1

12、.1 RA(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 up%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to upRA(config-if)#exitRA(config)#inerface serial 2/0%

13、 Invalid input detected at A marker.%LINK-5-CHANGED: Interface Serial2/0, changed state to down RA(config-if)#exitRA(config)#line vty 0 4RA(confi-line)#password starRA(config-line)#loginRA(config-line)#end%SYS-5-CONFIG_l: Configured from console by consoleRA#enRA#config tEnter configuration commands

14、, one per line. End with CNTL/Z. RA(config)#enable secret abcRA(config)#enable password starRA(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRA#show ip interface briefInterfaceIP-Address OK? Method StatusProtocolunassigned YES unset administratively down downFastEthernet4/0unassigne

15、d YES unset administratively down downFastEthernet5/0unassigned YES unset administratively down downRouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname RBRB(config)#interface fastethernet 0/0RB(config-if)#ip address mee

16、h#n#n# TT T.TT.T99999999BBBBBBBBRRRRupFastEthernet0/0 YES manual upupFastEthernet1/0unassigned YES unset administratively down downSerial2/0 YES manual upupSerial3/0unassigned YES unset administratively down downFastEthernet4/0unassigned YES unset administratively down downFast

17、Ethernet5/0unassigned YES unset administratively down downRB#1、验证进入特权模式的密码%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upconfig-if)#exitconfig)#interface serial 2/0 config-if)#ip address

18、 config-if)#no shutdownNK-5-CHANGED: Interface Serial2/0, changed state toRB(config)#end%SYS-5-CONFIG_l: Configured from console by console RB#show ip interface briefInterfaceIP-Address OK? Method StatusProtocolSwitche n Password:2、验证telnet远程登录密码 a. 给PC机设置IP地址IP Configurationb、打开 Comma

19、nd PromptRB(RB(%Lconfi confi NEPnf)#exit!OTO-5-UPDOWN:Line protocol on Interface Serial2/0, changed state to upBrowserCisco TP CommunicatorPPPoE DialerUser Access VerificationPacket Tracer PC Command Line 1.0PCipconfigIP Address . Subnet Mask Default Gateway2SS.255.255 0PCping

20、Pinging with 32 bytes of data:Ping statistics for .二 Packets: Sent = 4, Received = 4. Losr = 0 (0% loss),Approximate round trip times in mxlli-seconds:Minimum = Imsr Maximum = 13ms, Average = 7msPCtelne3 192.168久1Trying _OpenPassword:RAenPassword:RA# sho

21、w rinn.izig config Building configuration-Current configuration : 743 kytesversion 12.2no service time stands lo datetime msec no service time stands debug datetime msecj no service passwordencryptionhostname RAip classlessline con 0 line vxy 0 4 password star loxnendReply from 192.168.1 1二Reply fro

22、m 192.168 1 1.二Reply from :Reply from :bytes32time=13ms TTL255byte勻=32 bytes=32 bytes=32time=8xns tme=lms time=6msTTL=255TTL=2SSTTL=255实验结果分析1在路由器上配置IP地址的时候,进入特权模式和全局模式后,就可以配置路由器 的名称和进入路由器接口模式,但是在要注意接口是0模块/0接口。2、 在开启路由器fastethernet 接口时,要看清楚,连接的路由器的接口,再进行连 接,不能随便接。在进入串行接口时,也需要注意,同样的问题。3、 要验证PC机是否可以通过网线远程登入到路由器上,一定要对路由器配置路由器 远程登入密码和配置路由器特权模式密码。实验

温馨提示

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

评论

0/150

提交评论