R2511-HP MSR Router Series Fundamentals Command Reference(V5)

5
Syntax
ftp server acl acl-number
undo ftp server acl
Default
No ACL is used to control FTP clients' access to the FTP server.
Views
System view
Default command level
2: System level
Parameters
acl-number: Basic ACL number in the range of 2000 to 2999.
Usage guidelines
You can use this command to permit FTP requests from specific FTP clients only. This configuration takes
effect for FTP connections to be established only, and does not impact existing FTP connections. If you
execute the command multiple times, the most recently specified ACL takes effect.
Examples
# Use ACL 2001 to allow only the client 1.1.1.1 to access the FTP server.
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule 0 permit source 1.1.1.1 0
[Sysname-acl-basic-2001] rule 1 deny source any
[Sysname-acl-basic-2001] quit
[Sysname] ftp server acl 2001
ftp server enable
Use ftp server enable to enable the FTP server.
Use undo ftp server to disable the FTP server.
Syntax
ftp server enable
undo ftp server
Default
The FTP server is disabled.
Views
System view
Default command level
3: Manage level
Examples
# Enable the FTP server.
<Sysname> system-view