300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > cisco 通过tftp备份/恢复配置和3560交换机IOS升级

cisco 通过tftp备份/恢复配置和3560交换机IOS升级

时间:2024-01-03 15:08:50

相关推荐

cisco 通过tftp备份/恢复配置和3560交换机IOS升级

1.使用tftp服务器配置备份及恢复cisco 3560

#要确保交换机和tftp server之间可以连通就行。

#备份

Switch#copy running-config tftp:

Address or name of remote host []? 192.168.166.236

Destination filename [Switch-confg]?

#恢复的话使用类似命令

Switch#copy tftp: running-config

Address or name of remote host []? 192.168.166.236

Source filename []?Switch-confg

此时会将配置保存至 startup-config当中需要重启后就会使用还原回来的配置

2.CISCO 3560 交换机IOS升级

CICSO 3560交换机,安装了超级终端的PC,TFTP或FTP服务器,c3560-advipservicesk9-mz.122-25.SEE2.bin的IOS

备份IOS

执行备份前先用dir、cd、pwd等命令看下flash中的目录结构。这台交换机IOS的bin文件以及html文件夹都在

flash中c3560-ipbase-mz.122-25.SEB4目录下。

/* 将原IOS备份到IP为192.168.1.100的TFTP服务器上 */

switch#copy flash:/c3560-ipbase-mz.122-25.SEB4/c3560-ipbase-mz.122-25.SEB4.bin tftp://192.168.1.100/c3560-ipbase-mz.122-25.SEB4.bin

/* 将原IOS备份为tar文件到IP为192.168.1.100的TFTP服务器上 */

switch#archive tar /create tftp://192.168.1.100/c3560-ipbase-mz.122-25.SEB4.tar flash:/c3560-ipbase-mz.122-25.SEB4

上传新IOS

/* 将新IOS复制到flash的根目录下 */

switch#copy tftp://192.168.1.100/c3560-advipservicesk9-mz.122-25.SEE2.bin flash:/c3560-advipservicesk9-mz.122-25.SEE2.bin

更改启动设置,让交换机用新的IOS启动

switch(config)#boot system flash:/c3560-advipservicesk9-mz.122-25.SEE2.bin

设置备用的IOS启动

switch(config)#boot boothlpr flash:/c3560-ipbase-mz.122-25.SEB4/c3560-ipbase-mz.122-25.SEB4.bin

或者delete flash:/c3560-ipbase-mz.122-25.SEB4/c3560-ipbase-mz.122-25.SEB4.bin

switch#write

switch#reload

重启后,交换机会使用新的IOS。

3550G-24/48-SMI升级为3550G-24/48-EMI方法

准备好EMI的IOS,如:c3550-i5q3l2-tar.121-14.EA1a.tar

准备好TFTP服务器,并将TFTP服务器的工作目录指向到c3550-i5q3l2-tar.121-14.EA1a.tar

配置交换机,如:

configur terminal

interface vlan 1

ip address 198.168.0.1 255.255.255.0

no shutdown

运行升级命令

archive download-sw /overwrite tftp://192.168.0.4/c3550-i5q3l2-tar.121-14.EA1a.tar

或copy tftp://192.168.0.4/c3550-i5q3l2-tar.121-14.EA1a.tar.bin flash:

Switch#delete flash:旧的ios

switch(config)#boot system flash:c3550-i5q3l2-tar.121-14.EA1a.tar.bin

switch(config)#write mem

switch#reload 重新启动,交换机

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。