Chinaunix首页 | 论坛 | 博客
  • 博客访问: 598686
  • 博文数量: 825
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4980
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-27 14:19
文章分类

全部博文(825)

文章存档

2011年(1)

2008年(824)

我的朋友

分类:

2008-10-27 14:20:05


  设置机的地址:
  
  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
  
  (作者:juechen70,出自ultratechnology.net)
  
  
【责编:admin】

--------------------next---------------------

阅读(238) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~