2010年6月10日 星期四

Cisco Catalyst C2950 入手記事

近日為練習,入手CISCO Catalyst C2950一台
狀況不明,髒髒舊舊。















改不了宅宅的習慣,一陣拆拆弄弄,加上滿身飛塵,總算是有點樣子了。
插電,測測功耗;7W,不知算高還算低?
連上Console,要密碼……
上CISCO查查流程,直接重置吧!

拔電後按住前面板MODE鍵,插電。
畫面出現switch:時放開MODE鍵,進入BABY IOS。
此時先載入FLASH資料(switch:flash_init)
再執行flash_helper(switch:flash_helper)
此時再利用dir flash:指令,查詢目前flash內容(switch:dir flash)
看到config.text了嗎?這就是Switch的設定檔,密碼也在裡面喔!
如要保留舊設定及密碼,可將config.text改名為config.old。
(switch:rename flash:config.text flash:config.old)
執行boot,重新啟動 (switch:boot)
*如不保留,則清除即可(Switch:delete flash: config.text)( Switch:reset)
這時候機器便會回復至預設值,便可以重新設定。
(記得設定完後要下write指令,將設定寫入!)

同時,如發現IOS版本過舊,亦可一併升級。
IOS下載(須於CISCO註冊):
下載後置於tftp目錄下,執行tftp32。
Switch端操作如下:
1. 首先設定Switch IP,方便連線至TFTP使用。
C2950-24>enable
C2950-24#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
C2950-24(config)#interface vlan 1
C2950-24(config-if)#ip address 192.168.100.224 255.255.255.0
C2950-24(config-if)#no shutdown

2. 檢查flash大小及內容。
C2950-24#sh flash:
Directory of flash:/
2 -rwx 2664051 Apr 17 1993 06:52:12 +00:00 c2950-i6q4l2-mz.121-11.EA1.bin
3 -rwx 5 Mar 01 1993 03:23:42 +00:00 private-config.text
18 -rwx 3721946 Mar 01 1993 03:19:52 +00:00 c2950-i6k2l2q4-mz.121-22.EA13.bin
5 -rwx 2114 Mar 04 1993 19:33:45 +00:00 config.old
20 -rwx 1471 Mar 01 1993 03:23:42 +00:00 config.text
7 -rwx 109 Apr 17 1993 06:53:03 +00:00 info
8 drwx 704 Apr 17 1993 06:53:01 +00:00 html
19 -rwx 109 Apr 17 1993 06:53:03 +00:00 info.ver
22 -rwx 314 Mar 01 1993 03:21:51 +00:00 env_vars

7741440 bytes total (54784 bytes free)

3. 清除管理頁面及舊IOS(如空間足夠或僅升級CLI版則不需)
C2950-24#del flash:html/*
Delete filename [html/*]?
Delete flash:html/homepage.htm? [confirm]
Delete flash:html/not_supported.html? [confirm]
Delete flash:html/common.js? [confirm]
Delete flash:html/cms_splash.gif? [confirm]
Delete flash:html/cms_13.html? [confirm]
Delete flash:html/cluster.html? [confirm]
Delete flash:html/Redirect.jar? [confirm]
Delete flash:html/c4v4_disc.sgz? [confirm]
Delete flash:html/CMS.sgz? [confirm]
Delete flash:html/CiscoChartPanel.sgz? [confirm]
Delete flash:html/cms_boot.jar? [confirm]

C2950-24#del c2950-i6q4l2-mz.121-11.EA1.bin
Delete filename [c2950-i6q4l2-mz.121-11.EA1.bin]?
Delete flash:c2950-i6q4l2-mz.121-11.EA1.bin? [confirm]

4. 從tftp下載ios並解壓縮
C2950-24# archive tar /xtract tftp://192.168.1.2/c2950-i6k2l2q4-tar.121-22.EA13.tar flash:

5. 確認IOS已下載並解壓縮
C2950-24#show flash:
Directory of flash:/
2 -rwx 3721946 Mar 01 1993 00:56:44 +00:00 c2950-i6k2l2q4-mz.121-22.EA13.bin
3 -rwx 5 Mar 01 1993 03:23:42 +00:00 private-config.text
20 -rwx 1471 Mar 01 1993 03:23:42 +00:00 config.text
7 -rwx 112 Mar 01 1993 00:54:00 +00:00 info
8 drwx 4416 Mar 01 1993 00:57:43 +00:00 html
19 -rwx 112 Mar 01 1993 00:58:18 +00:00 info.ver
22 -rwx 314 Mar 01 1993 03:21:51 +00:00 env_vars

7741440 bytes total (2145280 bytes free)

6. 驗證IOS
C2950-24#verify flash:c2950-i6k2l2q4-mz.121-22.EA13.bin
Verified flash:c2950-i6k2l2q4-mz.121-22.EA13.bin

7. 指定開機IOS
C2950-24#config terminal
C2950-24(config)#boot system flash:c2950-i6k2l2q4-mz.121-22.EA13.bin
C2950-24(config)#exit
C2950-24#

8. 重開機並寫入開機檔
C2950-24#reload
Proceed with reload? [confirm]

C2950-24>en
C2950-24#write

打完收工!

買二手機器建議注意以下事項:
1. 建議可找專業賣家購買(網拍賣家,台北、台南、高雄均有),減少問題發生。
2. 基本必備電源線、Console線,Router互聯需Serial cable,但要注意規格!
3. 與CISCO CONSOLE連線需要終端機軟體,IOS更新需要架設TFTP,可供使用的軟體很多,順手就好。(個人使用PuTTY與tftpd32)
4. 與Console連線時,須注意參數設定:
• Bits per second: 9600
• Data bits: 8
• Parity: None
• Stop bits: 1
• Flow control: None
5. 各級考試範圍不同,請謹慎挑選機型及IOS。

參考網頁:
C2950產品技術資料
http://www.cisco.com/en/US/products/hw/switches/ps628/products_tech_note09186a0080169696.shtml
CISCO IOS下載
http://tools.cisco.com/support/downloads/pub/Redirect.x?mdfid=272995357

沒有留言: