ในกรณีที่ลืม password ในการเข้า switch 2960 ของ cisco เราจะมีขั้นตอนในการแก้ปัญหา(เป็นการทำ password recovery)ดังนี้
จากนั้นจะมีข้อความจาก switch ขึ้นมาเพื่อบอกว่า password
recovery ถูก enable หรือไม่
ถ้า password recovery enable จะมีข้อความนี้ปรากฏขึ้น
The system has been interrupted prior to initializing the
flash file system. The following commands will initialize the flash
file system, and finish loading the operating system software:
จากนั้นให้ทำตามขั้นตอนดังนี้
- Initialize the flash file system โดยการพิมพ์(ตัวหนา)
switch: flash_init
- Load any
helper files โดยพิมพ์
switch:
load_helper
- แสดงไฟล์ที่อยูใน flash
memory โดยพิมพ์
switch: dir
flash: ผลที่ได้ประมาณนี้
Directory of flash:
13 drwx 192 Mar 01 1993 22:30:48 c2960-lanbase-mz.122-25.FX
11 -rwx 5825 Mar 01 1993 22:31:59 config.text
18 -rwx 720 Mar 01 1993 02:21:30 vlan.dat
เมื่อ switch boot ขึ้นมาแล้วจะมีข้อความนี้ปรากฏขึ้นให้ตอบ no
Continue with the configuration dialog? [yes/no]: N
จากนั้นให้ทำตามนี้
- เข้าสูโหมด privileged exec
Switch> enable
- ทำการเปลี่ยนชื่อ
config กลับไปเป็นของเดิม
Switch# rename flash:config.text.old
flash:config.text
- ทำการคัดลอกไฟล์ config ลง memory
Switch# copy
flash:config.text system:running-config
Source filename [config.text]?
Destination filename [running-config]?
configure file จะถูก reload ใหม่
จากนี้ก็จะทำการแก้ไข password ได้แล้ว โดยเข้าไปที่ global
configuration เพื่อเปลี่ยน password
Switch# configure terminal
Switch (config)# enable secret
password
เมื่อตั้ง password เสร็จแล้วให้ออกมาที่โหมด privileged exec
เพื่อทำการคัดลอก config จาก running config ลงสู่ startup config
ก็เป็นการเสร็จขั้นตอนการทำ password recovery
Switch# copy running-config
startup-config
แหล่งอ้างอิง: Cisco
วิธีการเข้า
ดีแล้ว
ช่วยสอนวิที config switch cisco ได้หลืป่าว......
ช่วยสอนวิที config switch cisco ได้หลืป่าว......