R3303-HP HSR6800 Routers Fundamentals Configuration Guide
85
newest.bin from the FTP client to the FTP server, and download the configuration file config.cfg from the
FTP server to the FTP client for backup.
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 active MPU's CF card 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
To access the CF card root directory of the standby MPU in slot 1, replace cfa0:/ in the command
authorization-attribute work-directory cfa0:/ with slot1#cfa0:/.
# 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 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 file config.cfg from the router to the PC for backup.