ใน Cisco Switch รุ่น Catalyst 3850 หรือ 9000 Series จะใช้งาน IOS-XE ซึ่งประกอบไปด้วย 2 modes ในการ boot image คือ Install mode และ Bundle mode
Install Mode
ใช้ package-provisioning file ชื่อว่า package.conf เพื่อทำการ boot switch ไม่รองรับการ boot จาก USB หรือ TFTP
Bundle Mode
ใช้ Cisco IOS image ที่เป็น .bin เพื่อทำการ boot switch ก็คือแบบดั้งเดิมที่เราคุ้นเคยนั่นเอง แบบนี้จะใช้ RAM มากกว่าแบบ Install mode เพราะ package จะถูกกระจายไปยัง RAM และจะไม่รองรับการทำงานบางอย่าง เช่น Auto-upgrade หรือ การใช้งานกับ feature บน SD-Access
Converting from Install Mode to Bundle Mode
Device# show version Cisco IOS Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Experimental Version Denali 16.1.20151117:003253 [v161_0_throttle-BLD-BLD_V161_0_THROTTLE_LATEST_20151116_230450 104] Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Mon 16-Nov-15 16:34 by mcpre Cisco IOS-XE software, Copyright (c) 2005-2015 by cisco Systems, Inc. All rights reserved. Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0. The software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0. For more details, see the documentation or "License Notice" file accompanying the IOS-XE software, or the applicable URL provided on the flyer accompanying the IOS-XE software. ROM: IOS-XE ROMMON BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 3.1, engineering software (D) Device uptime is 8 minutes Uptime for this control processor is 15 minutes System returned to ROM by Power Failure System image file is "flash:packages.conf" Last reload reason: Reload Command This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http ://www.cisco.com /wwl /export /crypto/tool/stqrg. html If you require further assistance please contact us by sending email to export@cisco.com. Technology Package License Information: ----------------------------------------------------------------- Technology-package Technology-package Current Type Next reboot ------------------------------------------------------------------ lanbasek9 Permanent lanbasek9 cisco WS-C3850-24P (MIPS) processor with 894696K/6147K bytes of memory. Processor board ID FOC1602V2GZ 2 Virtual Ethernet interfaces 56 Gigabit Ethernet interfaces 8 Ten Gigabit Ethernet interfaces 2048K bytes of non-volatile configuration memory. 4194304K bytes of physical memory. 147136K bytes of Crash Files at crashinfo:. 1735776K bytes of Flash at flash:. 891K bytes of TCL Script Files at script:. 3830880K bytes of USB Flash at usbflash0:. 0K bytes of at webui:. Base Ethernet MAC Address : 20:37:06:53:0c:80 Motherboard Assembly Number : 73-12238-03 Motherboard Serial Number : FOC160159MG Model Revision Number : P2 Motherboard Revision Number : 03 Model Number : WS-C3850-24P System Serial Number : FOC1602V2GZ Switch Ports Model SW Version SW Image Mode ------ ----- ----- ---------- ---------- ---- * 1 32 WS-C3850-24T Denali 16.1.1 CAT3K_CAA-UNIVERSALK9 INSTALL Configuration register is 0x102
2. ทำการตั้งค่า Boot file โดยชี้ไปที่ .bin (ถ้าไม่มีไฟล์ให้ทำการ download และ copy เข้าไปใน flash ก่อน) จากนั้นทำการ save และสั่ง reload
Device# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Device(config)# no boot system Device(config)# boot system switch all flash:cat3k_caa-universalk9.xx.SSA.bin Device(config)# do write memory Building configuration... Compressed configuration from 9209 bytes to 4151 bytes[OK] Device(config)# exit Device# reload Reload command is being issued on Active unit, this will reload the whole stack Proceed with reload? [confirm]Chassis 1 reloading, reason - Reload command
3. หลังจาก boot ขึ้นมาใหม่แล้ว ให้ตรวจสอบ mode อีกครั้ง จะเห็นว่าเป็น Bundle mode แล้ว
Press RETURN to get started! Device> enable Device# show version Cisco IOS Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Experimental Version Denali 16.1.20151117:003253 [v161_0_throttle-BLD-BLD_V161_0_THROTTLE_LATEST_20151116_230450 104] Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Mon 16-Nov-15 16:34 by mcpre Cisco IOS-XE software, Copyright (c) 2005-2015 by cisco Systems, Inc. All rights reserved. Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0. The software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0. For more details, see the documentation or "License Notice" file accompanying the IOS-XE software, or the applicable URL provided on the flyer accompanying the IOS-XE software. ROM: IOS-XE ROMMON BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 3.1, engineering software (D) NSWA uptime is 1 minute Uptime for this control processor is 8 minutes System returned to ROM by Power Failure System image file is "flash:cat3k_caa-universalk9.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.bin" Last reload reason: Reload Command This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http :// www.cisco.com /wwl /export/crypto/tool/stqrg. html If you require further assistance please contact us by sending email to export@cisco.com. Technology Package License Information: ----------------------------------------------------------------- Technology-package Technology-package Current Type Next reboot ------------------------------------------------------------------ lanbasek9 Permanent lanbasek9 cisco WS-C3850-24P (MIPS) processor with 894696K/6147K bytes of memory. Processor board ID FOC1602V2GZ 2 Virtual Ethernet interfaces 56 Gigabit Ethernet interfaces 8 Ten Gigabit Ethernet interfaces 2048K bytes of non-volatile configuration memory. 4194304K bytes of physical memory. 147136K bytes of Crash Files at crashinfo:. 1735776K bytes of Flash at flash:. 891K bytes of TCL Script Files at script:. 3830880K bytes of USB Flash at usbflash0:. 0K bytes of at webui:. Base Ethernet MAC Address : 20:37:06:53:0c:80 Motherboard Assembly Number : 73-12238-03 Motherboard Serial Number : FOC160159MG Model Revision Number : P2 Motherboard Revision Number : 03 Model Number : WS-C3850-24P System Serial Number : FOC1602V2GZ Switch Ports Model SW Version SW Image Mode ------ ----- ----- ---------- ---------- ---- * 1 32 WS-C3850-24T Denali 16.1.1 CAT3K_CAA-UNIVERSALK9 BUNDLEConfiguration register is 0x102
Converting from Bundle Mode to Install Mode
1. ตรวจสอบ mode โดยใช้คำสั่ง show version ว่าปัจจุบันเป็น Bundle mode อยู่Device# show version Cisco IOS Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Experimental Version Denali 16.1.20151117:003253 [v161_0_throttle-BLD-BLD_V161_0_THROTTLE_LATEST_20151116_230450 104] Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Mon 16-Nov-15 16:34 by mcpre Cisco IOS-XE software, Copyright (c) 2005-2015 by cisco Systems, Inc. All rights reserved. Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0. The software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0. For more details, see the documentation or "License Notice" file accompanying the IOS-XE software, or the applicable URL provided on the flyer accompanying the IOS-XE software. ROM: IOS-XE ROMMON BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 3.1, engineering software (D) Device uptime is 12 minutes Uptime for this control processor is 19 minutes System returned to ROM by Power Failure System image file is "flash:cat3k_caa-universalk9.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.bin" Last reload reason: Reload Command This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http ://www.cisco.com /wwl /export/crypto/tool/stqrg .html If you require further assistance please contact us by sending email to export@cisco.com. Technology Package License Information: ----------------------------------------------------------------- Technology-package Technology-package Current Type Next reboot ------------------------------------------------------------------ lanbasek9 Permanent lanbasek9 cisco WS-C3850-24P (MIPS) processor with 894696K/6147K bytes of memory. Processor board ID FOC1602V2GZ 2 Virtual Ethernet interfaces 56 Gigabit Ethernet interfaces 8 Ten Gigabit Ethernet interfaces 2048K bytes of non-volatile configuration memory. 4194304K bytes of physical memory. 147136K bytes of Crash Files at crashinfo:. 1735776K bytes of Flash at flash:. 891K bytes of TCL Script Files at script:. 3830880K bytes of USB Flash at usbflash0:. 0K bytes of at webui:. Base Ethernet MAC Address : 20:37:06:53:0c:80 Motherboard Assembly Number : 73-12238-03 Motherboard Serial Number : FOC160159MG Model Revision Number : P2 Motherboard Revision Number : 03 Model Number : WS-C3850-24P System Serial Number : FOC1602V2GZ Switch Ports Model SW Version SW Image Mode ------ ----- ----- ---------- ---------- ---- * 1 32 WS-C3850-24T Denali 16.1.1 CAT3K_CAA-UNIVERSALK9 BUNDLE Configuration register is 0x102
2. ทำการ expand file .bin ให้ออกมาอยู่ในรูป package file (ถ้าไม่มีไฟล์ให้ทำการ download และ copy เข้าไปใน flash ก่อน)
Device# request platform software package expand switch 1 file flash:cat3k_caa-universalk9.xxx.SSA.bin to flash: [1]: Expanding file [1]: Finished expanding all-in-one software package in switch 1 SUCCESS: Finished expanding all-in-one software package.
3. ตรววสอบ package file ด้วยคำสั่ง dir
Device# dir Directory of flash:/ 62084 -rw- 469326057 Nov 17 2015 11:45:23 -08:00 cat3k_caa-universalk9.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.bin 62492 -rw- 4875 Nov 17 2015 12:14:02 -08:00 packages.conf 62091 drwx 4096 Nov 17 2015 11:53:06 -08:00 dc_profile_dir 62488 -rw- 280912575 Nov 17 2015 12:13:01 -08:00 cat3k_caa-base.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.pkg 62494 -rw- 7197312 Nov 17 2015 12:13:03 -08:00 cat3k_caa-srdriver.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.pkg 62495 -rw- 33811696 Nov 17 2015 12:13:03 -08:00 cat3k_caa-infra.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.pkg 62496 -rw- 43109956 Nov 17 2015 12:13:03 -08:00 cat3k_caa-iosd-universalk9.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.pkg 62497 -rw- 28447888 Nov 17 2015 12:13:03 -08:00 cat3k_caa-platform.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.pkg 62498 -rw- 112669764 Nov 17 2015 12:13:03 -08:00 cat3k_caa-wcm.BLD_V161_0_THROTTLE_LATEST_20151116_230450.SSA.pkg 62087 -rwx 2097152 Nov 17 2015 12:00:40 -08:00 nvram_config 62093 -rw- 616 Nov 13 2015 15:15:05 -08:00 vlan.dat 1749458944 bytes total (482185216 bytes free)
4. ทำการตั้งค่า Boot file โดยชี้ไปที่ packages.conf จากนั้นทำการ save
Device# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Device(config)# no boot system Device(config)# boot system switch all flash:packages.conf Device(config)# exit Device# write memory Building configuration... Compressed configuration from 9150 bytes to 4070 bytes[OK]
5. ตรวจสอบ Boot variable ว่าเป็น flash:packages.conf แล้ว จากนั้นสั่ง reload
Device# show boot --------------------------- Switch 1 --------------------------- Current Boot Variables: BOOT variable = flash:packages.conf; Boot Variables on next reload: BOOT variable = flash:packages.conf; Manual Boot = yes Enable Break = no
Device# reload Reload command is being issued on Active unit, this will reload the whole stack Proceed with reload? [confirm] Chassis 1 reloading, reason - Reload command
6. หลังจาก boot ขึ้นมาใหม่แล้ว ให้ตรวจสอบ mode อีกครั้ง จะเห็นว่าเป็น Install mode แล้ว
Press RETURN to get started! Device> enable Device# show version Cisco IOS Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Experimental Version Denali 16.1.20151117:003253 [v161_0_throttle-BLD-BLD_V161_0_THROTTLE_LATEST_20151116_230450 104] Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Mon 16-Nov-15 16:34 by mcpre Cisco IOS-XE software, Copyright (c) 2005-2015 by cisco Systems, Inc. All rights reserved. Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0. The software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0. For more details, see the documentation or "License Notice" file accompanying the IOS-XE software, or the applicable URL provided on the flyer accompanying the IOS-XE software. ROM: IOS-XE ROMMON BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 3.1, engineering software (D) NSWA uptime is 2 minutes Uptime for this control processor is 10 minutes System returned to ROM by Power Failure System image file is "flash:packages.conf" Last reload reason: Reload Command This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http ://www.cisco.com/wwl /export/crypto/tool/stqrg. html If you require further assistance please contact us by sending email to export@cisco.com. Technology Package License Information: ----------------------------------------------------------------- Technology-package Technology-package Current Type Next reboot ------------------------------------------------------------------ lanbasek9 Permanent lanbasek9 cisco WS-C3850-24P (MIPS) processor with 894696K/6147K bytes of memory. Processor board ID FOC1602V2GZ 2 Virtual Ethernet interfaces 56 Gigabit Ethernet interfaces 8 Ten Gigabit Ethernet interfaces 2048K bytes of non-volatile configuration memory. 4194304K bytes of physical memory. 147136K bytes of Crash Files at crashinfo:. 1735776K bytes of Flash at flash:. 891K bytes of TCL Script Files at script:. 3830880K bytes of USB Flash at usbflash0:. 0K bytes of at webui:. Base Ethernet MAC Address : 20:37:06:53:0c:80 Motherboard Assembly Number : 73-12238-03 Motherboard Serial Number : FOC160159MG Model Revision Number : P2 Motherboard Revision Number : 03 Model Number : WS-C3850-24P System Serial Number : FOC1602V2GZ Switch Ports Model SW Version SW Image Mode ------ ----- ----- ---------- ---------- ---- * 1 32 WS-C3850-24T Denali 16.1.1 CAT3K_CAA-UNIVERSALK9 INSTALLConfiguration register is 0x102
ไม่มีความคิดเห็น:
แสดงความคิดเห็น