欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOCX文档下载  

    实验04 交换机的端口配置与管理及Telnet远程登陆配置.docx

    • 资源ID:5174776       资源大小:252.08KB        全文页数:11页
    • 资源格式: DOCX        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    实验04 交换机的端口配置与管理及Telnet远程登陆配置.docx

    南华大学计算机科学与技术学院实验报告课程名称实验名称计算机网络原理<2020-2021学年度第二学期)交换机的端口配置与管理及Telnet远程登陆配置姓名:学号:专业:班级:地点:教师:一、实验名称交换机的端口配置与管理及Telnet远程登陆配置二、实验目的1. 掌握交换机基本信息的配置管理。2. 掌握采用Telnet方式配置交换机的方法。三、实验内容和要求1. 了解交换机端口配置命令行1. 新建Packet Tracer拓扑图2. 了解交换机端口配置命令行2. 交换机的Telnet远程登陆配置1. 新建Packet Tracer拓扑图2. 配置交换机管理IP地址3. 配置用户登陆密码四、实验环境Windows10 操作系统下的 Cisco Packet Tracer6.2五、操作方法与实验步骤1. 交换机端口配置与管理1. 新建Packet Tracer拓扑图2了解交换机命令行1. 修改交换机名称(hostname X)2. 配置交换机端口参数(speed,duplex)3. 查看交换机版本信息(show version)4. 查看当前生效的配置信息(show running config)5. 查看保存在NVRAM中的启动配置信息(show startup-config)6. 查看端 口信息 show interface7. 查看交换机的MAC地址表show mac-address-table8. 选择某个端口 Switch(config)# interface type mod/port (type 表示端口类型,通 常有 ethernet、Fastethemet、Gigabithemet) (mod 表示端口所在的模块,port 表示在 该模块中的编号)例如interface fastethernet0/19. 选择多个端口 Switch(config)#interface type mod/startport-endport10. 设置端 口通信速度 Switch(config-if)#speed 10/100/auto11. 设置端口单双工模式 Switch(config-if)#duplex half/full/auto12. 交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全13. switch(config)# enable password *设置进入特权模式的密码14. switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所 需的密码15. switch(config)# line console 0示配置控制台线路,0是控制台的线路编号16. switch(config-line)# login用于打开登录认证功能17. switch(config-line)# password 5iisj /设置进入控制台访问的密码18. 若交换机设置为auto以外的具体速度,此时应注意保证通信双方也要有相同的 设置值2. 交换机的Telnet远程登陆配置1. 新建Packet Tracer拓扑图2. 配置交换机的IP地址1.Switch(config)# int vlan 12.Switch( config-if)#ip address *IP* *submask*3. 配置用户登录密码1. Switch(config)# enable password *设置进入特权模式的密码2.Switch(config)# line vty 0 43.Switch(config-line)#password qwerty4.Switch(config-line)# login六、实验数据记录和结果分析1.交换机端口配置与管理1.新建Packet Tracer拓扑图pc-PT PCI2了解交换机命令行1.修改交换机名称(hostname X)Switch>enableSwitch#Switch#conf tEnter confi gar a t i on conmands f one per line. End with CNTL/Z.Switch(config)#hostname XX(config)#Xconfig)#2.配置交换机端口参数(speed, duplex)X|config#X | conf ig#interface faO/1X|config-if#speed 100X|config-if#duplex fullX | confxg-if)#%LINK-5-CHANGED: Intelface FastEtherneCO/1, changed stats to dowr%LINEPROTO-5-QPDOWK: Line protocol on Interface FastEthernetQ/lf changed state to downX config-if#3.查看交换机版本信息(show version)4. 生效的配置信息(show running config)X>enableKishow iunnina-corr1aEuildirg c onfign rat i on.cuiieDL GonriauraLEion : 1062 bytesveraion 12.2no service cinescarnths Log date time1 nsec nc service tinestanps debug datecxnce msec eic ssrvice pa 3 swiDrd- encz vtxonihcstname KspannxEig-treE mode pvstinterface FastEthexnetO/1 duplex full speed 100:int e rface Fas tE theme cD/2 iinterface FastEtheinecD/3interfaceixitez.fa.GeiinterfaceinterfaceFastErneineca/-Fsa tE thexne: tD/5FastEthexnecD/FastEtheznetO/7FasleLDexnecd/e5. 查看保存在NVRAM中的启动配置信息(show startup-config)Xshow starcup-configUsing 102 bytesversion 12 2no service tirnestanps Ioqt datetime msec no service elite st anps debug datetme ir.se c no service passwxd-enciyptiontio5tri!a.e Xspanning-tree mode pvst ,int erf ace FastE the met 0/1 duplex finll speed 100 ,interface FastEthernetO/2 ,int erf ace FastE the met 0 / 3 Hors6. 查看端口信息 show interfaceX#slhow interfaceFa s tE the me 10 /I is d.ownf line protccol is down (disabledHardware is Lance7 address is 00070d0.5901 (bia 0060.70dd.5301 bw laoooo DLr looo usecf reliability 255/255r txload 1/255, ritload 1/255Encap sill a t i on ARPAf loopback not set Keepalive set 10 sec Ful 1 - diipl exf 10 OMID/s xnpiiic flow-aontroL is offf o'utpiiit flow-contro 1 ±s off ARP type: ARPA, ARP Tiir.EOQt 04:00:00Last input 00:00:08, output 00:00:05f output hang neverLast clearing of "show iDteifaceF, coimteis nevei:Inpiac queue : Q/7Sf 0/0 (size/ittaix/drops/f lusBes ; Total oiiitput drops: 0Queueing strategy: fifOxitput queue : 0/40 (size/nax5 minute input rste 0 bits/m亡j d packet5/mwu5 minxite output rate 0 bits/sec, 0 packets/ec 95-6 packets inputf 193351 bytes, 0 no buffer Received 956 broadcastsr 0 rwit-Sr 0 giants, 0 throttles 0 irpiiL errors, a CRCf 0 rramef 。 ovexrunf 0 ignored., 0 abort O watchdogr O multicastr O pause input0 input packets with dribbls condition detected 2357 packets outputf 263570 bytesf 0 underinns Mors-7. 查看交换机的MAC地址表show mac-address-tableX>enat»leXshow mac-address-tableMac Address TableVian Mac AddressTypePortsX#8. 选择某个端口 Switch(config)# interface type mod/port (type 表示端口类型,通常 有 ethernet、Fastethemet、Gigabithemet) (mod 表示端口所在的模块,port 表示 在该模块中的编号)例如interface fastethernet0/1匚 J; * J T 3土 1 * J 昌 J JAUUUBliB L、J .iBm 0 J 右 iBLJ X (config) interface tast-etlieznetO/_LX(co.±ig-±± #9. 选择多个端口 Switch(config)#interface type mod/startport-endportX(config-if)exit乂 ( config) #lnt erf ace f asteth.ernetO/1X ( conf ig-if) #exi_tX(config)ace fastetAernetO/2X(canfig-if#10. 设置端口通信速度 Switch(config-if)#speed 10/100/autoX(conlig-if)#speed 100X(con±ig-if#11. 设置端口单双工模式 Switch(config-if)#duplex half/full/autoX (config-i± dup 1 ex f j.ll X(config-i±)丰12. 交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性13. switch(config)# enable password *设置进入特权模式的密码Xpassword (jweity14. switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需 的密码Xconfig#line console 0Xconfig-line)password qwerty15. switch(config)# line console 0示配置控制台线路,0是控制台的线路编号X(config#line console 0X (con±ig-J.ine)芋16. switch(config-line)# login用于打开登录认证功能X(config-line)#login17. switch(config-line)# password 5iisj /设置进入控制台访问的密码X (config-line password qwerty X(Gonfig-line)#18.若交换机设置为auto以外的具体速度,此时应注意保证通信双方也要有相同的 设置值2. 交换机的Telnet远程登陆配置1.新建Packet Tracer拓扑图2. PC0设置: 192.168.1.2 255.255.255.0 192.168.1.1Physical Config Desktop Custom Interface3. PC0设置:192.168.1.3 255.255.255.0192.168.1.1DesktopCustcn interfacePhysical Config3. 配置交换机的IP地址PC0桌面上的终端Switch>En进入特权模式Switch#conf t进入全局配置模式Switch(config)#inter vlan 1(默认交换机的所有端口都在VLAN1中)/创建并 进入VLAN 1的接口视图Switch(config-if)#ip address 192.168.1.1 255.255.255.0/在 VLAN 1 接口上配置 交换机远程管理的IP地址Switch(config-if)#no shutdown /开启接口Switch(config-if)#exit/回 到全局配置模式Switch(config)#line vty 0 4/进入远程登录用户管理视图,0-4个用户Switch(config-line)#login /打丁开登录认证功能Switch(config-line)#password qwerty 配置远程登录的密码为 qwerty, 密 码明码显示Switch(config-line)#privilege level 3 /配置远程登录用户的权限为最高级 别权限3Switch(config-line)#end/退出到特权模式Switch#show run显示当前交换机配置情况Switch>cn Switchfconf t Enter conf igiar:ation cornnijaiidg f one pei line . End witlh. CNTL/Z. Swi t cii (conf ig p * int er vlan 1 Switch(config-if)tip address 192.1.1 255.255.255. Switch(config-iffno shutdown适 Login dlsaJoltci orl_neUIlEilpasswcnl'isSeL冬 Lcgin disabled dti1 iineIlTItil1 password 1XSset适 Login dlsaiJDltd. orUIlLilpasswcrd'isS&L% Lcain disabled on1 ; neuntilpassword'isget% Lcgln disakjled dxl11 :ie5until,pesswcrd'issetSwitcn(coniig"line vty D 4Switch(config-1ine)#LoginSwitch (confitj-1 inesswcrd ciwertySwi t oil (config -1 ine) #px ivi 1 eg e le vel 3Swi t ch (conf ia-1 ine # sndSwitch.#%STS-5-COUFIG_I: Configured fiom. console by consoleSwitchfshow runBuilding configioration.Curzent configTiiration s 1092 bytesversion 12 t 2do service tiir.esE己log datetime ziasEC no service txmestanrps debug datetime nsec no service password-encxyp'EioniiiosLnant swiucnapainning- c i ee DQ-ode pvst ,Interface FastEthexn.e10/1interface FastEthezne10/2inter fa ce Fas tE the ma 10/ 3MorePC0桌面选项卡中的CMD,命令提示符ping 192.168.1.1/成功以后,再做下一步telnet 192.168.1.1输入password:gwer(y登录成功,进入用户模式Switch#进入特权模式< PCO;Physical config Desktop custom interfacs<一 1ICommand PromptPC>ping 192.1E8.1.1Pinging 15*2.1E8.1.1 -with 32 bytes d± data :Reply fromReply fromReply fromRsplv from192.1dB»1»1192.15S.1.1192.159.1.1192.155.1.1P1XLQE口匚 1SZ . I'C'S . 1.1;Packets; Sent 口 Received = T. Lost = 0 (0 los)r ApproKimate1 round trip tiraes in Juilli-sECond-s :Minimiujn = Qm5r HaKiTnuun & Qg. AversgT = (JimPC>celnet 192-163.1.1Trying 152.IfiS.1.1 -.CpenUser Access VeriticaizionPasswDzd!Sw± c ctifPC1桌面选项卡中的CMD,命令提示符ping 192.168.1.1/成功,再做下一步telnet 192.168.1.1 输入 password:qwerty Switch#进入特权模式琴*- XPhysicalCanfigDesktopCustom InterfaceAr-七、实验体会、质疑和建议通过这个实验,更加了解了交换机配置的基本方法。通过进行交换机的端 口配置与管理,学到了一些新的交换机命令,如:怎样查看交换机的MAC地址表、 设置端口单双工模式、修改交换机名称等。通过配置虚拟机,启动telnet并进行远 程登陆目标主机实验,了解到了 telnet是最原始的一种远程管理方式之一,学 会了如何进行telnet配置部署,以及如何登陆目标主机,深入体会到了 telnet 的原理,学习telnet的相关配置对于理解交换机的远程登陆管理有很大的帮助。 为以后学习铺平道路。学到了很多,受益匪浅。

    注意事项

    本文(实验04 交换机的端口配置与管理及Telnet远程登陆配置.docx)为本站会员(小飞机)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开