一.以交换机为ftp客户端,登录ftp服务器下载上次备份的配置文件到交换机上。
<BJ-md38-D2>ftp 61.139.126.XX
Trying 61.139.126.34 ...
Press CTRL+K to abort
Connected to 61.139.126.XX.
220-Microsoft FTP Service
220 欢迎你连接本站FTP!
User(61.139.126.34:(none)):XXXXX
331 Password required for westserver.
Enter password:
230-您已连接本站FTP服务器
230 User westserver logged in.
[ftp] get switch/BJIDC/2016-11-11-D02.zip /下载之前备份的最后一次交换机配置文件vrpcfg.cfg
200 PORT command successful.
150 Opening ASCII mode data connection for switch/BJIDC/2016-11-11-D02.zip(1626 bytes). 226 Transfer complete.
FTP: 1626 byte(s) received in 3.900 second(s) 416.92byte(s)/sec.
[ftp]
二.退出ftp,设置恢复的配置文件为下次启动配置文件并重启设备。
[ftp]q 221 再见..
dir Directory of flash:/ 看一下刚下载的配置文件
Idx Attr Size(Byte) Date Time FileName
0 -rw- 969 Nov 05 2008 20:33:59 private-data.txt
1 -rw- 1,626 Nov 11 2016 17:19:49 2016-11-11-D02.zip
2 -rw- 1,089,840 Jan 01 1970 00:02:05 S5700SI-V100R005C01SPC100.web .zip
3 -rw- 10,215,068 Oct 01 2008 00:02:21 S5700SI-V100R005C01SPC100.cc
4 -rw- 626,426 Jan 01 1970 00:03:17 s27_37_57-v100r005sph008.pat
5 -rw- 12,240 Jan 01 1970 00:03:19 $_patchstate_reboot
6 -rw- 1,626 Jul 22 2016 11:51:46 vrpcfg.zip
31,620 KB total (19,924 KB free)
startup saved-configuration 2016-11-11-D02.zip /下次重新启动时选择的要加载配置文件名。
display startup
reboot
本文出自 “刘率” 博客,请务必保留此出处http://liushuai.blog.51cto.com/3038219/1871954
原文地址:http://liushuai.blog.51cto.com/3038219/1871954