設置交換機的地址:
Switch>en Switch#config t Switch(config)#interface VLAN 1 Switch(config-if)#ip add e.e.e.e 掩碼 Switch(config-if)#^Z Switch>write memory |
Ping 主機地址應該能夠ping通
查看當前的系統文件
Switch#dir Directory of flash:/ -rwx xxx Mar 01 1993 00:15:41 info –rwx xxxxx Dec 10 1999 19:12:29 c2900XL-diag-mz-112.8- SA2 drwx xxxxx Mar 01 1993 00:17:43 html 179 –rwx xxxx Mar 01 1993 00:02:46 config.text 6 -rwx xxxx Jan 01 1970 00:36:10 c2900XL-h-mz-112.8-SA2 230 –rwx xxx Mar 01 1993 00:17:43 info.ver 231 –rwx xxx Jan 01 1970 00:42:00 env_vars |
其中c2900XL-h-mz-112.8-SA2 就是系統文件,交換機中的系統文件名與它相似,接著使用delete 命令將其刪除
Switch#delete flash:c2900XL-h-mz-112.8-SA2 |
還要將Html目錄中的文件刪除
Switch#delete flash:/html/*.* Switch#delete flash:/html/Snmp/*.* |
需要回車鍵來確認每個文件的刪除
將新的系統文件傳到 Flash中
Switch#tar /x tftp://tftp_server_ip_address/c2900XL-hs-mz-122.8-SA5.tar flash: Loading/path/file name.tar from server_ip_address(via!) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! extracting advanced.gif (2648 bytes) extracting amber.gif (530 bytes) extracting bar.gif (4156 bytes) extracting cool.gif (530 bytes) extracting daytona.gif (1470 bytes) extracting duplgnd.gif (639 bytes) |
Switch #config t Switch(config)#boot system flash:c2900XL-hs-mz-112.8-SA5.bin Switch(config)#^Z |
重起交換機,不需要存儲參數
Switch#reload |
若不能找到c2900XL-hs-mz-112.8-SA5.bin文件,可在Switch:狀態下鍵入SET可看到當前的環境變量,可以修改變量BOOT
Switch:BOOT=flash:c2900XL-hs-mz-112.8-SA5.bin |
若在刪除系統文件后因非正常原因導致交換機重啟,可用xmodem協議將系統文件送入交換機
Switch:copy xmodem:flash:c2900XL-c3h2s-mz-120.5-XP.bin Begin the Xmodem or Xmodem-1K transfer now 。。。 Switch:flash:c2900XL-c3h2s-mz-120.5-XP.bon |