版本挑選
版本號說明請參考友站連結:
大軒軒的筆記本 - Cisco版本號說明12.4和15
官方工具:
更新步驟
1. 設定 Layer 3 介面(int vlan1 也可以),待會要利用 TFTP 來傳輸 Image
1 2 3 4 5 6
| Switch#conf t
Switch(config)#int fastEthernet 0 Switch(config-if)#ip address 192.168.1.33 255.255.255.0 Switch(config-if)#no shutdown Switch(config-if)#
|
2. 測通 TFTP Server
1 2 3 4 5 6
| Switch#ping 192.168.1.100 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.100, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/203/1000 ms Switch#
|
3. Copy IOS Image 到 flash 上
1 2 3 4 5 6 7 8 9 10
| Switch#copy tftp flash: Address or name of remote host []? 192.168.1.100 Source filename []? c2960x-universalk9-mz.152-2.E9.bin Destination filename [c2960x-universalk9-mz.152-2.E9.bin]? Accessing tftp://192.168.1.100/c2960x-universalk9-mz.152-2.E9.bin... Loading c2960x-universalk9-mz.152-2.E9.bin from 192.168.1.100 (via FastEthernet0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 21141504 bytes]
21141504 bytes copied in 171.882 secs (123000 bytes/sec) Switch#
|
4. 檢查檔案
1 2 3 4 5 6 7 8 9 10 11 12 13
| Switch#show flash:
Directory of flash:/
671 -rwx 1048 Nov 23 2018 02:34:38 +00:00 multiple-fs 2 -rwx 34 Nov 23 2018 02:38:12 +00:00 pnp-tech-time 3 -rwx 11117 Nov 23 2018 02:38:14 +00:00 pnp-tech-discovery-summary 672 -rwx 21141504 Nov 23 2018 02:53:15 +00:00 c2960x-universalk9-mz.152-2.E9.bin 4 drwx 512 Aug 8 2018 17:23:16 +00:00 c2960x-universalk9-mz.152-2.E7 669 drwx 512 Aug 8 2018 17:23:16 +00:00 dc_profile_dir
122185728 bytes total (73718272 bytes free) Switch#
|
5. 設定 boot 參數為新的 IOS Image
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| Switch#show boot BOOT path-list : flash:/c2960x-universalk9-mz.152-2.E7/c2960x-universalk9-mz.152-2.E7.bin Config file : flash:/config.text Private Config file : flash:/private-config.text Enable Break : yes Manual Boot : no Allow Dev Key : yes HELPER path-list : Auto upgrade : yes Auto upgrade path : NVRAM/Config file buffer size: 524288 Timeout for Config Download: 0 seconds Config Download via DHCP: disabled (next boot: disabled) Switch#
Switch#conf t Switch(config)#boot system flash:c2960x-universalk9-mz.152-2.E9.bin
Switch(config)#end Switch#show boot BOOT path-list : flash:c2960x-universalk9-mz.152-2.E9.bin Config file : flash:/config.text Private Config file : flash:/private-config.text Enable Break : yes Manual Boot : no Allow Dev Key : yes HELPER path-list : Auto upgrade : yes Auto upgrade path : NVRAM/Config file buffer size: 524288 Timeout for Config Download: 0 seconds Config Download via DHCP: disabled (next boot: disabled) Switch#
|
6. 存檔 & reload
1 2 3 4 5 6 7
| Switch#write Building configuration... [OK] Switch#reload Proceed with reload? [confirm]
Nov 23 03:05:08.769: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload command.
|