5-19
executes accordingly and returns the result of the execution to user. Use the following command to boot
the FTP service:
[DEVICE]ftp server enable
% Start FTP server
Add FTP authorized user name and password:
[DEVICE]local-user guest
[DEVICE-luser- guest]service-type ftp
[DEVICE-luser- guest]password simple 123456
Step 3: Maintain the router.
After booting FTP service of the router and configuring user name and password, you can boot FTP
Client on your PC. Take the FTP Client with Windows XP for example:
Enter <ftp> in the [DOS] window, and the system prompts:
C:\Documents and Settings\Administrator>ftp
ftp>
ftp> open 192.168.0.2
220 FTP service ready.
User (192.168.0.2:(none)): guest
331 Password required for guest
Password:
230 User logged in.
After you correctly enter the username and password, the system prompts login success, and you can
complete maintenance of the router, for example, modifying transmission mode and local path, and
backing up files. In this example, the main.bin file on the router is backed up to the PC.
ftp> binary
200 Type set to I.
ftp> lcd c:\temp
Local directory now C:\temp.
ftp> get main.bin main.bin
200 Port command okay.
150 Opening BINARY mode data connection for main.bin.
226 Transfer complete.
ftp: 14323376 bytes received in 16.81Seconds 851.87Kbytes/sec.
Recover the backup file to the router command:
ftp> put main.bin main.bin
200 Port command okay.
150 Opening BINARY mode data connection for main.bin.
226 Transfer complete.
ftp: 14323376 bytes sent in 8.29Seconds 1727.37Kbytes/sec.
ftp> quit
221 Server closing.
Maintaining the router when it serves as the client
You can also maintain the router file system by building FTP server and making the router serve as the
client.
Step 1: Build maintenance environment as follows: