Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1506603
  • 博文数量: 416
  • 博客积分: 10061
  • 博客等级: 上将
  • 技术积分: 3287
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-05 11:12
个人简介

技术在于专研

文章分类

全部博文(416)

文章存档

2021年(3)

2015年(34)

2013年(2)

2012年(1)

2011年(2)

2010年(5)

2007年(344)

2006年(25)

分类: 系统运维

2007-05-14 12:52:33


引擎: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

oot: 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

oot: 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

oot: 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:

Copyright (c) 2004 by cisco Systems, Inc.

Cat6k-Sup720/RP platform with 524288 Kbytes of main memory

Download Start

!!!!!!!!!!!!!!!!!!!!

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:

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包没有丢失。
阅读(1537) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~