R3102-R3103-HP 6600/HSR6600 Routers Fundamentals Configuration Guide
84
Figure 43 Network diagram
Configuration procedure
1. Configure the router (FTP server):
# Create a local user account abc, set its password to abc and the user privilege level to level 3 (the
manage level), specify the root directory of the storage medium as the authorized directory, and
specify the service type as FTP.
<Router> system-view
[Router] local-user abc
[Router-luser-abc] password simple abc
[Router-luser-abc] authorization-attribute level 3
[Router-luser-abc] authorization-attribute work-directory cfa0:/
[Router-luser-abc] service-type ftp
[Router-luser-abc] quit
# Enable the FTP server.
[Router] ftp server enable
[Router] quit
# Examine the storage space for space insufficiency and delete unused files for more free space.
<Router> dir
Directory of cfa0:/
0 drw- - Dec 07 2005 10:00:57 filename
1 drw- - Jan 02 2006 14:27:51 logfile
2 -rw- 1216 Jan 02 2006 14:28:59 config.cfg
3 -rw- 1216 Jan 02 2006 16:27:26 back.cfg
2540 KB total (2511 KB free)
<Router> delete /unreserved cfa0:/back.cfg
2. Perform FTP operations from the PC (FTP client):
# Log in to the FTP server at 1.1.1.1 using the username abc and password abc.
c:\> ftp 1.1.1.1
Connected to 1.1.1.1.
220 FTP service ready.
User(1.1.1.1:(none)): abc
331 Password required for abc.
Password:
230 User logged in.
# Download the configuration file config.cfg from the router to the PC for backup.
ftp> get config.cfg back-config.cfg
# Upload the file newest.bin to the router.
ftp> put newest.bin
200 Port command okay.










