[Sysname] local-user switch
[Sysname-luser-switch] password simple hello
[Sysname-luser-switch] service-type ftp
2) Configure the PC (FTP client)
Run an FTP client application on the PC to connect to the FTP server. Upload the application named
switch.bin
to the root directory of the Flash memory of the FTP server, and download the configuration
file named
config.cfg
from the FTP server. The following takes the command line window tool provided
by Windows as an example:
# Enter the command line window and switch to the directory where the file
switch.bin
is located. In this
example it is in the root directory of C:\.
C:\>
# Access the Ethernet switch through FTP. Input the username
switch
and password
hello
to log in and
enter FTP view.
C:\> ftp 1.1.1.1
Connected to 1.1.1.1.
220 FTP service ready.
User (1.1.1.1:(none)): switch
331 Password required for switch.
Password:
230 User logged in.
ftp>
# Upload file
switch.bin
.
ftp> put switch.bin
200 Port command okay.
150 Opening ASCII mode data connection for switch.bin.
226 Transfer complete.
ftp: 75980 bytes received in 5.55 seconds 13.70Kbytes/sec.
# Download file
config.cfg
.
ftp> get config.cfg
200 Port command okay.
150 Opening ASCII mode data connection for config.cfg.
226 Transfer complete.
ftp: 3980 bytes received in 8.277 seconds 0.48Kbytes/sec.
This example uses the command line window tool provided by Windows. When you log in to the FTP
server through another FTP client, refer to the corresponding instructions for operation description.
57-10