理解Catalyst9K/3850 IOS-XE启动模式
本文会介绍运行IOS-XE的Catalyst3850/3650和新产品Catalyst9K的两种启动模式:Install Mode和Bundle Mode.
Install Mode使用packages.conf启动
先将xxx.bin文件解压到flash中(必须放在flash中),生成多个packages 文件(xxx.pkg)和一个provisioning配置文件(packages.conf),然后设置boot参数使用flash:packages.conf进行启动.
无需占用额外的内存空间(相比bundle mode) 不支持从usbflash0:或者tftp: 启动. 支持auto install和smart install功能 支持AP image pre-download功能
解压/安装方法: 使用request platform software package expand命令进行解压 e.g:
Switch# request platform software package expand switch all file flash:cat3k_caa-universalk9.16.09.01.SPA.bin auto-copy
或者 使用request platform software package install命令进行安装 e.g:
Switch# request platform software package install switch all file flash:cat3k_caa-universalk9.16.09.01.SPA.bin new auto-copy
配置方法:
Switch(config)# boot system flash:packages.conf
查看当前启动模式
Switch#sh ver | in file System image file is "flash:packages.conf" Switch#sh ver | in INSTALL 1 32 WS-C3850-24T 16.3.3 CAT3K_CAA-UNIVERSALK9 INSTALL *2 32 WS-C3850-24P 16.3.3 CAT3K_CAA-UNIVERSALK9 INSTALL
查看boot参数:
Switch#show boot BOOT variable = flash:packages.conf;
Bundle Mode使用XXX.bin文件启动
直接启动和加载xxx.bin文件. IOS文件中的packages将会解压和复制到RAM中,bundle mode会占用更多的内存空间.(相比install mode) 支持从flash: /usbflash0: /tftp:启动. 不支持auto install和smart install功能 不支持AP image pre-download功能
配置方法:
Switch(config)#boot system switch all flash:cat3k_caa-universalk9.SPA.03.06.08.E.152-2.E8.bin
查看当前启动模式
Switch#sh ver | in file System image file is "flash:cat3k_caa-universalk9.SPA.03.06.08.E.152-2.E8.bin" Switch#sh ver | in BUNDLE *1 62 WS-C3850-12X48U 16.3.6 CAT3K_CAA-UNIVERSALK9 BUNDLE
查看boot参数
Switch#show boot Current Boot Variables: BOOT variable = flash:cat3k_caa-universalk9.SPA.03.06.08.E.152-2.E8.bin; Boot Variables on next reload: BOOT variable = flash:cat3k_caa-universalk9.SPA.03.06.08.E.152-2.E8.bin;