Figure 1-4Network diagram for FTP banner display configuration

FTP Server

FTP Client

Vlan-Int1

2.2 .2.2/8

 

 

Network

 

 

1.1.1.1 /8

 

 

 

 

 

 

 

Switch

 

 

PC

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 1-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-configurationcommand to specify config.cfg as the main configuration file for next startup, and then reboot the device.

z

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. 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.

1-11

Page 551
Image 551
3Com WX3000 operation manual 4Network diagram for FTP banner display configuration