Cisco 3550-SMI IOS升级过程分享
时间:2007-05-24 16:39:45
来源: 作者: 点击:次 出处:技术无忧
一 配置C3550的管理地址
配置管理地址的目的是方便把设备上现有的IOS备份出去以及把新的IOS传到3550的FLASH上来
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 1
Switch(config-if)#ip add 10.1.27.240 255.255.255.0
Switch(config-if)#exit
Switch(config)#ip default-gateway 10.1.27.254
Switch(config)#^Z
Switch#show ip int bri
Interface IP-Address OK? Method Status Protocol
VLAN1 10.1.27.240 YES NVRAM up up
FastEthernet0/1 unassigned YES unset down down
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset up up
GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/2 unassigned YES unset down down
Switch#ping 10.1.27.59
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.27.59, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/3 ms
Switch#
二备份现有的IOS和配置
在PC机上运行TFTPserver,把设备当前运行的IOS和配置文件上传到PC机上。
Switch#dir
Directory of flash:/
2 -rwx 1645807 Mar 01 1993 01:10:52 c3500XL-c3h2s-mz-120.5.2-XU.bin
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (937472 bytes free)
Switch#copy flash tftp
Source filename []? c3500XL-c3h2s-mz-120.5.2-XU.bin
Address or name of remote host []? 10.1.27.59
Destination filename [c3500XL-c3h2s-mz-120.5.2-XU.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1645807 bytes copied in 12.79 secs (137150 bytes/sec)
Switch#
三 删除设备上现有的IOS
由于考虑到设备的硬件flash大小不够,所以要把现有的IOS删除掉,以便新的IOS顺利上传到flash上来。
Switch#delete c3500XL-c3h2s-mz-120.5.2-XU.bin
Delete filename [c3500XL-c3h2s-mz-120.5.2-XU.bin]?
Delete flash:c3500XL-c3h2s-mz-120.5.2-XU.bin? [confirm]
Switch#dir
Directory of flash:/
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (2584064 bytes free)
Switch#
四上传新的IOS到flash
把新的IOS放在TFTP server的root目录下
Switch#dir
Directory of flash:/
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (2584064 bytes free)
Switch#copy tftp flash
Address or name of remote host [10.1.27.59]?
Source filename [c3500XL-c3h2s-mz-120.5.2-XU.bin]? c3550-smi.bin
Destination filename [c3550-smi.bin]?
Accessing tftp://10.1.27.59/c3550-smi.bin...
Loading c3550-smi.bin from 10.1.27.59 (via VLAN1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 1645807 bytes]
1645807 bytes copied in 48.334 secs (34287 bytes/sec)
Switch#dir
Directory of flash:/
2 -rwx 1645807 Mar 01 1993 00:18:31 c3550-smi.bin
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (937472 bytes free)
Switch#
五更改设备启动引导文件
更改设备的系统引导文件,以便设备正常从新的IOS启动。
Switch#show boot
BOOT path-list: flash:c3500XL-c3h2s-mz-120.5.2-XU.bin
Config file: flash:config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file buffer size: 32768
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#boot system flash:c3550-smi.bin
Switch(config)#^Z
Switch#wr
00:20:41: %SYS-5-CONFIG_I: Configured from console by console
Switch#show boot
BOOT path-list: flash:c3550-smi.bin
Config file: flash:config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file
buffer size: 32768
Switch#
六重新启动查看是否升级成功
Cisco-3550-SMI#reload
Proceed with reload? [confirm]
00:05:32: %SYS-5-RELOAD: Reload requested
C3500XL Boot Loader (C3500-HBOOT-M) Version 12.0(5.2)XU, MAINTENANCE INTERIM SOFTWARE
Compiled Mon 17-Jul-00 18:42 by ayounes
starting...
Base ethernet MAC Address: 00:04:4d:72:87:c0
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 110 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2675712
flashfs[0]: Bytes available: 936960
flashfs[0]: flashfs fsck took 3 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:c3550-smi.bin"...############################################################################################################
File "flash:c3550-smi.bin" uncompressed and installed, entry point: 0x3000
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
网页设计 http://www.pc51.net/www/ 提更多网页设计信息
配置管理地址的目的是方便把设备上现有的IOS备份出去以及把新的IOS传到3550的FLASH上来
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 1
Switch(config-if)#ip add 10.1.27.240 255.255.255.0
Switch(config-if)#exit
Switch(config)#ip default-gateway 10.1.27.254
Switch(config)#^Z
Switch#show ip int bri
Interface IP-Address OK? Method Status Protocol
VLAN1 10.1.27.240 YES NVRAM up up
FastEthernet0/1 unassigned YES unset down down
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset up up
GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/2 unassigned YES unset down down
Switch#ping 10.1.27.59
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.27.59, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/3 ms
Switch#
二备份现有的IOS和配置
在PC机上运行TFTPserver,把设备当前运行的IOS和配置文件上传到PC机上。
Switch#dir
Directory of flash:/
2 -rwx 1645807 Mar 01 1993 01:10:52 c3500XL-c3h2s-mz-120.5.2-XU.bin
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (937472 bytes free)
Switch#copy flash tftp
Source filename []? c3500XL-c3h2s-mz-120.5.2-XU.bin
Address or name of remote host []? 10.1.27.59
Destination filename [c3500XL-c3h2s-mz-120.5.2-XU.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1645807 bytes copied in 12.79 secs (137150 bytes/sec)
Switch#
三 删除设备上现有的IOS
由于考虑到设备的硬件flash大小不够,所以要把现有的IOS删除掉,以便新的IOS顺利上传到flash上来。
Switch#delete c3500XL-c3h2s-mz-120.5.2-XU.bin
Delete filename [c3500XL-c3h2s-mz-120.5.2-XU.bin]?
Delete flash:c3500XL-c3h2s-mz-120.5.2-XU.bin? [confirm]
Switch#dir
Directory of flash:/
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (2584064 bytes free)
Switch#
四上传新的IOS到flash
把新的IOS放在TFTP server的root目录下
Switch#dir
Directory of flash:/
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (2584064 bytes free)
Switch#copy tftp flash
Address or name of remote host [10.1.27.59]?
Source filename [c3500XL-c3h2s-mz-120.5.2-XU.bin]? c3550-smi.bin
Destination filename [c3550-smi.bin]?
Accessing tftp://10.1.27.59/c3550-smi.bin...
Loading c3550-smi.bin from 10.1.27.59 (via VLAN1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 1645807 bytes]
1645807 bytes copied in 48.334 secs (34287 bytes/sec)
Switch#dir
Directory of flash:/
2 -rwx 1645807 Mar 01 1993 00:18:31 c3550-smi.bin
3 -rwx 305 Mar 01 1993 00:28:01 env_vars
4 drwx 6784 Jul 18 2000 01:47:41 html
111 -rwx 1367 Mar 01 1993 00:51:00 01
112 -rwx 600 Mar 01 1993 00:01:52 vlan.dat
114 -rwx 1125 Mar 01 1993 00:05:10 config.text
3612672 bytes total (937472 bytes free)
Switch#
五更改设备启动引导文件
更改设备的系统引导文件,以便设备正常从新的IOS启动。
Switch#show boot
BOOT path-list: flash:c3500XL-c3h2s-mz-120.5.2-XU.bin
Config file: flash:config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file buffer size: 32768
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#boot system flash:c3550-smi.bin
Switch(config)#^Z
Switch#wr
00:20:41: %SYS-5-CONFIG_I: Configured from console by console
Switch#show boot
BOOT path-list: flash:c3550-smi.bin
Config file: flash:config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file
buffer size: 32768
Switch#
六重新启动查看是否升级成功
Cisco-3550-SMI#reload
Proceed with reload? [confirm]
00:05:32: %SYS-5-RELOAD: Reload requested
C3500XL Boot Loader (C3500-HBOOT-M) Version 12.0(5.2)XU, MAINTENANCE INTERIM SOFTWARE
Compiled Mon 17-Jul-00 18:42 by ayounes
starting...
Base ethernet MAC Address: 00:04:4d:72:87:c0
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 110 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2675712
flashfs[0]: Bytes available: 936960
flashfs[0]: flashfs fsck took 3 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:c3550-smi.bin"...############################################################################################################
File "flash:c3550-smi.bin" uncompressed and installed, entry point: 0x3000
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
网页设计 http://www.pc51.net/www/ 提更多网页设计信息











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面