ここでは、IOSバージョン12.1(22)EA13から12.1(22)EA14へバージョンアップします。
新しいIOSファイルの拡張子は、binになります。
IOSのバックアップとTFTPサーバの設定は、以下を参考してください。
現在のIOSバージョンとイメージファイルを確認します。
Switch# show version Cisco Internetwork Operating System Software IOS (tm) C2940 Software (C2940-I6K2L2Q4-M), Version 12.1(22)EA13, RELEASE SOFTWARE (fc2) ※現在のバージョンは、「Version 12.1(22)EA13」になります。 Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2009 by cisco Systems, Inc. Compiled Fri 27-Feb-09 22:32 by amvarma Image text-base: 0x80010000, data-base: 0x8068C000 ROM: Bootstrap program is C2950 boot loader Switch uptime is 3 weeks, 2 days, 11 hours, 54 minutes System returned to ROM by power-on System image file is "flash:/c2940-i6k2l2q4-mz.121-22.EA13/c2940-i6k2l2q4-mz.121-22.EA13.bin" 32K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address: 00:0D:BD:4E:53:C0 Motherboard assembly number: 73-8784-05 Power supply part number: 341-0085-01 Motherboard serial number: FOC073306S9 Power supply serial number: HIC0727021J Model revision number: B0 Motherboard revision number: A0 Model number: WS-C2940-8TT-S System serial number: FHK0734Z0AB Configuration register is 0xF Switch#
IOSイメージファイルが格納されているディレクトリを確認します。
Switch# dir flash: Directory of flash:/ 3 -rwx 285 Mar 01 1993 09:09:27 +09:00 info 4 rwx 192 Mar 01 1993 09:13:25 +09:00 c2940-i6k2l2q4-mz.121-22.EA13.bin 5 drwx 4416 Mar 01 1993 09:10:22 +09:00 html 321 -rwx 285 Mar 01 1993 09:13:25 +09:00 info.ver 322 -rwx 1909 Mar 06 1993 07:46:41 +09:00 config.text 323 -rwx 1100 Mar 06 1993 07:46:41 +09:00 private-config.text 7612416 bytes total (2113024 bytes free) Switch#
既存のIOSイメージファイルを削除します。
Switch# delet flash: Delete filename[]? c2940-i6k2l2q4-mz.121-22.EA13.bin ⇒削除するIOSを入力。 Delete flash:c2940-i6k2l2q4-mz.121-22.EA13.bin?[confirm] ⇒Enterを押下。
削除の確認をします。
Switch# dir flash: Directory of flash:/ 3 -rwx 285 Mar 01 1993 09:09:27 +09:00 info 5 drwx 4416 Mar 01 1993 09:10:22 +09:00 html 321 -rwx 285 Mar 01 1993 09:13:25 +09:00 info.ver 322 -rwx 1909 Mar 06 1993 07:46:41 +09:00 config.text 323 -rwx 1100 Mar 06 1993 07:46:41 +09:00 private-config.text 7612416 bytes total (2113024 bytes free) Switch#
TFTPサーバからIOSイメージファイルをフラッシュメモリに転送します。
Switch# copy tftp: flash: Address or name of remote host []? 192.168.0.3 Source filename []? c2940-i6k2l2q4-mz.121-22.EA14.bin Destination filename [c2940-i6k2l2q4-mz.121-22.EA14.bin]? Accessing tftp://192.168.0.3/c2940-i6k2l2q4-mz.121-22.EA14.bin… Loading c2940-i6k2l2q4-mz.121-22.EA14.bin from 192.168.0.3 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 3758886 bytes copied in 92.504 secs (33465 bytes/sec) Switch#
新しいIOSイメージファイルが正しく転送されたか確認します。
Switch# dir flash:
Directory of flash:/
3 -rwx 285 Mar 01 1993 09:09:27 +09:00 info
4 rwx 192 Mar 01 1993 09:13:25 +09:00 c2940-i6k2l2q4-mz.121-22.EA14.bin
5 drwx 4416 Mar 01 1993 09:10:22 +09:00 html
321 -rwx 285 Mar 01 1993 09:13:25 +09:00 info.ver
322 -rwx 1909 Mar 06 1993 07:46:41 +09:00 config.text
323 -rwx 1100 Mar 06 1993 07:46:41 +09:00 private-config.text
7612416 bytes total (2113024 bytes free)
Switch#
「Boot path-list:」の項目にIOSファイル名が指定されていないことを確認します。
Switch# show boot
BOOT path-list:flash:/c2940-i6k2l2q4-mz.121-22.EA13/c2940-i6k2l2q4-mz.121-22.EA13.bin
Config file: flash:/config.text
Private Config file: flash:/private-config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file
buffer size: 32768
Timeout for Config
Download: 0 seconds
Config Download
via DHCP: disabled (next boot: disabled)
Switch#
もし、上記のようにBoot path-listにIOSファイル名が指定されていれば、boot設定の削除をします。ない場合は、スイッチの再起動を行います。
boot設定の削除
Switch# conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# no boot system
スイッチの電源ケーブルを抜き、電源ケーブルを差し込んでスイッチを再起動させます。
IOSのバージョンを確認します。新しいバージョンになっていれば成功です。
Switch# show version
Cisco Internetwork Operating System Software
IOS (tm) C2940 Software (C2940-I6K2L2Q4-M), Version 12.1(22)EA14, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by cisco Systems, Inc.
Compiled Fri 27-Feb-09 22:32 by amvarma
Image text-base: 0x80010000, data-base: 0x8068C000
ROM: Bootstrap program is C2950 boot loader
Switch uptime is 3 weeks, 2 days, 11 hours, 54 minutes
System returned to ROM by power-on
System image file is "flash:c2940-i6k2l2q4-mz.121-22.EA14.bin"