R3303-HP HSR6800 Routers Fundamentals Command Reference

53
Views
System view
Default command level
3: Manage level
Parameters
ipv6: Specifies an IPv6 ACL to control access to the IPv6 FTP server. To specify an IPv4 ACL to control
access to the IPv4 FTP server, do not specify this keyword.
acl-number: Specifies the number of a basic ACL, 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 last 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 IPv4 FTP server and IPv6 FTP server.
Use undo ftp server to disable the FTP server IPv4 FTP server and IPv6 FTP server.
Syntax
ftp server enable
undo ftp server
Default
The IPv4 FTP server and IPv6 FTP server are disabled.
Views
System view
Default command level
3: Manage level
Examples
# Enable the IPv4 FTP server and IPv6 FTP server.
<Sysname> system-view
[Sysname] ftp server enable