- 积分
- 472
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2012-2-3
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
|
本帖最后由 金童 于 2012-5-4 22:48 编辑
最近帮一个老师弄不能启动的C3550-48-EMI的交换机,IOS找了好久才找到,今天终于弄好了。我的文档打包上传,有需要的下载哦。c3550-48-emi的IOS也在这个包里哦
思科IOS下载:
http://certs4u.info/ciscoios/c3550/
我的IOS浇灌方法:
switch:dir flash: [查看flash中的文件]
switch:delete flash:filename.bin [删除多余的IOS]
switch:flash_init [开始copy ios]
switch:flash_helper
switch:copy flash:3550ios.bin [回车后用超级终端用Xmodem方式传入IOS,注意文件名和刚才写的IOS要相同]
switch:等几个小时后
switch:dir flash: [查看是否有刚才传入的IOS]
switch:boot flash:3550ios.bin
【这里就启动IOS了】
switch>enable
switch#show boot
switch#conf t
Switch(config)#boot system flash:3550ios.bin [设置每次从这个IOS启动]
Switch(config)#end
switch#wr
IOS浇灌方法:
一 配置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#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
七注意事项:
1路径和目标文件不一致问题
在升级过程中一定要小心,在敲命令行的时候特别要仔细,特别是在改启动路径
的时候,如果启动路径的文件和flash里面的IOS不相同的话,是启动不了。解决
方案
a 在switch模式下,查看系统启动路径的全称
Interrupt within 5 seconds to abort boot process.
Boot process failed...
The system is unable to boot automatically. The BOOT
environment variable needs to be set to a bootable
image.
switch: set
ASSEMBLY_REVISION_NUM=B0
BOOT=flash:c3550-smi.bin
MAC_ADDR=00:04:4D:72:87:C0
MODEL_NUM=WS-C3524-XL-EN
MODEL_REVISION_NUM=A0
MOTHERBOARD_ASSEMBLY_NUM=73-3904-11
MOTHERBOARD_SERIAL_NUM=FAB0445F1YR
POWER_SUPPLY_PART_NUM=34-0851-02
POWER_SUPPLY_SERIAL_NUM=NONE
SYSTEM_SERIAL_NUM=FAA0446W0XD
switch:
b查看flash下IOS的完全名称。
switch: dir flash:
Directory of flash:/
2 -rwx 1645824 <date> c35550-smi.bin
3 -rwx 1564 <date> config.text
4 drwx 6784 <date> html
111 -rwx 1367 <date> 01
112 -rwx 600 <date> vlan.dat
114 -rwx 290 <date> env_vars
936960 bytes available (2675712 bytes used)
switch:
c把flash里面的IOS的名称改成和boot里面的一致!
switch: rename flash:c35550-smi.bin flash:c3550-smi.bin
switch:
switch:
switch: dir flash:
Directory of flash:/
2 -rwx 1645824 <date> c3550-smi.bin
3 -rwx 1564 <date> config.text
4 drwx 6784 <date> html
111 -rwx 1367 <date> 01
112 -rwx 600 <date> vlan.dat
114 -rwx 290 <date> env_vars
936960 bytes available (2675712 bytes used)
switch:
d重启设备
switch: reset
2、IOS损坏或者其他导致IOS损坏不能正常启动
如果在升级过程中出现断电或者其他原因导致IOS没有完全写入flash中,但是
flash中的旧的IOS又被删除掉了,解决方案
a只能采用超级终端用Xmodem来把IOS传到设备
只能采用超级终端用Xmodem来把IOS传到设备里面去,超级终端的设置采用默
认设置就好了。
B在switch模式下执行采用xmodem
(很长时间,我试过39分钟)
c重启设备
传完后,重新启动就ok啦。
3启动路径不完全,导致设备不能正常启动
在升级过程中的最后一步,修改启动路径的时候,把路径写错了,比如我们今天
就是这样的把本来正确的是boot system flash:c3550-smi.bin结果写成了boot
system c3550-smi.bin导致设备不能正常启动。解决方案
a用set命令看设备当前运行的路径
switch: set
ASSEMBLY_REVISION_NUM=B0
BOOT=c3550-smi.bin
MAC_ADDR=00:04:4D:72:87:C0
MODEL_NUM=WS-C3524-XL-EN错误!未找到图形项目表。
MODEL_REVISION_NUM=A0
MOTHERBOARD_ASSEMBLY_NUM=73-3904-11
MOTHERBOARD_SERIAL_NUM=FAB0445F1YR
POWER_SUPPLY_PART_NUM=34-0851-02
POWER_SUPPLY_SERIAL_NUM=NONE
SYSTEM_SERIAL_NUM=FAA0446W0XD
switch:
b用set命令修改BOOT路径
switch: set boot flash:c3550-smi.bin
switch: set
ASSEMBLY_REVISION_NUM=B0
BOOT=flash:c3550-smi.bin
MAC_ADDR=00:04:4D:72:87:C0
MODEL_NUM=WS-C3524-XL-EN
MODEL_REVISION_NUM=A0
MOTHERBOARD_ASSEMBLY_NUM=73-3904-11
MOTHERBOARD_SERIAL_NUM=FAB0445F1YR
POWER_SUPPLY_PART_NUM=34-0851-02
POWER_SUPPLY_SERIAL_NUM=NONE
SYSTEM_SERIAL_NUM=FAA0446W0XD
switch:
c重新启动OK!
|
|