R3303-HP HSR6800 Routers Fundamentals Configuration Guide

87
Create a local user account with username abc and password abc and enable FTP server on the IRF
fabric. Use the user account to log in to the FTP server from the FTP client, upload the file 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 44 Network diagram
Configuration procedure
1. Configure the FTP server:
# Examine the storage space of the device for insufficiency or impairment. If no sufficient free
space is available, use the fixdisk command to fix the storage medium or use the
delete/unreserved file-url command to delete unused files. (Details not shown.)
# Create a local user account abc, set its password to abc and the user privilege level to level 3 (the
manage level), specify the CF root directory (cfa0:/) of the IRF fabric's active MPU as the
authorized directory, and specify the service type as FTP.
<Sysname> system-view
[Sysname] local-user abc
[Sysname-luser-abc] password simple abc
[Sysname-luser-abc] authorization-attribute level 3
[Sysname-luser-abc] authorization-attribute work-directory cfa0:/
[Sysname-luser-abc] service-type ftp
[Sysname-luser-abc] quit
To access the CF root directory (cfa0:/) of the standby MPU, replace cfa0:/ in the command
authorization-attribute work-directory cfa0:/with chassis2#slot1#cfa0:/.
# Enable the FTP server.
[Sysname] ftp server enable
[Sysname] quit
2. Perform FTP operations from the 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 FTP server to the client for backup.
ftp> get config.cfg back-config.cfg
Internet
IRF (FTP server)
IP: 1.1.1.1/16
Master
(Member_ID=1)
PC
FTP client
1.2.1.1/16
Note: The orange line represents an IRF link.
Subordinate
(Member_ID=2)