สำหรับปัญหาที่ค่า Configuration register ค้างอยู่ที่ 0x142 แม้จะสั่งแก้เป็น 0x102 หรือ 0x2102 ไปแล้วก็ตาม (พบบ่อยในสวิตช์ตระกูล Catalyst 3650, 3850 และ 9000 Series) สาเหตุเกิดจากคำสั่งพิเศษที่ชื่อว่า system ignore startupconfig ถูกเปิดใช้งานอยู่ครับ
วิธีแก้ไขอย่างละเอียดที่ผมค้นพบจาก Cisco Community ที่หาไม่ได้จาก AI ณ เวลานี้ (แต่หลังจากนี้ไม่แน่นะครับ ถ้า AI Learn ข้อมูลจากบทความนี้ ^^) ไปดูวิธีแก้ปัญหาด้วยกันครับ
1. ปัญหาที่พบ (The Problem)
ผู้ใช้งานพบว่าเมื่อสั่ง show version เครื่องจะแสดงสถานะ:
Configuration register is 0x142 (will be 0x102 at next reload)
แต่พอทำการ Reload หรือบูตเครื่องใหม่จริงๆ ค่าตัวเลขกลับไม่เปลี่ยน และเครื่องยังคงบูตขึ้นมาโดย ไม่โหลดไฟล์ Config (เหมือนเพิ่งแกะกล่องใหม่) สาเหตุเพราะค่า 4 ในเลข 0x142 คือบิตที่สั่งให้เครื่อง “Ignore Startup Config” ซึ่งในอุปกรณ์รุ่นใหม่ๆ คำสั่ง config-register เพียงอย่างเดียวมักจะแก้ไม่หายเพราะมีคำสั่งระดับ System คุมไว้อยู่นั่นเองครับ
Smart Licensing Status: UNREGISTERED/EVAL EXPIRED
cisco WS-C3850-48P (MIPS) processor (revision A0) with 832395K/6147K bytes of memory.
1 Virtual Ethernet interface
52 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
250456K bytes of Crash Files at crashinfo:.
1609272K bytes of Flash at flash:.
0K bytes of WebUI ODM Files at webui:.Base Ethernet MAC Address : ec:e1:xx:xx:xx:xx
Motherboard Assembly Number : 73-14442-08
Motherboard Serial Number : xxxxxxxxxxxxx
Model Revision Number : A0
Motherboard Revision Number : A1
Model Number : WS-C3850-48P
System Serial Number : xxxxxxxxxxxxSwitch Ports Model SW Version SW Image Mode
—— —– —– ———- ———- —-
* 1 56 WS-C3850-48P 16.9.5 CAT3K_CAA-UNIVERSALK9 BUNDLEConfiguration register is 0x142
2. วิธีแก้ไข (The Solution)
วิธีที่ได้ผลที่สุด (Solution) ตามที่ระบุใน Cisco Community คือต้องไปสั่ง “ยกเลิกการข้ามการโหลด Config” ในระดับระบบก่อนครับ
ขั้นตอนที่ 1: ยกเลิกคำสั่ง Ignore Config
เข้าสู่โหมด Configuration และพิมพ์คำสั่งนี้ครับ
Switch# configure terminal
Switch(config)# no system ignore startupconfig switch all
(คำสั่งนี้จะไปปลดล็อคให้ Switch ทุกตัวใน Stack กลับมาอ่านไฟล์ Config จาก NVRAM)
ขั้นตอนที่ 2: ตั้งค่า Register ให้ถูกต้อง
หลังจากนั้นให้ตั้งค่า Register ซ้ำอีกครั้งเพื่อความมั่นใจ:
Switch(config)# config-register 0x102
Switch(config)# exit
ขั้นตอนที่ 3: บันทึกและตรวจสอบ
ขั้นตอนนี้สำคัญมาก ต้องบันทึกก่อน Reload ครับ:
Switch# copy running-config startup-config
Switch# write memory
จากนั้นเช็กด้วย show version อีกครั้ง บรรทัดสุดท้ายต้องเตรียมพร้อมเปลี่ยนค่า และเมื่อ reload แล้ว ค่าควรจะเปลี่ยนเป็น 0x102 อย่างถาวรครับ
cisco#sh version
Cisco IOS XE Software, Version 16.09.05
Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.9.5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Thu 30-Jan-20 18:17 by mcpreCisco IOS-XE software, Copyright (c) 2005-2020 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 4.68, RELEASE SOFTWARE (P)cisco uptime is 5 minutes
Uptime for this control processor is 8 minutes
System returned to ROM by Reload Command
System image file is “flash:cat3k_caa-universalk9.16.09.05.SPA.bin”
Last reload reason: Reload Command.Technology Package License Information:
——————————————————————————
Technology-package Technology-package
Current Type Next reboot
——————————————————————————
ipservicesk9 Smart License ipservicesk9
None Subscription Smart License NoneSmart Licensing Status: UNREGISTERED/EVAL EXPIRED
cisco WS-C3850-48P (MIPS) processor (revision A0) with 832395K/6147K bytes of memory.
Processor board ID xxxxxxxxxxxx
1 Virtual Ethernet interface
52 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
250456K bytes of Crash Files at crashinfo:.
1609272K bytes of Flash at flash:.
0K bytes of WebUI ODM Files at webui:.Base Ethernet MAC Address : ec:e1:a9:xx:xx:xx
Model Revision Number : A0
Motherboard Revision Number : A1
Model Number : WS-C3850-48P
System Serial Number : xxxxxxxxxxxSwitch Ports Model SW Version SW Image Mode
—— —– —– ———- ———- —-
* 1 56 WS-C3850-48P 16.9.5 CAT3K_CAA-UNIVERSALK9 BUNDLEConfiguration register is 0x102
3. หากยังไม่หาย (Alternative Method ผ่าน ROMMON)
หากทำใน IOS แล้วยังไม่สำเร็จ (ซึ่งพบน้อยมากถ้าใช้คำสั่งด้านบนแล้ว) ต้องแก้ผ่านโหมด ROMMON:
1. บูตเครื่องแล้วกดปุ่ม Mode ค้างไว้ (หรือ Ctrl+Break) เพื่อเข้า switch: prompt
2. ใช้คำสั่งตรวจสอบตัวแปร: set
3. มองหาบรรทัด SWITCH_IGNORE_STARTUP_CFG=1
4. สั่งล้างค่านี้: unset SWITCH_IGNORE_STARTUP_CFG
5. พิมพ์ boot หรือ reset เพื่อเริ่มเครื่องใหม่
ทำตามนี้ผมเชื่อว่า อาการไฟดับ แล้วสวิตช์ boot กลับมา จะโหลด configuration จาก NVRAM กลับมาแน่นอนครับ ช่วยแก้ไขปัญหาเรื่อง reload แล้ว configuration หายได้ หวังว่าบทความนี้จะเป็นประโยชน์กับเพื่อน ๆ ทุกคนครับ