kunggiggs
นายวัชรินทร์ คุึณาธิปพงษ์

วิธีการเข้า switch 2960 ของ cisco เมื่อจำ password ไม่ได้


ลืม password เข้า switch 2960 ของ cisco

ในกรณีที่ลืม password ในการเข้า switch 2960 ของ cisco เราจะมีขั้นตอนในการแก้ปัญหา(เป็นการทำ password recovery)ดังนี้

  1. เชื่อมต่อ switch ที่ console port
  2. เปิดโปรแกรมที่ใช้ config switch ขึ้นมา (เช่น Hyper terminal)
  3. ทำการรีบูต switch โดยการถอดสาย power แล้วเสียบเข้าไปใหม่
  4. เมื่อ switch เปิดขึ้นมา ภายในเวลาไม่เกิน 15 วินาที่ ให้กดปุ่ม mode (บน switch )ค้างเอาไว้ จนกระทั่งสีของหลอดไฟ system เปลี่ยนจากสีเขียวที่กระพริบ ไปเป็นสีเหลืองอำพัน และจนเป็นสีเขียวที่ไม่กระพริบแล้วจึงค่อยปล่อยปุ่ม mode ที่กดไว้

  จากนั้นจะมีข้อความจาก 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
  • ทำการเปลี่ยนชื่อไฟล์ configure ไปเป็น config.text.old โดยพิมพ์
      switch: rename flash:config.text flash:config.text.old
    - ทำการ reboot system โดยพิมพ์
      switch: boot

    เมื่อ 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

คำสำคัญ (Tags): #cisco#switch
หมายเลขบันทึก: 149443เขียนเมื่อ 26 พฤศจิกายน 2007 23:57 น. ()แก้ไขเมื่อ 24 มิถุนายน 2012 02:52 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (4)

วิธีการเข้า

ช่วยสอนวิที config switch cisco ได้หลืป่าว......

ช่วยสอนวิที config switch cisco ได้หลืป่าว......

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท