2024年1月17日发(作者:)

H3C交换机、路由器上传、下载备份配置

1. 下载备份配置

用crt软件在命令行输入 display current-configuration 然后按(alt+F) +L键记录配置,查看完配置,再按下(alt+F) +L 。。。

2. 上传备份配置

A.先在pc上打开ftp服务器软件 并设置,如下:

B.关闭pc的防火墙和其他防护软件,并直接用网线连接在路由器或交换机的

下,在路由器或交换机上给vlan 1 配置个ip地址(例如192.168.1.1),并给pc配置同网段的ip(192.168.1.2),在路由器或者交换机上ping pc的ip

确保可以正常ping通;

C.在路由或交换机上dir查看设备flash中是否有这个配置文件,如果有将其删除

dir

Directory of flash:/

0 -rw- 2792 Jan 01 2010 00:52:53

1 -rw- 287 Jan 01 2010 00:52:51

2 -rw- 8805 Jan 01 2010 00:52:51

3 -rw- 807572 Jan 01 2010 00:20:51

4 -rw- 174 Jan 01 2010 00:00:32 patchstate

5 -rw- 23982544 Aug 08 2008 20:00:00 s3600v2_

6 drw- - Jan 01 2010 00:00:22 seclog

126592 KB total (101052 KB free)

delete /unreserved

The contents cannot be restored!!! Delete flash:/?[Y/N]:y

Deleting a file permanently will take a long time.

%Delete file flash:/...Done.

D.在交换或者路由器上ftp pc的ip地址下载配置到设备中;

ftp 192.168.1.2

Trying 192.168.1.2 ...

Press CTRL+K to abort

Connected to 192.168.1.2.

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user

User(192.168.1.2:(none)):admin ftp软件的用户名

331 Give me your password, please

Password: ftp软件的密码

230 Logged in successfully

[ftp]get

227 Entering Passive Mode (192,168,1,2,18,222)

150 "C:Documents and SettingsAdministrator桌面" file

ready to send (2892 bytes) in ASCII mode

226 Transfer finished successfully.

FTP: 2892 byte(s) received in 0.298 second(s), 9.00K byte(s)/sec.

[ftp]bye

221 Windows FTP Server (WFTPD, by Texas Imperial Software) says

goodbye

dir

E.将上传的配置文件作为下次启动主加载的配置文件

startup saved-configuration main

F.重启设备

reboot

Start to check configuration with next startup configuration file, please

.DONE!

This command will reboot the device. Current configuration will be lost,

save current configuration? [Y/N]:n

This command will reboot the device. Continue? [Y/N]:y

#Jan 1 00:20:48:855 2010 H3C DEVM/1/REBOOT:

Reboot device by command.

%Jan 1 00:20:48:945 2010 H3C DEVM/5/SYSTEM_REBOOT: System is rebooting now.