博威---云架构决胜云计算

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2414|回复: 2

6509 SUP720 boot 参数配置总结

[复制链接]
发表于 2008-8-12 07:44:53 | 显示全部楼层 |阅读模式
6509 SUP720 boot 参数配置总结

6509 SUP720启动参数配置

需求6509启动时先找外置CF卡上的IOS并从外置CF卡上的IOS启动,如果外置CF卡取出后,6509重启时找不到CF卡,系统从引擎内flash中的IOS启动

配置过程:

修改配置前,boot参数如下:

boot system flash sup-bootflash:

sup-bootflashIOS文件为:s72033-psv-mz.122-18.SXD7b.bin

系统重启后能正常启动。

第一次修改boot参数为:

boot system flash disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin

boot system flash sup-bootflash:s72033-psv-mz.122-18.SXD7b.bin

保存配置后,查看启动参数:

SW03253#show boot

BOOT variable = disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin,1;sup-bootflash:s72033-psv-mz.122-18.SXD7b.bin,1;

CONFIG_FILE variable =

BOOTLDR variable =

Configuration register is 0x2102

重启6509(此时CF卡上有IOS s72033-adventerprisek9_wan-vz.122-33.SXH.bin),系统可以从CF卡上的IOS启动。取走CF卡后再重启6509,提示CF卡初始化失败,进入Rommon模式,在rommon下输入boot bootflash: s72033-psv-mz.122-18.SXD7b.bin,系统正常启动

System Bootstrap, Version 7.7(1)

Copyright (c) 1994-2003 by cisco Systems, Inc.

Cat6k-Sup720/SP processor with 524288 Kbytes of main memory



Autoboot executing command: "boot disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin"

PCMCIA slot0 device is not initialized

open: read error...requested 0x4 bytes, got 0x0

trouble reading device magic number

loadprog: error - on file open

boot: cannot load "disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin"


System Bootstrap, Version 7.7(1)

Copyright (c) 1994-2003 by cisco Systems, Inc.

Cat6k-Sup720/SP processor with 524288 Kbytes of main memory

rommon 1 > dir sup-bootflash:

bad device name (device not supported)

usage: dir <device>

usage: dir <device>

rommon 2 >

rommon 3 > dir bootflash:


File size
Checksum
File name


45475412 bytes (0x2b5e654)
0x9bd41dad
s72033-psv-mz.122-18.SXD7b.bin

rommon 4 > boot bootflash:s72033-psv-mz.122-18.SXD7b.bin



Self decompressing the image : ####################################################################################################################################################################################################################################################################################################################### [OK]





按照NYL论坛上兄弟说的方法:把第二条boot参数冒号后面的文件名去掉,

boot system flash disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin

boot system flash sup-bootflash:s72033-psv-mz.122-18.SXD7b.bin

修改boot参数为:

boot system flash disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin

boot system flash sup-bootflash:

SW03253#show boot

BOOT variable = disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin,1;sup-bootflash:,1

CONFIG_FILE variable =

BOOTLDR variable =

Configuration register is 0x2102



保存配置后重启6509(取走外置CF卡),系统还是没按预期的方式正常启动,而是进入rommon模式了,再次boot bootflash: s72033-psv-mz.122-18.SXD7b.bin启动后再修改启动参数(把第二条的sup-bootflash改为bootflash):

boot system flash disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin

boot system flash bootflash: s72033-psv-mz.122-18.SXD7b.bin

SW03253#show boot

BOOT variable = disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin,1;bootflash:s72033-psv-mz.122-18.SXD7b.bin,1

CONFIG_FILE variable =

BOOTLDR variable =

Configuration register is 0x2102

保存配置后重启6509(取走外置CF卡),系统还是没按预期的方式正常启动,而是进入rommon模式了,再次boot bootflash: s72033-psv-mz.122-18.SXD7b.bin启动后再修改启动参数为:

boot system flash disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin

boot system flash bootflash:

SW03253#show boot

BOOT variable = disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin,1;bootflash:,1

CONFIG_FILE variable =

BOOTLDR variable =

Configuration register is 0x2102

保存配置后重启6509(取走外置CF卡),系统还是没按预期的方式正常启动,而是进入rommon模式了,再次boot bootflash: s72033-psv-mz.122-18.SXD7b.bin启动后再修改启动参数(把第二条的system后面的flash去掉,直接写成boot system bootflash):
boot system flash disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin
boot system bootflash:

[SW03253(config)#boot system ?
  WORD   TFTP filename or URL
  flash  Boot from flash memory
  ftp    Boot from a server via ftp
  mop    Boot from a Decnet MOP server
  rcp    Boot from a server via rcp
  tftp   Boot from a tftp server
SW03253(config)#boot system bootflash: ]

SW03253#show boot
BOOT variable = disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin,1;bootflash:,12;
CONFIG_FILE variable =
BOOTLDR variable =
Configuration register is 0x2102
保存配置后重启6509(取走外置CF卡),系统以引擎内FLASH中的IOS正常启动(达到预期效果,可以满足客户需求)
再修改boot参数为:
boot system disk0:
boot system bootflash:
SW03253#show boot
BOOT variable = disk0:,12;bootflash:,12;
CONFIG_FILE variable =
BOOTLDR variable =
Configuration register is 0x2102
保存配置后重启(取走外置CF卡),正常启动
System Bootstrap, Version 7.7(1)
Copyright (c) 1994-2003 by cisco Systems, Inc.
Cat6k-Sup720/SP processor with 524288 Kbytes of main memory

Autoboot executing command: "boot disk0:"
PCMCIA slot0 device is not initialized
open: read error...requested 0x4 bytes, got 0x0
trouble reading device magic number
boot: cannot open "disk0:"
boot: cannot determine first file name on device "disk0:"

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

Autoboot executing command: "boot bootflash:"

Self decompressing the image : ####################################################################################################################################################################################################################################################################################################################### [OK]

再重启(插入CF卡),系统也可以从CF卡的IOS启动
System Bootstrap, Version 7.7(1)
Copyright (c) 1994-2003 by cisco Systems, Inc.
Cat6k-Sup720/SP processor with 524288 Kbytes of main memory

Autoboot executing command: "boot disk0:"
string is disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin

Self extracting the image... [OK]
Self decompressing the image : ######################################################################################################################################################################################################################################################################################################### [OK]
running startup....

总结
经过N次重启6509,终于搞定了boot参数的配置。但是还有两个问题不明白:
1.配置boot 参数时时,什么情况下使用boot system flash disk0: (boootflash/sup-bootflash),什么情况下使用boot system  disk0:  (boootflash/sup-bootflash)?
2.BOOT variable = disk0:,12;bootflash:,12;(没有flash关键词时是12),BOOT variable = disk0:s72033-adventerprisek9_wan-vz.122-33.SXH.bin,1;bootflash:,1(有flash关键词时是1),12、1分别代表什么?还有其它值吗?
发表于 2008-11-7 23:49:38 | 显示全部楼层
我顶一下,我没您这么复杂,
反正两块引擎啊,我在一块引擎上把新的IOS灌进去老IOS删除,然后改下boot参数,然后重启,如果能顺利boot起来的话,那么就把另一块板子的IOS也升级了,如果不行的话,copy一下主备板子的IOS也就可以灾备了
 楼主| 发表于 2008-11-8 08:31:07 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|boway Inc. ( 冀ICP备10011147号 )

GMT+8, 2024-11-24 03:25 , Processed in 0.092916 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表