在这里办公室电脑局域网地址为192.168.17.8TFTP server软件使用TFTPd32

Cisco交换机备份startup-config文件命令:

Sw#copy startup-config tftp

 

案例1

dabaicai>en

Password:

dabaicai#copy star

dabaicai#copy startup-config tftp

Address or name of remote host []? 192.168.17.8

Destination filename [dabaicai-confg]?

!!

6389 bytes copied in 0.076 secs (84066 bytes/sec)

 

华为S3526交换机备份配置文件使用命令tftp put 配置文件 //TFTP服务器地址/自定义配置文件名

还原则使用TFTP get命令

案例2

<dabaicai3#>sys

Enter system view , return user view with Ctrl+Z.

[dabaicai3#]tftp put vrpcfg.txt //192.168.17.8/153config

..

Uploading succeeds!

我们也可以尝试备份华为S3526交换机的镜像文件,先查看一下文件名字和大小。

<dabaicai3#>dir

Directory of flash:/

 

-rwxrwxrwx   1 noone    nogroup   3426398  Jul 15 2003 19:58:32   S3526-S3526FM-S3526FS-VRP310-0009.app

-rwxrwxrwx   1 noone    nogroup      4219  Aug 04 2012 19:57:39   vrpcfg.txt

 

7802880 bytes total (4368384 bytes free)

我们把备份文件名字设为153bin。

<dabaicai3#>sys

Enter system view , return user view with Ctrl+Z.

[dabaicai3#]tftp put S3526-S3526FM-S3526FS-VRP310-0009.app //192.168.17.8/153bin

..................................................

.......................................

Uploading succeeds!

华为S2300则命令有所不同,假设TFTP服务器IP为192.168.19.3,需要上传到TFTP服务器的文件为vrpcfg.cfg,则使用命令tftp 192.168.19.3 put vrpcfg.cfg即可。