1.通过web界面导出
如果是V200R001以及后面的版本,可以在web界面导出
单击导航栏中“系统管理 > 文件管理 > 文件管理”菜单,进入“文件管理”界面。
选择需要下载的文件名称,单击“下载”将配置文件下载到本地
2.通过命令行下载
1)在命令行敲display current-configuration 敲此命令后,可以查看设备的所有配置,将配置可以粘贴出来(适用于配置较少情况)
2)通过FTP方式将配置文件导出:
(1)将设备配置为FTP服务器,PC配置为FTP客户端
在Switch上创建VLAN 10,并配置VLAN 10的接口IP地址为10.1.1.2/24
<span style="color:#666666"> <Quidway><strong> system-view</strong>
[Quidway]<strong> vlan 10</strong>
[Quidway-vlan10]<strong> quit</strong>
[Quidway] <strong>interface gigabitethernet 0/0/1</strong>
[Quidway-GigabitEthernet0/0/1] <strong>port hybrid pvid vlan 10</strong>
[Quidway-GigabitEthernet0/0/1] <strong>port hybrid untagged vlan 10</strong>
[Quidway-GigabitEthernet0/0/1] <strong>quit</strong>
[Quidway] <strong>interface vlanif 10</strong>
[Quidway-Vlanif10]<strong> ip address 10.1.1.2 24</strong></span>
(2)在Switch上启动FTP服务,并配置FTP用户名u1,口令ftppwd
<span style="color:#666666"> [Quidway]<strong> ftp server enable</strong></span>
<span style="color:#666666"> [Quidway] <strong>aaa</strong></span>
<span style="color:#666666"> [Quidway-aaa]<strong> local-user u1 password cipher ftppwd</strong></span>
<span style="color:#666666"> [Quidway-aaa]<strong> local-user u1 service-type ftp</strong></span>
<span style="color:#666666"> [Quidway-aaa]<strong> local-user u1 privilege level 15</strong></span>
<span style="color:#666666"> [Quidway-aaa]<strong> local-user u1 ftp-directory flash:/</strong></span>
<span style="color:#666666"> [Quidway-aaa]<strong> return</strong></span>
(3)在PC机上,向Switch发起FTP连接,输入用户名u1和口令ftppwd
PC机上的FTP客户端以Window XP操作系统为例说明。
C:\WINDOWS\Desktop> ftp 10.1.1.2
<span style="color:#666666"> Connected to 10.1.1.2.</span>
<span style="color:#666666"> 220 FTP service ready. </span>
<span style="color:#666666"> User (10.1.1.1:(none)): <strong>u1</strong></span>
<span style="color:#666666"> 331 Password required for u1</span>
<span style="color:#666666"> Password:</span>
<span style="color:#666666"> 230 User logged in.</span>
<span style="color:#666666"> ftp></span>
(4)在PC机上,配置二进制传输格式和PC机本地目录
<span style="color:#666666"> ftp> binary</span>
<span style="color:#666666"> 200 Type set to I.</span>
<span style="color:#666666"> ftp> lcd c:\temp</span>
<span style="color:#666666"> Local directory now C:\temp.</span>
(5)在PC上,从Switch下载文件vrpcfg.cfg
<span style="color:#666666"> ftp> get vrpcfg.cfg vrpcfg.cfg
200 Port command okay.
150 Opening BINARY mode data connection for vrpcfg.cfg.</span>
<span style="color:#666666">(6)退出ftp连接</span>
<span style="color:#666666"> ftp> quit</span>
<span style="color:#666666"> C:\WINDOWS\Desktop></span>
转载自:https://support.huawei.com/enterprise/zh/knowledge/KB1000067459