cisco6509 CatOS 转换为Native IOS实际过程

引擎:WS-SUP720-3B 主备各一块
线路卡:WS-X6148X2-45AF 五块。
Cisco CompactFlash Memory Card, 128 MB 2块。
该设备原为cisco ios模式,但因当时IOS不支持WS-X6148X2-45AF 线路卡所以采用CatOS模式以支持上述线路卡,后思科推出支持的IOS版本s72033-advipservicesk9_wan-mz.122-18.SXF.bin,客户要求再次改为IOS版本。此两块 CompactFlash Memory Card曾在原IOS模式下格式化过,在此次升级过程中两种模式下(catos和IOS)竟都能写入。以下为升级过程:
1。首先将备份引擎拔下(支持热插拔),在catOS下将IOS映象文件拷入CompactFlash Memory Card 中。因IOS大小为70多兆所以用TFTP无法传也不可靠,所以用FTP传输,输入set ftp username;set ftp password 设置好调用的FTP用户名和密码。执行:
SWITCH_1> (enable) copy ftp disk0:
IP address or name of remote host <172.21.239.40>?
Username for ftp?
Password for User ftp<>:
Name of file to copy from ? s72033-advipservicesk9_wan-mz.122-18.SXF.bin
127893504 bytes available on device disk0, proceed (y/n) ? y

Loading s72033-advipservicesk9_wan-mz.122-18.SXF.bin
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File disk0:s72033-advipservicesk9_wan-mz.122-18.SXF.bin checksum verified and is Ok.
File has been copied successfully.
SWITCH_1> (enable) dir disk0:
2 -rw- 76599844 Sep 17 2005 09:52:11 s72033-advipservicesk9_wan-mz.122-18.SXF.bin

51290112 bytes available (76603392 bytes used)

2。查看当前交换机启动变量。寄存器值为0x2102,下一步将修改此值为0x0
SWITCH_1> (enable) sh boot
BOOT variable = bootflash:cat6000-sup720cvk8.8-4-3.bin,1;
CONFIG_FILE variable = bootflash:switch.cfg

Configuration register is 0x2102
ignore-config: disabled
auto-config: non-recurring, overwrite, sync disabled
ROMMON console baud: 9600
boot: image specified by the boot system commands

Image auto sync is enabled
Image auto sync timer is 120 seconds
3.修改寄存器值为0x0
SWITCH_1> (enable) set boot config-register 0x0
Configuration register is 0x0
ignore-config: disabled
auto-config: non-recurring, overwrite, sync disabled
ROMMON console baud: 9600
boot: the ROM monitor
4。确认此值已修改,并reset。
SWITCH_1> (enable) sh boot
BOOT variable = bootflash:cat6000-sup720cvk8.8-4-3.bin,1;
CONFIG_FILE variable = bootflash:switch.cfg

Configuration register is 0x0
ignore-config: disabled
auto-config: non-recurring, overwrite, sync disabled
ROMMON console baud: 9600
boot: the ROM monitor

Image auto sync is enabled
Image auto sync timer is 120 seconds

SWITCH_1> (enable) reset
5。系统重启进入ROMMON模式。输入SET查看环境变量。
System Bootstrap, Version 8.1(3)
Copyright (c) 1994-2004 by cisco Systems, Inc.
Cat6k-Sup720/SP processor with 524288 Kbytes of main memory

rommon 1 >
rommon 2 > set
PS1=rommon ! >
LOG_PREFIX_VERSION=1
SLOTCACHE=cards;
BSI=0
ACL_DENY=0
PF_REDUN_CRASH_COUNT=0
RET_2_RTS=00:28:49 PDT Thu Jul 14 2005
RET_2_RCALTS=1121326129
CONFIG_FILE=bootflash:switch.cfg
BOOT=bootflash:cat6000-sup720cvk8.8-4-3.bin,1;
PROFILE_FILE=
?=0

