先日、Catalyst3550のIOSのアップデートを実行したついでにCatalyst2940のIOSもアップデート。
我が家のラボ環境では唯一、常時ネット環境に接続されている現用機の為、いつも以上に慎重に......
・アップデート前:12.1(22)EA6
・アップデート後:12.1(22)EA13
アップデートの手順は、先日のCatalyst3550の時と同じ。
1.まず最初に、PCとCatalyst3550を以下のとおりに接続。
PC(LANポート)----UTPストレートケーブル-----(Fa0/8)Cat2940
(USBポート)-------USB/シリアル変換-------(Console)
2.PCにインストール済みのTFTPサーバプログラム(3CDaemon)を起動。
3.Catalyst2940にログインし、show versionコマンドで現在のIOSのバージョンを確認。
c2940>en
Password:
c2940#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C2940 Software (C2940-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 21-Oct-05 02:01 by yenanh
Image text-base: 0x80010000, data-base: 0x80572000
ROM: Bootstrap program is C2950 boot loader
c2940 uptime is 5 days, 23 hours, 56 minutes
System returned to ROM by power-on
System image file is "flash:/c2940-i6q4l2-mz.121-22.EA6/c2940-i6q4l2-mz.121-22.EA6.bin"
:
(省略)
:
Configuration register is 0xF
c2940#
4.dirコマンドを打ち、Flash内のIOSイメージファイルと空き容量を確認。
空き容量は約3MBしかない事を確認。
c2940#dir
Directory of flash:/
2 -rwx 271 Mar 01 1993 09:03:47 +09:00 info
3 drwx 192 Mar 01 1993 09:06:22 +09:00 c2940-i6q4l2-mz.121-22.EA6
365 -rwx 271 Mar 01 1993 09:06:22 +09:00 info.ver
366 -rwx 676 Oct 21 2008 12:55:19 +09:00 vlan.dat
367 -rwx 5 Mar 01 1993 09:03:18 +09:00 private-config.text
369 -rwx 4323 Mar 01 1993 09:03:18 +09:00 config.text
7612416 bytes total (2999296 bytes free)
c2940#
5.PCとCatalyst2940との間で通信がとれるよう、IPアドレスを設定。
PC側を192.168.1.1/24、Catalyst2940側を192.168.1.10/24に設定。
自分の環境では、管理用VLANであるVLAN1をFastEthernet0/8に割り振っている為、Fa0/8のインターフェースをno shutdownコマンドで空けた。
c2940#conf t
Enter configuration commands, one per line. End with CNTL/Z.
c2940(config)#
c2940(config)#int vlan 1
c2940(config-if)#ip address 192.168.1.10 255.255.255.0
c2940(config-if)#no sh
c2940(config-if)#
c2940(config-if)#int fastEthernet 0/8
c2940(config-if)#no sh
c2940(config-if)#end
c2940#
6.PCとCatalyst2940との間で通信の疎通確認。
c2940#ping 192.168.1.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
c2940#
7.deleteコマンドを打ち、古いIOSのイメージファイルを、フォルダごと削除。
c2940#del /force /recursive flash:c2940-i6q4l2-mz.121-22.EA6
Delete filename [c2940-i6q4l2-mz.121-22.EA6]?
c2940#
8.PCに保存されている新しいバージョンのIOSイメージファイルを、Catalyst2940に転送。
c2940#copy tftp: flash:
Address or name of remote host []? 192.168.1.11
Source filename []? c2940-i6q4l2-mz.121-22.EA13.bin
Destination filename [c2940-i6q4l2-mz.121-22.EA13.bin]?
Accessing tftp://192.168.1.11/c2940-i6q4l2-mz.121-22.EA13.bin...
Loading c2940-i6q4l2-mz.121-22.EA13.bin from 192.168.1.11 (via Vlan1):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3170070 bytes]
3170070 bytes copied in 63.516 secs (49910 bytes/sec)
c2940#
9.dirコマンドを打ち、新しいIOSイメージファイルがFlashに保存されている事を確認。
c2940#
c2940#dir
Directory of flash:/
2 -rwx 271 Mar 01 1993 09:03:47 +09:00 info
3 -rwx 3170070 Mar 07 1993 09:03:57 +09:00 c2940-i6q4l2-mz.121-22.EA13.bin
365 -rwx 271 Mar 01 1993 09:06:22 +09:00 info.ver
366 -rwx 676 Oct 21 2008 12:55:19 +09:00 vlan.dat
367 -rwx 5 Mar 01 1993 09:03:18 +09:00 private-config.text
369 -rwx 4323 Mar 01 1993 09:03:18 +09:00 config.text
7612416 bytes total (4433920 bytes free)
c2940#
10.新しいバージョンのIOSで起動するよう、投入したバージョンでbootオプションを設定。
c2940#conf t
c2940(config)#boot system flash:c2940-i6q4l2-mz.121-22.EA13.bin
c2940(config)#end
c2940#
11.show bootコマンドを打ち、Bootオプションが投入したIOSのバージョンになっている事を確認。
c2940#sh boot
BOOT path-list: flash:c2940-i6q4l2-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
c2940#
12.write memoryコマンドを打ち、設定内容を保存。
c2940#write memory
Building configuration...
[OK]
c2940#
13.reloadコマンドを打ち、Catalyst2940を再起動。
新しいバージョンで起動する事を確認。
c2940#reload
Proceed with reload? [confirm]
000212: *Mar 7 09:06:02.852: %SYS-5-RELOAD: Reload requested
C2940 Boot Loader (C2940-HBOOT-M) Version 12.1(13r)AY1, RELEASE SOFTWARE (fc1)
Compiled Mon
30-Jun-03 15:16 by antonino
WS-C2940-8TT-S starting...
:
(略)
:
Loading "flash:c2940-i6q4l2mz.121-
22.EA13.bin"...#################################################
################################################################
################################################################
############################
File "flash:c2940-i6q4l2-mz.121-22.EA13.bin" uncompressed and installed, entry point:
0x80010000
executing...
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) C2940 Software (C2940-I6Q4L2-M), Version 12.1(22)EA13, 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: 0x8057C000
:
(略)
:
c2940>
c2940>
c2940>en
Password:
000016: *Mar 1 09:00:50.799: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
c2940#
14.上記5.で空けたポートFa0/8をshutdownコマンドで閉じて、exit。
c2940#conf t
Enter configuration commands, one per line. End with CNTL/Z.
c2940(config)#int fastEthernet 0/8
c2940(config-if)#
c2940(config-if)#sh
c2940(config-if)#end
c2940#exit
15.30分程PCでWebサイトにアクセスし、Catalyst2940の正常性の確認。
問題無かったら、一連の作業は終了。