设为首页 收藏本站
查看: 811|回复: 0

[经验分享] Cisco3750更换IOS

[复制链接]

尚未签到

发表于 2018-7-10 11:26:05 | 显示全部楼层 |阅读模式
  背景:两台Cisco3750做双机,Cisco3750-01硬件故障,罢工了。新买的二手交换机与之前的IOS不一致,故需要更换IOS。
  准备工作:网线、console线、tftp工具
  操作步骤:
  一、从Cisco3750-02上下载以前的IOS
  1、在交换机接口上配置一个接口地址;
  SW-A-02(3750-2)(config)#int g1/0/23
  SW-A-02(3750-2)(config-if)#no switchport
  SW-A-02(3750-2)(config-if)#ip address 192.168.100.100 255.255.255.0
  2、笔记本用网线连接到交换机;
  笔记本使用ip地址192.168.100.101,开启tftp工具(3CDaemon)
  3、下载IOS;
  (1)笔记本与交换机连通性测试
  SW-A-02(3750-2)#ping 192.168.100.101
  Type escape sequence to abort.
  Sending 5, 100-byte ICMP Echos to 192.168.100.101, timeout is 2 seconds:
  .!!!!
  Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
  (2)查看Flash信息
  SW-A-02(3750-2)#show flash
  Directory of flash:/
  2  -rwx        2116  Jan 10 2013 18:53:29 +08:00  vlan.dat
  3  drwx         192   Mar 1 1993 08:19:14 +08:00  c3750-i5-mz.122-20.SE4
  89  -rwx       16406  Sep 20 2014 17:05:31 +08:00  config.text
  90  -rwx        3110  Mar 13 1993 12:40:51 +08:00  startup-configw
  91  -rwx          27  Sep 20 2014 17:05:31 +08:00  private-config.text
  15998976 bytes total (7386112 bytes free)
  SW-A-02(3750-2)#cd c3750-i5-mz.122-20.SE4
  SW-A-02(3750-2)#dir
  Directory of flash:/c3750-i5-mz.122-20.SE4/
  4  drwx        2688   Mar 1 1993 08:16:56 +08:00  html
  86  -rwx     5044988   Mar 1 1993 08:19:14 +08:00  c3750-i5-mz.122-20.SE4.bin
  87  -rwx         494   Mar 1 1993 08:19:14 +08:00  info
  15998976 bytes total (7386112 bytes free)
  SW-A-02(3750-2)#pwd
  flash:/c3750-i5-mz.122-20.SE4/
  (3)将IOS从Flash复制到tftp
  SW-A-02(3750-2)#copy flash: tftp:
  Source filename []? c3750-i5-mz.122-20.SE4
  Address or name of remote host []? 192.168.100.101
  Destination filename [c3750-i5-mz.122-20.SE4]?
  %Error reading flash:/c3750-i5-mz.122-20.SE4 (Is a directory)
  复制失败,无法复制文件夹
  SW-A-02(3750-2)#cd c3750-i5-mz.122-20.SE4
  SW-A-02(3750-2)#dir
  Directory of flash:/c3750-i5-mz.122-20.SE4/
  4  drwx        2688   Mar 1 1993 08:16:56 +08:00  html
  86  -rwx     5044988   Mar 1 1993 08:19:14 +08:00  c3750-i5-mz.122-20.SE4.bin
  87  -rwx         494   Mar 1 1993 08:19:14 +08:00  info
  15998976 bytes total (7386112 bytes free)
  SW-A-02(3750-2)#copy flash: tftp:
  Source filename [/c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin]?
  Address or name of remote host []?  192.168.100.101
  Destination filename [/c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin]?
  .....
  %Error opening tftp:// 192.168.100.101//c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin (Timed out)
  复制ios文件仍然失败,关闭掉笔记本上的防火墙后,复制正常。
  SW-A-02(3750-2)#copy flash: tftp:
  Source filename [/c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin]?
  Address or name of remote host []? 192.168.100.101
  Destination filename [/c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin]?
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  5044988 bytes copied in 13.916 secs (362531 bytes/sec)
  二、更新新交换机上的IOS
  1、为了以防万一,先将该交换机的IOS备份(方法与上述方式相同);
  Switch#show flash
  Directory of flash:/
  3  -rwx    11518717   Mar 4 2010 07:05:23 +00:00  c3750-ipservices-mz.122-50.SE3.bin
  4  -rwx        2072   Mar 1 1993 00:03:07 +00:00  multiple-fs
  15998976 bytes total (4476416 bytes free)
  Switch#show boot
  BOOT path-list      : flash:c3750-ipservices-mz.122-50.SE3.bin
  Config file         : flash:/config.text
  Private Config file : flash:/private-config.text
  Enable Break        : no
  Manual Boot         : no
  HELPER path-list    :
  Auto upgrade        : yes
  Auto upgrade path   :
  Timeout for Config
  Download:    0 seconds
  Config Download
  via DHCP:       disabled (next boot: disabled)
  Switch#copy flash: tftp:
  Source filename []? c3750-ipservices-mz.122-50.SE3.bin
  Address or name of remote host []? 192.168.100.101
  Destination filename [c3750-ipservices-mz.122-50.SE3.bin]?
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  11518717 bytes copied in 31.868 secs (361451 bytes/sec)
  2、删除以前的IOS
  Switch#delete flash:c3750-ipservices-mz.122-50.SE3.bin
  Delete filename [c3750-ipservices-mz.122-50.SE3.bin]?
  Delete flash:c3750-ipservices-mz.122-50.SE3.bin? [confirm]
  Switch#show flash
  Directory of flash:/
  4  -rwx        2072   Mar 1 1993 00:03:07 +00:00  multiple-fs
  15998976 bytes total (15995392 bytes free)
  3、上传新的IOS
  Switch#copy tftp: flash:
  Address or name of remote host []? 192.168.100.101
  Source filename []? c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin
  Destination filename [c3750-i5-mz.122-20.SE4.bin]?
  Accessing tftp://192.168.100.101/c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin...
  Loading c3750-i5-mz.122-20.SE4/c3750-i5-mz.122-20.SE4.bin from 192.168.100.101 (via GigabitEthernet1/0/24): !!!!!!!!!!!!!!!!!!!!
  [OK - 5044988 bytes]
  5044988 bytes copied in 114.010 secs (44250 bytes/sec)
  4、更改IOS启动顺序
  Switch#show boot
  BOOT path-list      : flash:c3750-ipservices-mz.122-50.SE3.bin
  Config file         : flash:/config.text
  Private Config file : flash:/private-config.text
  Enable Break        : no
  Manual Boot         : no
  HELPER path-list    :
  Auto upgrade        : yes
  Auto upgrade path   :
  Timeout for Config
  Download:    0 seconds
  Config Download
  via DHCP:       disabled (next boot: disabled)
  Switch#config t
  Enter configuration commands, one per line.  End with CNTL/Z.
  Switch(config)#boot system flash:c3750-i5-mz.122-20.SE4.bin
  Switch#show boot
  *Mar  1 00:17:10.775: %SYS-5-CONFIG_I: Configured from console by console
  BOOT path-list      : flash:c3750-i5-mz.122-20.SE4.bin
  Config file         : flash:/config.text
  Private Config file : flash:/private-config.text
  Enable Break        : no
  Manual Boot         : no
  HELPER path-list    :
  Auto upgrade        : yes
  Auto upgrade path   :
  Timeout for Config
  Download:    0 seconds
  Config Download
  via DHCP:       disabled (next boot: disabled)
  5、保存后重启交换机
  Switch#write
  Building configuration...
  [OK]
  Switch#reload

  Proceed with>

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-535829-1-1.html 上篇帖子: configure cisco AP Mac filter 下篇帖子: CISCO Mobility Express-Moments
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表