设置交换机的地址:
Switch>en Switch#config t Switch(config)#interface VLAN 1 Switch(config-if)#ip add e.e.e.e 掩码 Switch(config-if)#^Z Switch>write memory |
Ping 主机地址应该能够ping通
查看当前的系统文件
Switch#dir Directory of flash:/ -rwx xxx Mar 01 1993 00:15:41 info –rwx xxxxx Dec 10 1999 19:12:29 c2900XL-diag-mz-112.8- SA2 drwx xxxxx Mar 01 1993 00:17:43 html 179 –rwx xxxx Mar 01 1993 00:02:46 config.text 6 -rwx xxxx Jan 01 1970 00:36:10 c2900XL-h-mz-112.8-SA2 230 –rwx xxx Mar 01 1993 00:17:43 info.ver 231 –rwx xxx Jan 01 1970 00:42:00 env_vars |
其中c2900XL-h-mz-112.8-SA2 就是系统文件,交换机中的系统文件名与它相似,接着使用delete 命令将其删除
Switch#delete flash:c2900XL-h-mz-112.8-SA2 |
还要将Html目录中的文件删除
Switch#delete flash:/html/*.* Switch#delete flash:/html/Snmp/*.* |
需要回车键来确认每个文件的删除
将新的系统文件传到 Flash中
Switch#tar /x tftp://tftp_server_ip_address/c2900XL-hs-mz-122.8-SA5.tar flash: Loading/path/file name.tar from server_ip_address(via!) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! extracting advanced.gif (2648 bytes) extracting amber.gif (530 bytes) extracting bar.gif (4156 bytes) extracting cool.gif (530 bytes) extracting daytona.gif (1470 bytes) extracting duplgnd.gif (639 bytes) |
Switch #config t Switch(config)#boot system flash:c2900XL-hs-mz-112.8-SA5.bin Switch(config)#^Z |
重起交换机,不需要存储参数
Switch#reload |
若不能找到c2900XL-hs-mz-112.8-SA5.bin文件,可在Switch:状态下键入SET可看到当前的环境变量,可以修改变量BOOT
Switch:BOOT=flash:c2900XL-hs-mz-112.8-SA5.bin |
若在删除系统文件后因非正常原因导致交换机重启,可用xmodem协议将系统文件送入交换机
Switch:copy xmodem:flash:c2900XL-c3h2s-mz-120.5-XP.bin Begin the Xmodem or Xmodem-1K transfer now 。。。 Switch:flash:c2900XL-c3h2s-mz-120.5-XP.bon |