资源预览内容
第1页 / 共170页
第2页 / 共170页
第3页 / 共170页
第4页 / 共170页
第5页 / 共170页
第6页 / 共170页
第7页 / 共170页
第8页 / 共170页
第9页 / 共170页
第10页 / 共170页
亲,该文档总共170页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
计算机网络工程教程基于cisco路由器和交换机,作者:陆魁军,责任编辑:邹小宁 出版日期:2008年9月 IDPN:308-2008-017 课件章数:07,2,第4章 思科路由器基本配置和使用,4.1 路由器面板介绍 4.1.1 7204 VXR路由器面板介绍 7204 VXR路由器前面板,主控板Slot0,Slot1,Slot2,Slot3,Slot4,3,(1) 主控板Slot0 二个PCMCIA插槽 disk0 disk1 EJECT按键 ATA Flash Card 二个快速以太网口(FE/E 0和FE/E 1) FE/E 0命名为FastEthernet0/0 FE/E 1命名为FastEthernet0/1 Aux口 Console端口,4,指示灯及按钮,5,(2) Slot1 增强的4串口适配器(PA-4T) Serial1/0 Serial1/1 Serial1/2 Serial1/3 如果4串口适配器位于Slot2,那么串口命名从左到右依次为Serial2/0、Serial2/1、Serial2/2、Serial2/3,6,PA-4T指示灯说明,7,7204 VXR路由器后面板,网络处理引擎,AC电源插座,电源开关,备份电源面板,接地端子,8,PWR指示灯 ACT指示灯 : 相应的插槽模块是否工作 SYS/RPS指示灯:亮表示系统工作正常/冗余电源系统已经连接 并提供备份电源,4.1.2 3725路由器面板介绍 3725路由器前面板,9,3725路由器后面板,4串口模块,W2(快速以太网口),W1 紧缩型Flash插槽,W0,电源插座和开关,插槽2,10,4串口模块 命名: Serial1/0、Serial1/1、Serial1/2和Serial1/3 串口指示灯的含义: 与7204VXR路由器上PA-4T指示灯的含义相同 W2(快速以太网口) FastEthernet0/0 FastEthernet0/1 W1 紧缩型Flash插槽 压缩Flash卡,存储容量从32M到128M不等 W0 Aux口 Console端口,11,PWR指示灯 RPS指示灯: 灭:没有冗余电源;闪烁一下:系统在引导,有冗余电源但没成功。 一直闪烁:系统在引导,有冗余电源且加载成功 ACTIVITY指示灯:相应的插槽模块是否工作 在系统引导的时候比较慢的、平稳的闪烁,在系统激活(如中断发生和数据包传输)的时候闪烁一下,4.1.3 2621XM路由器面板介绍 2621XM路由器前面板,12,2621XM路由器后面板 (1) VIC 2FXO模块 外部交换办公(Foreign Exchange Office)声音接口卡 接口标准是RJ-11 (2)快速以太网口 (3) 2串口模块 指示灯Conn (4) Aux和Console口 (5)电源插座和开关,13,4.2 路由器口令恢复和IOS升级,4.2.1操作内容和环境 操作内容:路由器口令的设置和恢复、配置文件备份、IOS备份和升级 操作环境: Cisco 7204 VXR路由器,操作系统版本为IOS (tm) 7200 Software (C7200-IS-M),Version 12.3(6b)。 Cisco 3725路由器,操作系统版本为IOS (tm) 3700 Software (C3725-IPBASE-M),Version 12.3(9)。 Cisco 2621XM路由器,操作系统版本为IOS (tm) C2600 Software (C2600-I-M), Version 12.3(6b)。 网络拓扑图,14,4.2.2 背景知识 1. 配置寄存器 虚拟配置登记表 16位寄存器,驻留在NVRAM中,指定路由器启动选项 配置命令config-register Router(config)# config-register 0x2102 常用值0x2102,15,寄存器各位含义 第0到3位是启动字段 值为0(0000),进入ROM监控模式 值为1(0001),指定从ROM中启动 值为2(0010)到F(1111),则参照在NVRAM配置文件中用命令boot system指定的顺序 第6位可以用来恢复密码 值为1时,在启动时忽略NVRAM中的配置信息而进入初始配置对话模式中 第8位 值为0时,使用Break键可以在系统启动后正常运行时中断系统 第10位能够改变广播的类型 第5、11和12位用来设置路由器的波特率(bit/s),16,2. 路由器工作模式 ROM监控模式 路由器启动时,如果系统没有加载任何的IOS镜像文件,或者按下键,此时路由器就进入ROM监控模式 提示符:rommon 用户执行模式 如果路由器成功加载了一份完整的IOS代码,那么对路由器的第一级访问模式就是用户执行模式 用户可以显示系统信息、执行基本的测试以及设置终端参数等 无法查看配置文件及更改信息无法查看配置文件及更改信息 提示符: Router ,17,特权执行模式 即enable模式 在用户执行模式下执行enable命令进入特权执行模式 用户具有更改和配置路由器的所有权限 提示符: Router 配置模式 在enable模式下,利用命令configure terminal可以进入配置模式 Router# configure terminal Router(config)# #配置模式 可以对接口、路由协议和线路等进行配置 Router(config)# interface FastEthernet0/0 Router(config-if)# #接口配置模式,18,Router(config)# router rip Router(config-router)# #路由协议配置模式 Router(config)# line con 0 Router(config-line)# #控制台(con)配置模式 Router(config)# line vty 0 4 Router(config-line)# #虚拟终端(vty)配置模式,19,4.2.3 口令设置和恢复 以Cisco 2621XM路由器为示例 1. 口令设置 控制台(console)、辅助端口(aux)和虚拟控制终端线路(vty)都可以设置各自的口令 命令login设置路由器需要输入密码才能进入,命令password用来设置密码,命令line+设置对象选择设置对象 Router(config)# line console 0 #配置控制台 Router(config)# line aux 0 #配置辅助端口 Router(config)# line vty 0 4 #配置虚拟控制终端线路 Router(config-line)# password p503 Router(config-line)# login,20,Router# show running-config Current configuration : 772 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker !,21,#设置的特权口令,已经加密 enable secret 5 $1$2KMr$0ZZAKmDh8ifPOlPZ358Oi1 enable password cisco1 #设置的特权口令,明文显示 ! no network-clock-participate slot 1 no network-clock-participate wic 0 no aaa new-model ip subnet-zero ip cef ! interface FastEthernet0/0 no ip address shutdown,22,duplex auto speed auto ! interface Serial0/0 no ip address shutdown ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown,23,! no ip http server ip classless ! line con 0 password p501 #设置的console口令 login line aux 0 password p502 #设置的aux口令 login line vty 0 4 password p503 #设置的vty口令 login ! end,24,2. 口令恢复 (1) 重启路由器 (2)修改配置寄存器 按下键,进入ROM监控模式 键入命令confreg 0x2142修改配置寄存器 或键入confreg,以交互的方式设置寄存器 rommon 1 confreg #修改配置寄存器的值 Configuration Summary (Virtual Configuration Register: 0x2102) enabled are: load rom after netboot fails console baud: 9600 #默认系统串口波特率 boot: image specified by the boot system commands,25,or default to: cisco2-C2600 #系统默认从Flash启动 do you wish to change the configuration? y/n n: y #键入y,表示要修改配置 enable “diagnostic mode”? y/n n: n enable “use net in IP bcast address”? y/n n: n disable “load rom after netboot fails”? y/n n: n enable “use all zero broadcast”? y/n n: n enable “break/abort has effect”? y/n n: n enable “ignore system config info”? y/n n: y #该行一定要键入y,忽略配置文件 change console baud rate? y/n n: n change the boot characteristics? y/n n: y #键入y,修改启动位置 enter to boot:,26,0 = ROM Monitor 1 = the boot helper image 2-15 = boot system 2: 2 #输入2使系统在启动时引导IOS镜像 Configuration Summary (Virtual Configuration Register: 0x2142) enabled are: load rom after netboot fails ignore system config info console baud: 9600 boot: image specified by the boot system commands or default to: cisco2-C2600 do you wish to change the configuration? y/nn:n,27,You must reset or
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号