路由器基本配置BasicConfigurationofRou.ppt_第1页
路由器基本配置BasicConfigurationofRou.ppt_第2页
路由器基本配置BasicConfigurationofRou.ppt_第3页
路由器基本配置BasicConfigurationofRou.ppt_第4页
路由器基本配置BasicConfigurationofRou.ppt_第5页
已阅读5页,还剩37页未读 继续免费阅读

下载本文档

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

文档简介

路由器基本配置 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 Routerenable 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 Interface Mode ) 3. Router1(config-if)# clock rate 64000 DCE端配置时钟(Set clock rate if a DCE cable is connected ) 4. Router1(config-if)# ip address 192.168.100.1 255.255.255.0 配置接口IP地址和网络掩码(Specify the Interface Address and Subnet Mask ) 5. Router1(config-if)# no shut 开启接口(Turn on the Interface ),配置以太口(Configuring an Ethernet Interface ),1. Router1# config t 2. Router1(config)# interface fa0/0 进入以太口模式(Enter Ethernet Interface Mode ) 3. Router1(config-if)# ip address 10.1.1.1 255.255.255.0 配置接口IP地址和网络掩码(Specify the Interface Address and Subnet Mask ) 4. Router1(config-if)# no shut 开启接口(Turn on the Interface ),配置接口描述(Configuring Interface Description ),1. 接口描述可以帮助网络用户记住特定的关于接口的信息 A description of an interface can help a network user remember specific information about the interface. 2. 描述仅仅是对接口的一个标记。 The description is meant solely as a comment about the interface. Eg1 interface fa0/0 description LAN Engineering, Bldg.2 Eg2 interface serial 0/0 description ABC network 1, Circuit 1,Router 端口状态(Status of Interface),配置登录提示信息(Configuring Login Banners ),Router1(config)#banner motd #Welcome to Shenzhen Polytechnic# “#”:特定的分隔符号 “#”:a space and a delimiting character,Show命令(Show Command),1.show version 这个命令可以查看IOS版本号,已启动时间 ,flash中的IOS的文件名,router里面共有什 么的端口,寄存器的值等等。 2.show protocol 显示与ip 有关的路由协议信息,各个端口的 情况。 3.show flash 查看flash中的内容,IOS的长度,文件名, 剩余空间,总共空间。 4.show running-config 查看路由器当前的配置信息。 5.show startup-config 查看nvram 中的路由器配置信息。 6.show interface 查看路由器上的各个端口的状态信息。 7.show controller 查看接口控制器的状态,可看到连接的是 DTE还是DCE 8.show history 查看history buffer 里面的命令列表 terminal history size 设置history buffer 里面保存命令的个数。最 大允许值为256,高级组合命令(Enhanced Editing Commands ),Ctrl+A:光标回到命令行的最开头(move to the beginning of the command line) Ctrl+E:光标回到命令行的最后(move to theend of the command line) Ctrl+B:光标向左移一字符位置(move back one character) Ctrl+F:光标向右移一字符位置(move froward one character) 可以使用terminal no editing命令来使组合键失效,要使组合键重新生效,可用terminal editing命令 To disable enhanced editing mode, type terminal no editing at the privileged EXEC mode prompt.,高级组合命令(Enhanced Editing Commands ),Ctrl+P(or 上箭头):使用上一条用过的命令(recal

温馨提示

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

评论

0/150

提交评论