H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 524

Advertising
background image

49-11

Configuration procedure

1) Configure the switch (FTP server)

# Configure the login banner of the switching engine as “login banner appears” and the shell banner as
“shell banner appears”. For detailed configuration of other network requirements, see

Configuration

Example: The Device Operating as an FTP Server

.

<device> system-view

[device] header login %login banner appears%

[device] header shell %shell banner appears%

[device]

2) Configure the PC (FTP client)

# Access the switching engine through FTP. Enter the user name “switch“ and the password “hello” to
log in to the device, and then enter FTP view. Login banner appears after FTP connection is established.
Shell banner appears after the user passes the authentication.

C:\> ftp 1.1.1.1

Connected to 1.1.1.1.

220-login banner appears

220 FTP service ready.

User (1.1.1.1:(none)): switch

331 Password required for switch.

Password:

230-shell banner appears

230 User logged in.

ftp>

FTP Configuration: The Device Operating as an FTP Client

Network requirements

As shown in

Figure 49-5

, the device operates as an FTP client and a remote PC as an FTP server. The

configuration file of the switching engine named config.cfg is stored on the PC. Download it to the
switching engine through FTP and use the startup saved-configuration command to specify

config.cfg

as the main configuration file for next startup, and then reboot the device.

z

Create a user account on the FTP server with the user name “switch” and password “hello”, and
grant the user “switch” read and write permissions for the directory named “Switch” on the PC.

z

Configure the IP address 1.1.1.1 for a VLAN interface on the device, and 2.2.2.2 for the PC. Ensure
a route exists between the device and the PC.

Figure 49-5

Network diagram for FTP configurations: the device operating as an FTP client

Switch A

FTP Client

FTP Server

Vlan-Int1

1.1.1.1/8

2.2.2.2/8

Network

PC

Configuration procedure

1) Configure the PC (FTP server)

Advertising