6。输入CONFIG_FILE=将该变量值清空。输入sync写入到NVRAM中,再reset,系统重启进入ROMMON模式。
rommon 3> CONFIG_FILE=
rommon 4> set
PS1=rommon ! >
LOG_PREFIX_VERSION=1
SLOTCACHE=cards;
BSI=0
ACL_DENY=0
PF_REDUN_CRASH_COUNT=0
RET_2_RTS=00:28:49 PDT Thu Jul 14 2005
RET_2_RCALTS=1121326129
BOOT=bootflash:cat6000-sup720cvk8.8-4-3.bin,1;
PROFILE_FILE=
?=0
CONFIG_FILE=
rommon 5> SYSNC

monitor: command "SYSNC" not found
rommon 6> sync
rommon 7 > reset

System Bootstrap, Version 8.1(3)
Copyright (c) 1994-2004 by cisco Systems, Inc.
Cat6k-Sup720/SP processor with 524288 Kbytes of main memory

rommon 1 > dir disk0:
Directory of disk0:

2 76599844 -rw- s72033-advipservicesk9_wan-mz.122-18.SXF.bin
Disk0中存在我们将要用以启动的IOS映象。
7。启动IOS映象文件。
rommon 2 > boot disk0:s72033-advipservicesk9_wan-mz.122-18.SXF.bin
Loading image, please wait ...

Self extracting the image...
Self decompressing the image : ################################################################################
#################
以下启动过程略
System Bootstrap, Version 12.2(17r)S2, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 2004 by cisco Systems, Inc.
Cat6k-Sup720/RP platform with 524288 Kbytes of main memory

Download Start
!!!!!!!!!!!!!!!!!!!!

[1] [2] 下一页  

文章录入:csh    责任编辑:csh 

cisco WS-C6509-E (R7000) processor (revision 1.1) with 458720K/65536K bytes of memory.
Processor board ID SMG0922N0VW
SR71000 CPU at 600Mhz, Implementation 0x504, Rev 1.2, 512KB L2 Cache
Last reset from power-on
SuperLAT software (copyright 1990 by Meridian Technology Corp).
X.25 software, Version 3.0.0.
Bridging software.
TN3270 Emulation software.
1 Virtual Ethernet/IEEE 802.3 interface
480 FastEthernet/IEEE 802.3 interfaces
2 Gigabit Ethernet/IEEE 802.3 interfaces
1917K bytes of non-volatile configuration memory.
8192K bytes of packet buffer memory.
上述启动信息部分省略,完全启动至整个线路卡识别状态为OK,大约用了十多分钟。
Router#s mod
Mod Ports Card Type Model Serial No.
--- ----- -------------------------------------- ------------------ -----------
1 96 96-port 10/100 Mbps RJ45 WS-X6148X2-RJ-45 SAD091506P4
2 96 96-port 10/100 Mbps RJ45 WS-X6148X2-RJ-45 SAD09110B0U
3 96 96-port 10/100 Mbps RJ45 WS-X6148X2-RJ-45 SAD091605JK
4 96 96-port 10/100 Mbps RJ45 WS-X6148X2-RJ-45 SAD09110B3G
6 2 Supervisor Engine 720 (Active) WS-SUP720-3B SAD092303GG
7 96 96-port 10/100 Mbps RJ45 WS-X6148X2-RJ-45 SAD091307AL

Mod MAC addresses Hw Fw Sw Status
--- ---------------------------------- ------ ------------ ------------ -------
1 0012.80f1.7648 to 0012.80f1.76a7 1.1 8.2(2) 8.5(0.46)RFW Ok
2 0012.8005.f3de to 0012.8005.f43d 1.1 8.2(2) 8.5(0.46)RFW Ok
3 0013.60b2.66cc to 0013.60b2.672b 1.1 8.2(2) 8.5(0.46)RFW Ok
4 0012.8006.0848 to 0012.8006.08a7 1.1 8.2(2) 8.5(0.46)RFW Ok
6 0011.5cab.6858 to 0011.5cab.685b 4.4 8.1(3) 12.2(18)SXF Ok
7 0012.8006.26f8 to 0012.8006.2757 1.1 8.2(2) 8.5(0.46)RFW Ok

