DXS-1210 Series Smart Managed Switch CLI Reference Guide
56
5-4 ip http access-class
This command is used to specify an access list to restrict the access to the HTTP server. Use the no
form of this command to remove the access list check.
ip http access-class IP-ACL
no ip http access-class IP-ACL
Parameters
IP-ACL
Specifies a standard IP access list. The source address field of the
entry defines the valid or invalid host.
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
This command specifies an access list to restrict the access to the HTTP server. If the specified
access list does not exist, the command does not take effect, thus no access list is checked for the
user’s access to HTTP.
Example
This example shows how a standard IP access list is created and is specified as the access list to
access the HTTP server. Only the host 226.1.1.1 is allowed to access the server.
Switch# configure terminal
Switch(config)#ip access-list http-filter
Switch(config-ip-acl)# rule permit 226.1.1.1 255.255.255.255
Switch(config-ip-acl)# exit
Switch(config)# ip http access-class http-filter
Switch(config)#
5-5 ip http service-port
This command is used to specify the HTTP service port. Use the no form of this command toreturn
the service port to 80.
ip http service-port TCP-PORT
no ip http service-port
Parameters
TCP-PORT
Specifies the TCP port number. TCP ports are numbered between 1
and 65535. The “well-known” TCP port for the HTTP protocol is 80.
Default
By default, this port number is 80.