资源描述
Slide Title,Body Text,Second Level,Third Level,Fourth Level,Fifth Level,2006,Shenzhen Polytechnic.All rights reserved.,*,路由器基本配置,Basic Configuration of Router,深圳职业技术学院计算机系网络专业,教学目标(,Objectives,),1.,路由器功能(,Function of Router,),2.,路由器组成(,Router Components,),3.,超级终端会话属性,(,HyperTerminal Session Properties,),4.Router,配置模式,(,Router Configuration Mode,),5.,路由器基本配置,(,Basic Configuration of Router,),Router,功能(,Function of Router,),Router,是第三层的网络设备(,Router is layer 3 device,):,1.,路由选择和交换(,Routing and Switching,),2.,网络分段(,Network Segment,),3.,流量控制(,Flow Control,),4.,隔离广播(,Isolate Broadcast,),5.,广域网连接(,WAN Connection,),路由选择和交换(,Routing and Switching,),网络分段(,Network Segment,),广域网连接(,WAN Connection,),路由器内部组成(,Router Internal Components,),RAM/DRAM,1.,主要存储路由表、,ARP,缓存、快速交换表和包队列等,Stores routing tables,ARP cache,fast-switching cache,and packet hold queues;,2.,存储正在运行的配置文件,RAM also provides temporary and/or running memory for a routers configuration file while the router is powered;,3.,掉电或重启动内容丢失,RAM content is lost during a power down or restart,非易失性,RAM,(,NVRAM,),1.,非易失性,RAM,存储配置文件的备份,Non-volatile RAM stores the routers backup/startup configuration file;,2.,掉电或重启动,NVRAM,内容不丢失,NVRAM content is retained during power down or restart,Flash,1.Flash,是可擦除,可重新编程的,ROM,它存储操作系统映像文件和微代码,Erasable,reprogrammable ROM that holds the operating system image and microcode;,2.Flash,可以软件升级,不需要更换芯片,Flash memory enables software updates without removing and replacing processor chips;,3.,掉电或重启动,Flash,内容不丢失,Flash content is retained during power down or restart;,4.Flash,可以存储多个版本的,IOS,软件,Flash memory can store multiple versions of IOS software,ROM,1.ROM,包含开机自检程序、启动程序和操作系统软件,ROMcontains power-on diagnostics,a bootstrap program,and operating system software;,2.,升级,ROM,中的软件需要更换路由器主板上的芯片,Software upgrades in ROM require removing and replacing chips on the routers motherboard,2600,系列路由器内部构成(,Internal Components of 2600 Router,),2600,系列路由器外观(,External Connectors on 2600 Router,),计算机连接到控制台接口(,Computer Connect to Console Port,),在计算机上配置超级终端软件(,Configure HyperTerminal software on the PC,),超级终端会话属性(,HyperTerminal Session Properties,),配置路由器的方式(,External Configuration Source,),路由器初始配置必须通过控制台接口进行。,When the router is first put into service,we must configure it by console port.,Router,配置模式(,Router Configuration Mode,),1.,用户模式(,user mode,),2.,特权模式(,privileged mode,),#,3.,全局模式 (,global config mode,),router(,config,)#,4.,子模式(,sub-mode,),接口模式,(,interface mode,),:,router(,config-if,)#,线路模式,(,line mode,),:,router(,config-line,)#,路由模式,(,router mode,),:,router(,config-router,)#,5.Setup,模式,6.RXBOOT,模式,7.ROMMON,模式,用户模式,(,User Mode,),这是一种“只能查看”的模式,用户只能查看一些有关路由器的信息,不能更改。,This is a look-only mode in which the user can view some information about the router,but can not make changes.,特权模式(,Privileged Mode,),这种模式支持调试和测试命令,支持对交换机的详细检查、对配置文件的操作,并且可以由此进入配置模式。,This mode supports the debugging and testing commands,detailed examination of the switch,manipulation of configuration files,and access to configuration modes.,全局配置模式(,Global Configuration Mode,),这种模式提供了强大的单行命令,可以完成简单的配置任务。,This mode implements powerful one-line commands that perform simple configuration tasks.,Setup,模式(,Setup,Mode,),这种模式在控制台提供了交互式的对话,帮助新的用户创建初次的基本的配置。,This mode presents an interactive prompted dialog at the console that helps the new user create a first-time basic configuration.,RXBOOT,模式(,RXBOOT,Mode,),1.,这是你可以使用的维护模式,可以用来恢复丢失的密码。,This is the maintenance mode that you can use,among other things,to recover from lost passwords.,2.2600,系列路由器没有此模式,2600 routers have not this mode,。,ROMMON,模式(,ROMMON,Mode,),这种模式可以用来恢复密码和升级,IOS.,This mode use to recover from lost passwords and update IOS software,。,Router,工作模式转换(,Change Router Configuration Mode,),Router,Router,enable,Router#,Router#,configure terminal,Router(config)#,Router(config)#,interface fa0/0,Router(config-if)#,exit,Router(config)#,router rip,Router(config-router)#,end,Router#,disable,Router,工作模式切换命令注释(,Notes,of Changing Router Mode Command,),进入特权命令状态,enable,退出特权命令状态,disable,进入设置对话状态,setup,进入全局设置状态,config terminal,退出全局设置状态,end,进入端口设置状态,interface type slot/number,进入线路设置状态,line type slot/number,进入路由设置状态,router protocol,退出局部设置状态,exit,命名路由器(,Name the Router,),Router,(config)#,hostname,Lab-A,配置,enable,密码(,Configuring Enable Passwords,),Lab-A(config)#enable,password,cisco,show run,enable password,cisco,(,明文,未加密,),Results in:,配置,enable,密码(,Configuring Enable Passwords,),Lab-A(config)#enable,secret,cisco,Show run,enable secret 5$1$emBK$WxqLahy7YO,(,密码被加密,),Results in:,配置控制台密码(,Configuring Console Passwords,),router1(config)#line console 0,router1(config-line)#password cisco,router1(config-line)#login,配置,VTY,密码(,Configuring VTY Passwords,),router1,(config)#line vty 0 4,0 4:,允许,5,个终端同时远程登录,0 4:(,permit 5 terminals login at the same time,),router1,(config-line)#password cisco,router1,(config-line)#login,router1,(config-line)#priv level 15,设置登录优先级(,set priority,),配置串行口(,Configuring a Serial Interface,),1.Rouer1#config t,2.Router1(config)#interface s0/0,进入串行口模式(,Enter Serial
展开阅读全文