8。检查转换后运行的IOS版本,正确无误。
Router#sh ver
Cisco Internetwork Operating System Software
IOS (tm) s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2(18)SXF, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Sat 10-Sep-05 01:18 by ccai
Image text-base: 0x40101040, data-base: 0x42D60000

ROM: System Bootstrap, Version 12.2(17r)S2, RELEASE SOFTWARE (fc1)
BOOTLDR: s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2(18)SXF, RELEASE SOFTWARE (fc1)
9。用IOS格式格式化sup-bootflash
Router#format sup-bootflash:
Format operation may take a while. Continue?
Format operation will destroy all data in "sup-bootflash:". Continue?
Format of sup-bootflash complete
Router#dir sup-bootflash:
Directory of sup-bootflash:/

No files in directory

65536000 bytes total (65536000 bytes free)
10。该步为可选步骤,用来验证闪存卡是否可写入,若能写入则不用再格化。可用较小的IOS文件用TFTP协议往disk0写入IOS文件。此次转换过程中发现可以写入,所以没重新格式化闪存卡,也省去了再传IOS的步骤。
11。修改启动参数。下次启动交换机时直接用disk0中的IOS映象启动。保存
Router(config)#boot system flash disk0:s72033-advipservicesk9_wan-mz.122-18.SXF.bin
Router(config)#
Router#wr m
Building configuration...

12。显示交换处理器的寄存器值,因在catos模式下我们修改交换处理器的寄存值为0x0,所以最后还要将其修改回0x2102.
Router#remote command switch show boot

BOOT variable = bootflash:cat6000-sup720cvk8.8-4-3.bin,1;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x0
Router(config)#config-register 0x2102
Router(config)#
Router#wr m
Building configuration...

Router#remote command switch show boot

BOOT variable = disk0:s72033-advipservicesk9_wan-mz.122-18.SXF.bin,1;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x0 (will be 0x2102 at next reload)
Router#reload
至此主引擎转换完毕。关闭电源,将拔出主引擎,插入备份引擎,重复上述将其转换。备份引擎转换成功后,可直接将主引擎插入。此时备份引擎处于active 状态,而主引擎处于hot standby状态。等主引擎完全启动后,可将备份引擎插拔一次,这样将恢复成主为active 备为hot standby。
该版本下redundancy模式为SSO模式,因此在插拔任何一块引擎情况下,ping包没有丢失

上一页  [1] [2] 

文章录入:csh    责任编辑:csh

(0)

