思科2960交换机如何备份系统到TFTP上?

我想把系统备份来TFTP上,运行copy flash tftp时提示我输入源文件,我看了一下交换机中总的有3个flash,分别是flash:c2960-lanbase-mz.122-35.SE5
flash:flash:config.text 和flash:private-config.text
请问我要备分的是哪个文件?
当我选择flash:c2960-lanbase-mz.122-35.SE5时,提示%Error reading flash:c2960-lanbase-mz.122-35.SE5 (Is a directory)
而其它2个以.text结尾的都能成功备份.
我哪里操作不对?
再就是,如果我能成功备份后的还原命令是不是copy tftp flash?
1楼,我开始确实是没打.bin 看了你的回复后,我再去操作,此时加上.bin了 还是同样提示.不过现在我在仔细的看一下这个提示,发现最后括号中的(Is a directory),嘿嘿,我再去看看
2楼,我是要备份IOS
还是不行哦,还有没办法?

Router>enable 进入特权模式
Router#configure terminal 进入配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface e 0/0 进入接口以太0/0
Router(config-if)#ip
Router(config-if)#ip address 192.168.1.1 255.255.255.0 配置IP地址和子网掩码
Router(config-if)#no shutdown 开启端口
%LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
Router(config-if)#exit退出
Router(config)#ip host xiay 192.168.1.2默认域名指向(可以不配置的)
Router(config)#exit退出
Router#show interfaces e 0/0查看以太0/0信息
Ethernet0/0 is up, line protocol is up开启端口
Hardware is Lance, address is 000C.4198.5973 (bia 000C.4198.5973)MAC地址
Internet address is 192.168.1.1/24IP和掩码
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

Router#ping 192.168.1.2pingIP地址

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms通了
Router#ping xiayping 域名(就是刚才定向的那个)

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms通了

Router#copy startup-config tftp 拷贝我的配置文件到tftp
Address or name of remote host []?xiay拷贝到这(也可以输入IP)
Destination filename []?1保存文件名
No NVRAM configuration present失败

Router#
Router#show startup-config 检查我的配置 没有
%% Non-volatile configuration memory is not present
Router#copy running-config startup-config 把我ram上的配置copy到nvram上去
Destination filename [startup-config]?
Building configuration...
[OK]

Router#sh startup-config 再查看下 OK东西有了
Current configuration : 677 bytes

!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
!
ip subnet-zero
ip host xiay 192.168.1.2
!
!
!
!
!
!
!
!
!

Router#copy startup-config tftp 拷贝 同上
Address or name of remote host []?xiay
Destination filename []?1
!!!!!!!!!!成功了!!!!!!!
[OK]
8390 bytes copied in 7 secs
===================================

boson 行敲出来顺便给你贴上去的 够详细了把 不加分对不起我啊
温馨提示:内容为网友见解,仅供参考
第1个回答  推荐于2016-04-28
备份交换机的配置

步骤:首先打开tftp服务软件,登录到交换机的特权模式。

copy running-config tftp:

回车

输入打开了tftp服务软件的计算机IP如192.168.0.51

回车

然后输入保存的名字:如xiaoshoubu(也可默认,一般默认的名字就是本身设置时所对应的 名字)回车,即可完成输出到本机。

备份交换机的硬件信息flash。(该操作一般用不到,除非交换机硬件本身完全格式化或升级 BIOS,才会将备份的flash信息还原)

步骤:首先打开tftp服务软件,登录到交换机的特权模式。Flash查看命令:dir flash: 将**.bin文件复制即可,示例:

copy c2960-lanbasek9-mz.122-50.SE1.bin tftp:

回车

输入打开了tftp服务软件的计算机IP如192.168.0.51

回车

然后输入保存的名字:如xiaoshoub-flash回车,即可完成输出到本机。

将配置还原到交换机:

首选将之前的备份文件放在tftp服务软件的根目录下

示例备份为xiaoshoubu.text

copy tftp: xiaoshoubu.text

回车

输入本机的IP如192.168.0.51

完成后,输入copy xiaoshoubu.text running-config,将该文件调入交换机的执行内存,然后保 存wr,记得将密码设置正确,重启交换机即可。
第2个回答  推荐于2018-03-11
思科设备IOS后缀名应该是.bin 你没打全吧。
.SE5不会是后缀名
flash:c2960-lanbase-mz.122-35.SE5.bin IOS文件名应该是这样
flash:config.text 这个是你交换机的配置
flash:private-config.text 这个是私有配置 保存密码之类的东西
你的命令是对的
好吧 我再补充下 flash:c2960-lanbase-mz.122-35.SE5这个不是个文件 是个目录 flash:c2960-lanbase-mz.122-35.SE5.bin 这个文件名称只是我根据经验推断 不一定是这个 试下完整路径flash:c2960-lanbase-mz.122-35.SE5/flash:c2960-lanbase-mz.122-35.SE5.bin
如果要查看.SE5目录 需要cd命令改变查看目录 cd flash:/c2960-lanbase-mz.122-35.SE5本回答被网友采纳
第3个回答  2010-07-08
你备份的是start-config吧
命令是:copy start-config tftp
还原命令是:copy tftp start-config
第4个回答  2012-12-15
你这问题解决没?我现在也这样,纠结中\\\\\\
相似回答