实验三网络模拟软件的使用(中)_第1页
实验三网络模拟软件的使用(中)_第2页
实验三网络模拟软件的使用(中)_第3页
实验三网络模拟软件的使用(中)_第4页
实验三网络模拟软件的使用(中)_第5页
已阅读5页,还剩7页未读 继续免费阅读

下载本文档

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

文档简介

1、实验三网络模拟软件的使用(中)-口令和主机名设置一、添加路由器和交换机点击菜单“添加设备-添加一个路由器”添加2621路由器,点击菜单“添加设备-添加一个交换机”添加C2900交换机。用鼠标拖动路由器和交换机至合适位置。如图所示:交换机的初始化当交换机没有进行配置时,接入超级终端会提示是否以对话方式进行配置,初始化内容主要有IP地址、网关、主机名和口令等。配置文件是flash:config.text.双击SwitchA(C2900),出现SWATerminal窗口,如图所示:按Ctrl+Break键,出现:2924交换机进入ROM方式是在上点时按住其mode键,本软件是按Ctrl+Break键

2、。以下是配置及提示信息。(其中带红色框是用户输入命令,其他为提示信息)ROM监控模式,实际当中是先按住交换机的mode键,再开机。SfAsvasvaXmodemfilesystemisavailable.fbshnitbootswitch:resetloadingIOS.#咖咖测删咖翊顾咖Wf#抑咖咖财IW砂咖WWWSystemConfigurationDialogAtanypointyoumayenteraquestionmark?forhelpUsedrl-ctoabortconfigurationdialogatanyprompt.Defaultsettingsareinsquarebr

3、acketsContinuewithconfigurationdialog?yes/no:yEnterIPaddress:!0.65.EnterIPnetmask:255.250.0Wouldyouliketoenteradefaultgatewayaddress?yes:IPaddressofdefaultgateway:Enterhostname|Switch:swaTheenablesecretisaone-waycryptographicsecretusedinsteadoftheenablepasswordwhenitexists.Enterenablesecret:aaaEnter

4、enablesecret:aaaWouldyouliketoconfigureaTelnetpassword?yes:EnterTelnetpasswordsWouldyouliketoenableasaclustercommandswitch?no|:Thefollowingconfigurationcommandscriptwascreated:PressRETURNtogetstarted.路由器的初始化路由器初始化与交换机类似,上电时按Ctrl+Break,进入ROM监控状态rommonresetrommonreset进入ROMS控状态,复位引导疗ROAContinuewithconf

5、igurationdialog?|yes/no:yesAtanypointyoumayenteraquestionmark7*forhelpUsectrl-ctoabortconfigurationdialogatanyprompt.DefaultsettingsareinsquarebracketsWouldyouliketoenterbasicmanagementsetup?yes/no|:yesConfiguringglobalparameters:Enterhostname|Router:raBasicmanagementsetupconfiguresonlyenoughconnect

6、ivityformanagementofthesystemextendedsetupwillaskyoutoconfigureeachinterfaceonthesystemoTheenablesecretisapasswordusedtoprotectaccesstoprivilegedEXECandconfigurationmodes.Thispassword*afterentered*becomesencryptedintheconfigurationEnterenablesecret:aaaTheenablepasswordisusedwhenyoudonotspecifyancnab

7、lesecretpassword?withsomeoldersoftwareversionsandsomebootimagesEnterenablepassword:aaThevirtualterminalpasswordisusedtoprotectaccesstotherouteroveranetworkinterface.Entervirtualterminalpasswords|FastEthernetO/OFastEthernetO/1SerialO/OSerial1/0Enterinterfacenameusedtoconnecttothemanagementnetworkfrom

