R3721-F3210-F3171-HP High-End Firewalls Getting Started Command Reference-6PW101
20
Examples
# Associate the HTTP service with ACL 2001 to only allow the clients within the 10.10.0.0/16 network to
access the device through HTTP.
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 10.10.0.0 0.0.255.255
[Sysname-acl-basic-2001] quit
[Sysname] ip http acl 2001
ip http enable
Syntax
ip http enable
undo ip http enable
View
System view
Default level
2: System level
Parameters
None
Description
Use ip http enable to enable the HTTP service.
Use undo ip http enable to disable the HTTP service.
By default, the HTTP service is enabled.
The device can act as the HTTP server that can be accessed only after the HTTP service is enabled.
This command is not supported in FIPS mode.
Related commands: display ip http.
Examples
# Enable the HTTP service.
<Sysname> system-view
[Sysname] ip http enable
# Disable the HTTP service.
<Sysname> system-view
[Sysname] undo ip http enable
ip http port
Syntax
ip http port port-number
undo ip http port