将设备配置为FTP服务器,PC配置为FTP客户端
    在Switch上创建VLAN 10,并配置VLAN 10的接口IP地址为10.1.1.2/24

    1. <Quidway> system-view
    2. [Quidway] vlan 10
    3. [Quidway-vlan10] quit
    4. [Quidway] interface gigabitethernet 0/0/1
    5. [Quidway-GigabitEthernet0/0/1] port hybrid pvid vlan 10
    6. [Quidway-GigabitEthernet0/0/1] port hybrid untagged vlan 10
    7. [Quidway-GigabitEthernet0/0/1] quit
    8. [Quidway] interface vlanif 10
    9. [Quidway-Vlanif10] ip address 10.1.1.2 24
    10. 在Switch上启动FTP服务,并配置FTP用户名u1,口令ftppwd
    11. [Quidway] ftp server enable //开启FTP服务
    12. [Quidway] aaa
    13. [Quidway-aaa] local-user u1 password cipher ftppwd
    14. [Quidway-aaa] local-user u1 service-type ftp
    15. [Quidway-aaa] local-user u1 privilege level 15
    16. [Quidway-aaa] local-user u1 ftp-directory flash:/
    17. [Quidway-aaa] return

    在PC机上,向Switch发起FTP连接,输入用户名u1和口令ftppwd (或者用ftp软件链接)
    PC机上的FTP客户端以Window 操作系统为例说明。

    1. C:\WINDOWS\Desktop> ftp 10.1.1.2
    2. Connected to 10.1.1.2.
    3. 220 FTP service ready.
    4. User (10.1.1.1:(none)): u1
    5. 331 Password required for u1
    6. Password:
    7. 230 User logged in.
    8. ftp>
    9. PC机上,配置二进制传输格式和PC机本地目录
    10. ftp> binary
    11. 200 Type set to I.
    12. ftp> lcd c:\temp
    13. Local directory now C:\temp.
    14. PC上,从Switch下载文件vrpcfg.cfg
    15. ftp> get vrpcfg.cfg vrpcfg.cfg
    16. 200 Port command okay.
    17. 150 Opening BINARY mode data connection for vrpcfg.cfg.
    18. ftp> quit
    19. C:\WINDOWS\Desktop>
    20. PC上,从Switch上传文件vrpcfg.cfg
    21. ftp> put vrpcfg.cfg vrpcfg.cfg
    22. 200 Port command okay.
    23. 150 Opening BINARY mode data connection for vrpcfg.cfg.
    24. ftp> quit
    25. C:\WINDOWS\Desktop>