8、theaboveinterfacesummary:fastethernetO/DConfiguringinterfaceFastEthernetO/O:Usethe100Base-TX(RJ-45)connector?yes:Operateinfull-duplexmode?(no!ConfigureIPonthisinterface?yes:IPaddressforthisinterface:!心皿匚I叵!区|Usedrl-ctoabortconfigurationdialogatanyprompt.Defaultsettingsareinsquarebrackets*LBasicmanag

9、ementsetupconfiguresonlyenoughconnectivityformanagementofthesystemextendedsetupwillaskyoutcconfigureeachinteriacEDnthesystemWouldyouliketoenterbasicmanagementsetup?yes/no:Configuringglobalparameters:EnterhostnameRouter:TheenablesecretisapasswordusedtoprotectaccesstoprivilegedEXECandconfigurationmode

10、s.Thispasswordiafterer)teredbecomesencryptedinlheconfiguration.Enterenablesecret:TheenablepasswordIsusedv/henyoudonotspecifyanenablesecretpasswordswithsomeoldersoftwareversionsandsomebootimages,Enterenablepassword:ThevirtualterminalpasswordisusedIoprotectaccesstotherouteroveranetworkinterface.Enterv

11、irtualterminalpassword:FastElhernetO/OFastEthernetO/1SerialQ/QSeriall/0Enterinterfacenameusedtoconnecttothemanagementnctworkfromtheaboveinterfacesummary;ConfiguringInterfaceFagtEthernetO/O:Usethe10DBase-TXconnector?yes|:Operateinlull-duplexmode?no:ConfigureIPonthisinterface?yes;IPaddressforthisinter

12、face:SubnetmaskforthisInterface:0GototheIOScommandpromptwithoutsavingthisconfig.Returnbacktothesetupv/ithoutsayingthisconfig,SavethiaconfigurationtonvramandexitEnteryourseledion2:PressRETURNtogetstarted!|用命令行设置交换机和路由器的口令和主机名switchenswitch#conft交换机和路由器的口令和主机名的设置基本相同,在提问对话时,回答n则进入命令行的状态。先对交换机进行操作,双击Sw

13、itchA,出现:第一次密码为空进入全局配置模式switch(config)#hostnameswaswitch(config-if)#enablesecretaaa令为aaaswitch(config)#enablepasswordaax令为aaxswitch(config)#lineconsole0;(Rs232)switch(config-line)#passwordaa口令aaswitch(config-line)#login;令验证switch(config-line)#linevty04拟终端virtualttyswitch(config-line)#passworda录口令asw

14、itch(config-line)#login;令验证switch(config-line)#exit;上一层switch(config)#exit;一层设置交换机名设置特权加密口设置特权非密码口进入控制台口设置登录登录要求口进入虚设置登登录要求口返回返回上看配置信swa#shrun息swa#exit;返回命令swaenpassword:;请问输入哪个口(aaa)secret是设置加密口令,一般都使用这种口令设置方法,他优先级高,即没设置secret口令时,非加密口令才有效。路由器的设置与交换机类似,双击RouterA,进入用户模式,例如:routerenrouter#conftrouter(

15、config)#hostnameroaroa(config)#与交换机相同,不在多述。4.清除交换机口令清除交换机口令,实际中是在开机时按住交换机上的mode按钮,在模拟软件中按Ctrl+Break,进入ROM方式switch.配置文件是flash.text,与nvarm:startup-configuse相同。switch:flash_initswitch:dirflash:switch:deleteflash:config.textswitch:deletenvram:startup-configureswitch:boot或switch:reset因为没有了配置文件,所以重新引导后会提示

16、对话,要求进行配置。有些情况下,最好用改名的方法,修改口令后现将原配置恢复,在重新设置口令后存盘。例如:switch:flash_initswitch:renameflash:config.textflash:config.bakswitch:bootswitchenswitch#copyflash:config.bakflash:running-configureswitch#conftswitch(config)#ensecretaaaswitch(config)#exitswitch#w或switch#copyrunstartswitch#reload清除路由器口令路由器2621的配置文件不让删除和改名,需要采用设置寄存器开关的方法实现。实际当中是在上电时,按Ctrl+Break。在软件模拟中,双击RouterA进入终端模式,再按Ctrl+Break进入rommon状态,操作如下:rommon;进入ROMS控状态rommonconfreg0 x2142;跳过配置文件适用26xx36xx45xxrommonreset;重新引导,等效于重开机Continuewithconfigurationdialog?yes/no:norouterenrouter#conftrouter(config)#e

温馨提示

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

评论

0/150

提交评论