




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 2006, Shenzhen Polytechnic. All rights reserved.1路由器基本配置路由器基本配置Basic Configuration of Router深圳职业技术学院计算机系网络专业深圳职业技术学院计算机系网络专业 2006 Shenzhen Polytechnic. All rights reserved.2教学目标(教学目标( Objectives Objectives )1. 路由器功能(路由器功能( Function of Router )2.路由器组成路由器组成Router Components )3.超级终端会话属性超级终端会话属性(HyperT
2、erminal Session Properties)4. Router配置模式配置模式(Router Configuration Mode ) 5.路由器基本配置路由器基本配置(Basic Configuration of Router) 2006 Shenzhen Polytechnic. All rights reserved.3Router功能功能Function of Router )Router是第三层的网络设备是第三层的网络设备Router is layer 3 device):):1. 路由选择和交换路由选择和交换Routing and Switching)2. 网络分段网络分
3、段Network Segment)3. 流量控制流量控制Flow Control)4. 隔离广播隔离广播Isolate Broadcast)5. 广域网连接广域网连接WAN Connection) 2006 Shenzhen Polytechnic. All rights reserved.4路由选择和交换路由选择和交换Routing and Switching) 2006 Shenzhen Polytechnic. All rights reserved.5网络分段网络分段Network Segment) 2006 Shenzhen Polytechnic. All rights reser
4、ved.6广域网连接广域网连接WAN Connection) 2006 Shenzhen Polytechnic. All rights reserved.7路由器内部组成路由器内部组成Router Internal Components ) 2006 Shenzhen Polytechnic. All rights reserved.8RAM/DRAM1.主要存储路由表、主要存储路由表、ARP缓存、快速交换表和包队列等缓存、快速交换表和包队列等Stores routing tables, ARP cache, fast-switching cache, and packet hold que
5、ues; 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 2006 Shenzhen Polytechnic. All rights reserved.9非易失性非易失性RAM (NVRAM )1.非易失性非易失性RAM存储配置文
6、件的备份存储配置文件的备份Non-volatile RAM stores the routers backup/startup configuration file; 2. 掉电或重启动掉电或重启动NVRAM内容不丢失内容不丢失NVRAM content is retained during power down or restart 2006 Shenzhen Polytechnic. All rights reserved.10Flash 1.Flash是可擦除,可重新编程的是可擦除,可重新编程的ROM,它存储操作系统它存储操作系统映像文件和微代码映像文件和微代码Erasable, rep
7、rogrammable 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 可以存储多个版本的可以存储多个
8、版本的IOS软件软件Flash memory can store multiple versions of IOS software 2006 Shenzhen Polytechnic. All rights reserved.11ROM 1.ROM包含开机自检程序、启动程序和操作系统软件包含开机自检程序、启动程序和操作系统软件ROMcontains power-on diagnostics, a bootstrap program, and operating system software; 2.升级升级ROM中的软件需要更换路由器主板上的芯片中的软件需要更换路由器主板上的芯片Softwa
9、re upgrades in ROM require removing and replacing chips on the routers motherboard 2006 Shenzhen Polytechnic. All rights reserved.122600系列路由器内部构成系列路由器内部构成(Internal Components of 2600 Router ) 2006 Shenzhen Polytechnic. All rights reserved.132600系列路由器外观系列路由器外观(External Connectors on 2600 Router ) 200
10、6 Shenzhen Polytechnic. All rights reserved.14计算机连接到控制台接口计算机连接到控制台接口(Computer Connect to Console Port) 2006 Shenzhen Polytechnic. All rights reserved.15在计算机上配置超级终端软件在计算机上配置超级终端软件(Configure HyperTerminal software on the PC) 2006 Shenzhen Polytechnic. All rights reserved.16超级终端会话属性超级终端会话属性(HyperTermin
11、al Session Properties) 2006 Shenzhen Polytechnic. All rights reserved.17配置路由器的方式配置路由器的方式(External Configuration Source)路由器初始配置必须通过控制台接口进行。路由器初始配置必须通过控制台接口进行。When the router is first put into service, we must configure it by console port. 2006 Shenzhen Polytechnic. All rights reserved.18Router配置模式配置模
12、式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.RXBO
13、OT 形式形式7.ROMMON模式模式 2006 Shenzhen Polytechnic. All rights reserved.19用户模式用户模式 (User Mode )这是一种这是一种“只能查看的模式,用户只能查看一只能查看的模式,用户只能查看一些有关路由器的信息,不能更改。些有关路由器的信息,不能更改。This is a look-only mode in which the user can view some information about the router, but can not make changes. 2006 Shenzhen Polytechnic. A
14、ll rights reserved.20特权模式特权模式Privileged Mode)这种模式支持调试和测试命令,支持对交换机的这种模式支持调试和测试命令,支持对交换机的详细检查、对配置文件的操作,并且可以由此进详细检查、对配置文件的操作,并且可以由此进入配置模式。入配置模式。 This mode supports the debugging and testing commands, detailed examination of the switch, manipulation of configuration files, and access to configuration mo
15、des. 2006 Shenzhen Polytechnic. All rights reserved.21全局配置模式(全局配置模式( Global Configuration Mode )这种模式提供了强大的单行命令,可以完成简单的这种模式提供了强大的单行命令,可以完成简单的配置任务。配置任务。This mode implements powerful one-line commands that perform simple configuration tasks. 2006 Shenzhen Polytechnic. All rights reserved.22Setup模式(模式(
16、Setup Mode)这种模式在控制台提供了交互式的对话,帮助新这种模式在控制台提供了交互式的对话,帮助新的用户创建初次的基本的配置。的用户创建初次的基本的配置。This mode presents an interactive prompted dialog at the console that helps the new user create a first-time basic configuration. 2006 Shenzhen Polytechnic. All rights reserved.23RXBOOT 形式(形式( RXBOOT Mode)1. 这是你可以使用的维护模
17、式,可以用来恢复这是你可以使用的维护模式,可以用来恢复丢失的密码。丢失的密码。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。 2006 Shenzhen Polytechnic. All rights reserved.24ROMMON 形式(形式( ROMMON Mode)这种模式可以用来恢复密码和升级这种模式可以用来恢复密码
18、和升级IOS.This mode use to recover from lost passwords and update IOS software。 2006 Shenzhen Polytechnic. All rights reserved.25Router工作模式转换工作模式转换(Change Router Configuration Mode)RouterRouterenableRouter#Router# configure terminalRouter(config)#Router(config)# interface fa0/0Router(config-if)#exitRou
19、ter(config)#router ripRouter(config-router)#endRouter# disableRouter 2006 Shenzhen Polytechnic. All rights reserved.26工作模式切换命令注释工作模式切换命令注释( Notes of Changing Router Mode Command )进入特权命令状态进入特权命令状态 enable 退出特权命令状态退出特权命令状态 disable 进入设置对话状态进入设置对话状态 setup 进入全局设置状态进入全局设置状态 config terminal 退出全局设置状态退出全局设置状态
20、 end 进入端口设置状态进入端口设置状态 interface type slot/number 进入线路设置状态进入线路设置状态 line type slot/number 进入路由设置状态进入路由设置状态 router protocol 退出局部设置状态退出局部设置状态 exit 2006 Shenzhen Polytechnic. All rights reserved.27 命名路由器命名路由器Name the Router)Router(config)#hostname Lab-A 2006 Shenzhen Polytechnic. All rights reserved.28配置
21、配置enable密码密码Configuring Enable Passwords ) Lab-A(config)#enable password ciscoshowrunenablepasswordcisco(明文,未加密)Results in: 2006 Shenzhen Polytechnic. All rights reserved.29配置配置enable密码密码Configuring Enable Passwords )Lab-A(config)#enable secret ciscoShowrunenablesecret5$1$emBK$WxqLahy7YO(密码被加密)Resul
22、ts in: 2006 Shenzhen Polytechnic. All rights reserved.30配置控制台密码配置控制台密码Configuring Console Passwords )router1(config)#line console 0router1(config-line)#password ciscorouter1(config-line)#login 2006 Shenzhen Polytechnic. All rights reserved.31配置配置VTY密码密码Configuring VTY Passwords )router1(config)#line
23、 vty 0 40 4:允许允许5个终端同时远程登录个终端同时远程登录0 4:(permit 5 terminals login at the same time)router1(config-line)#password ciscorouter1(config-line)#loginrouter1(config-line)#priv level 15设置登录优先级设置登录优先级set priority) 2006 Shenzhen Polytechnic. All rights reserved.32配置串行口配置串行口Configuring a Serial Interface )1. R
24、ouer1 # config t2. Router1(config)# interface s0/0进入串行口模式进入串行口模式Enter Serial Interface Mode )3. Router1(config-if)# clock rate 64000DCE端配置时钟端配置时钟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 Addr
25、ess and Subnet Mask )5. Router1(config-if)# no shut开启接口开启接口Turn on the Interface ) 2006 Shenzhen Polytechnic. All rights reserved.33配置以太口配置以太口Configuring an Ethernet Interface )1. Router1# config t2. Router1(config)# interface fa0/0进入以太口模式进入以太口模式Enter Ethernet Interface Mode )3. Router1(config-if)#
26、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 ) 2006 Shenzhen Polytechnic. All rights reserved.34配置接口描述配置接口描述Configuring Interface Description )1. 接口描述可以帮助网络用户记住特定的关于接口的信接口描述可以帮助网络用户
27、记住特定的关于接口的信息息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/0description LAN Engineering, Bldg.2Eg2 interface serial 0/0descript
28、ion ABC network 1, Circuit 1 2006 Shenzhen Polytechnic. All rights reserved.35Router 端口状态端口状态Status of Interface) 2006 Shenzhen Polytechnic. All rights reserved.36配置登录提示信息配置登录提示信息Configuring Login Banners )Router1(config)#banner motd #Welcome to Shenzhen Polytechnic#“#”:特定的分隔符号特定的分隔符号“#”:a space and
29、 a delimiting character 2006 Shenzhen Polytechnic. All rights reserved.37Show命令命令Show Command)1.show version 这个命令可以查看这个命令可以查看IOS版本号,已启动时间版本号,已启动时间 ,flash中的中的IOS的文件名,的文件名,router里面共有什里面共有什 么的端口,寄存器的值等等。么的端口,寄存器的值等等。2.show protocol 显示与显示与ip 有关的路由协议信息,各个端口的有关的路由协议信息,各个端口的 情况。情况。3.show flash 查看查看flash中的内
30、容,中的内容,IOS的长度,文件名,的长度,文件名, 剩余空间,总共空间。剩余空间,总共空间。4.show running-config 查看路由器当前的配置信息。查看路由器当前的配置信息。5.show startup-config 查看查看nvram 中的路由器配置信息。中的路由器配置信息。6.show interface 查看路由器上的各个端口的状态信息。查看路由器上的各个端口的状态信息。7.show controller 查看接口控制器的状态,可看到连接的是查看接口控制器的状态,可看到连接的是 DTE还是还是DCE8.show history 查看查看history buffer 里面的
31、命令列表里面的命令列表terminal history size 设置设置history buffer 里面保存命令的个数。最里面保存命令的个数。最 大允许值为大允许值为256 2006 Shenzhen Polytechnic. All rights reserved.38高级组合命令高级组合命令Enhanced Editing Commands )Ctrl+A:光标回到命令行的最开头:光标回到命令行的最开头move to the beginning of the command line)Ctrl+E:光标回到命令行的最后:光标回到命令行的最后move to theend of the c
32、ommand 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. 2006 Shenzhen Polytechnic. All rights reserved.39高级组合命令高级组合命令Enhanced Editing Commands )Ctrl+Por 上箭头):使用上一条用过的命令上箭头):使用上一条用过的命令recall previou
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 肌肉痉挛的作业治疗
- 创新科技在家庭健康管理中的应用与展望
- 急性腰部扭伤运动损伤治疗
- 语文教学工作总结2篇
- 企业办公中如何利用区块链提升物资管理透明度
- 区块链技术助力数据交易市场发展
- 2025年南平铝业股份有限公司招聘笔试参考题库附带答案详解
- 青春是什么演讲稿(4篇)
- 2025至2031年中国多功能消解装置行业投资前景及策略咨询研究报告
- 小石潭记教学设计
- 中国话剧史专题知识
- GB/T 15544.1-2023三相交流系统短路电流计算第1部分:电流计算
- GB/T 90.3-2010紧固件质量保证体系
- GB/T 18799-2020家用和类似用途电熨斗性能测试方法
- 科技公司涉密计算机软件安装审批表
- GA/T 1369-2016人员密集场所消防安全评估导则
- GA 1517-2018金银珠宝营业场所安全防范要求
- FZ/T 64014-2009膜结构用涂层织物
- 卫生统计学-回归与相关
- 德国政治制度简介课件
- 高考试卷命题设计的技巧 课件24张
评论
0/150
提交评论