相关推荐

  • iOS中定位当前位置坐标及转换为火星坐标的方法

    定位和位置信息获取 定位和反查位置信息要加载两个动态库 CoreLocation.framework 和 MapKit.framework 一个获取坐标一个提供反查 复制代码 代码如下: // appDelgate.h #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> #import <MapKit/MapKit.h>   @interface AppDelegate : UIResponder

  • iOS对象指针和基础数据类型的强转详解

    本文主要介绍了iOS中对象指针和基础数据类型如何进行强转,下面话不多说,直接来看示例详解. 一.对象指针的强转: UIView *view = [UIView new];//new一个UIView类的对象 UILabel *label = (UILabel *)view;//强转成UILabel指针 label.text = @"123";//给label的text属性赋值(调用label的setText方法) 上述代码会产生崩溃,崩溃信息如下: -[UIView setText:]:

  • IOS开发之路--C语言构造类型

    概述 在第一节中我们就提到C语言的构造类型,分为:数组.结构体.枚举.共用体,当然前面数组的内容已经说了很多了,这一节将会重点说一下其他三种类型. 结构体 枚举 共用体 结构体 数组中存储的是一系列相同的数据类型,那么如果想让一个变量存储不同的数据类型就要使用结构体,结构体定义类似于C++.C#.Java等高级语言中类的定义,但事实上它们又有着很大的区别.结构体是一种类型,并非一个变量,只是这种类型可以由其他C语言基本类型共同组成. // // main.c // ConstructedType

  • iOS应用开发中使用NSLocale类实现对象信息的本地化

    如何正确地格式化时间 这也是我们这两天遇到的问题,跟用户几经沟通之后,终于抓到log,发现问题竟然是格式化导致的.怎么解决呢? 这个时候NSLocale的重要性就体现出来了.NSLocale作为大家都不常用的一个类,NSLocale类是将与国家和语言相关的信息进行简单的组合,包括货币.语言.国家等的信息. 所以很简单,我们把dateFormatter的locale属性改一下即可解决这个问题.将下面代码放在dateFormatter初始化之后: 复制代码 代码如下: NSLocale *usLoc

  • iOS开发之获取系统相册中的图片与视频教程(内带url转换)

    好些天没写点东西了,最近公司要做新项目,有点小忙.不想我的坚持就此中断,我把我前些天研究的东西拿出来给大家看看. 这次整理的是AssetsLibrary和PhotoKit的使用.本人处女座,有点强迫症,之前写的项目里用的是AssetsLibrary写的调取相册内的媒体文件,但是Xcode总是报警告错误,虽然能够编译并展示效果,但是十几个警告错误挂在那,心里总不是滋味,所以我就研究了一下AssetLibrary和PhotoKit. 在 iOS 8 出现之前,开发者只能使用 AssetsLibrar

  • ios开发中时间转换的方法集锦

    在开发iOS程序时,有时候需要将时间格式调整成自己希望的格式,这个时候我们可以用NSDateFormatter类来处理. 例如: //实例化一个NSDateFormatter对象 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; //设定时间格式,这里可以设置成自己需要的格式 [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; //用[NSDate d

  • iOS 对象属性详细介绍

    iOS 对象属性 oc对象的一些属性: retain,strong, copy,weak,assign,readonly, readwrite, unsafe_unretained 下面来分别讲讲各自的作用和区别: retain,计数器加1, (增加一个指向内存的指针) 对应release(计数器-1) setter 方法对参数进行 release 旧值再 retain 新值,所有实现都是这个顺序 - (void)setBackView:(UIView *)backView { if (_bac

  • 解析iOS开发中的FirstResponder第一响应对象

    1. UIResonder 对于C#里所有的控件(例如TextBox),都继承于Control类.而Control类的继承关系如 下: 复制代码 代码如下: System.Object System.MarshalByRefObject System.ComponentModel.Component System.Windows.Forms.Control 对于iOS里的UI类,也有类似的继承关系. 例如对于UITextField,继承于UIControl:UIControl继承于UIView,

  • iOS获取网络类型的方法汇总

    Reachability类只能区分WIFI和WWAN类型,却无法区分2G网和3G网. 网上也有些方法,却都存在Bug. 经过网上查找资料和测试,基本上总结了以下几种方法: 1.使用导航栏的方式:(私有API) 代码: 复制代码 代码如下: typedef enum {     NetWorkType_None = 0,     NetWorkType_WIFI,     NetWorkType_2G,     NetWorkType_3G, } NetWorkType; UIApplicatio

  • 使用Reachability类判断iOS设备的当前网络连接类型

    (1). 下载 https://developer.apple.com/library/ios/samplecode/Reachability/Reachability.zip (2). 拖reachability.h,reachability.m入工程 (库非ARC) ARC:-fno-objc-arc (3) .导入SystemConfiguration.framework (4).用法 复制代码 代码如下: -(NSString*)getNetType   {          NSStr

  • 详解iOS应用UI开发中的九宫格坐标计算与字典转换模型

    九宫格坐标计算 一.要求 完成下面的布局 二.分析 寻找左边的规律,每一个uiview的x坐标和y坐标. 三.实现思路 (1)明确每一块用得是什么view (2)明确每个view之间的父子关系,每个视图都只有一个父视图,拥有很多的子视图. (3)可以先尝试逐个的添加格子,最后考虑使用for循环,完成所有uiview的创建 (4)加载app数据,根据数据长度创建对应个数的格子 (5)添加格子内部的子控件 (6)给内部的子控件装配数据 四.代码示例 复制代码 代码如下: // //  YYViewC

随机推荐