436
C
HAPTER
38: FTP
AND
SFTP C
ONFIGURATION
FTP Banner Display
Configuration Example
Network requirements
Configure the Ethernet switch as an FTP server and the remote PC as an FTP client.
After a connection between the FTP client and the FTP server is established and
login succeeds, the banner is displayed on the FTP client.
■
An FTP user named "switch" and the password "hello" have been configured
on the FTP server.
■
The IP addresses 1.1.1.1 for a VLAN interface on the switch and 2.2.2.2 for the
PC have been configured. Ensure that a route exists between the switch and
the PC.
■
Configure the login banner of the switch as "login banner appears" and the
shell banner as "shell banner appears".
Network diagram
Figure 149
Network diagram for FTP banner display configuration
Configuration procedure
1
Configure the switch (FTP server)
# Configure the login banner of the switch as "login banner appears" and the
shell banner as "shell banner appears". For detailed configuration of other
network requirements, see “Configuration Example: A Switch Operating as an FTP
Server”.
<4210> system-view
[4210] header login %login banner appears%
[4210] header shell %shell banner appears%
[4210]
2
Configure the PC (FTP client)
# Access the Ethernet switch through FTP. Enter the user name "switch" and the
password "hello" to log in to the switch, 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>
Network
Switch
PC
FTP Server
FTP Client
Vlan-Int1
1.1.1.1 /8
2.2 .2.2/8
Содержание Switch 4210 9-Port
Страница 10: ...Password Control Configuration 556 Displaying Password Control 563 Password Control Configuration Example 564 ...
Страница 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Страница 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Страница 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Страница 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Страница 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Страница 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Страница 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Страница 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Страница 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Страница 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Страница 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Страница 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Страница 340: ...338 CHAPTER 30 CLUSTER ...
Страница 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Страница 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Страница 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Страница 451: ......
Страница 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Страница 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Страница 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...