6509 SUP720启动参数配置
需求:6509启动时先找外置CF卡上的IOS并从外置CF卡上的IOS启动,如果外置CF卡取出后,6509重启时找不到CF卡,系统从引擎内flash中的IOS启动
配置过程:
修改配置前,boot参数如下:
boot system flash sup-bootflash:
sup-bootflash的IOS文件为: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分别代表什么?还有其它值吗?