Previous Topic

Next Topic

Book Contents

Hypertext Transfer Protocol Commands

This section describes the commands you use to configure Hypertext Transfer Protocol (HTTP) and secure HTTP access to the switch. Access to the switch by using a Web browser is enabled by default. Everything you can view and configure by using the CLI is also available by using the Web.

ip http authentication

Use this command to specify authentication methods for http server users. The default configuration is the local user database is checked. This action has the same effect as the command ip http authentication local. The additional methods of authentication are used only if the previous method returns an error, not if it fails. To ensure that the authentication succeeds even if all methods return an error, specify none as the final method in the command line.

no ip http authentication

Use this command to return to the default.

ip https authentication

Use this command to specify authentication methods for https server users. The default configuration is the local user database is checked. This action has the same effect as the command ip https authentication local. The additional methods of authentication are used only if the previous method returns an error, not if it fails. To ensure that the authentication succeeds even if all methods return an error, specify none as the final method in the command line. For example, if none is specified as an authentication method after radius, no authentication is used if the RADIUS server is down.

no ip https authentication

Use this command to return to the default.

ip http server

This command enables access to the switch through the Web interface. When access is enabled, the user can login to the switch from the Web interface. When access is disabled, the user cannot login to the switch Web server. Disabling the Web interface takes effect immediately. All interfaces are affected.

no ip http server

This command disables access to the switch through the Web interface. When access is disabled, the user cannot login to the switch Web server.

ip http secure-server

This command is used to enable the secure socket layer for secure HTTP.

no ip http secure-server

This command is used to disable the secure socket layer for secure HTTP.

ip http java

This command enables the Web Java mode. The Java mode applies to both secure and un-secure Web connections.

no ip http java

This command disables the Web Java mode. The Java mode applies to both secure and un-secure Web connections.

ip http session hard-timeout

This command configures the hard timeout for un-secure HTTP sessions in hours. Configuring this value to zero will give an infinite hard-timeout. When this timeout expires, the user will be forced to re-authenticate. This timer begins on initiation of the web session and is unaffected by the activity level of the connection.

no ip http session hard-timeout

This command restores the hard timeout for un-secure HTTP sessions to the default value.

ip http session maxsessions

This command limits the number of allowable un-secure HTTP sessions. Zero is the configurable minimum.

no ip http session maxsessions

This command restores the number of allowable un-secure HTTP sessions to the default value.

ip http session soft-timeout

This command configures the soft timeout for un-secure HTTP sessions in minutes. Configuring this value to zero will give an infinite soft-timeout. When this timeout expires the user will be forced to re-authenticate. This timer begins on initiation of the Web session and is re-started with each access to the switch.

no ip http session soft-timeout

This command resets the soft timeout for un-secure HTTP sessions to the default value.

ip http secure-session hard-timeout

This command configures the hard timeout for secure HTTP sessions in hours. When this timeout expires, the user is forced to re-authenticate. This timer begins on initiation of the Web session and is unaffected by the activity level of the connection. The secure-session hard-timeout can not be set to zero (infinite).

no ip http secure-session hard-timeout

This command resets the hard timeout for secure HTTP sessions to the default value.

ip http secure-session maxsessions

This command limits the number of secure HTTP sessions. Zero is the configurable minimum.

no ip http secure-session maxsessions

This command restores the number of allowable secure HTTP sessions to the default value.

ip http secure-session soft-timeout

This command configures the soft timeout for secure HTTP sessions in minutes. Configuring this value to zero will give an infinite soft-timeout. When this timeout expires, you are forced to re-authenticate. This timer begins on initiation of the Web session and is re-started with each access to the switch. The secure-session softtimeout can not be set to zero (infinite).

no ip http secure-session soft-timeout

This command restores the soft timeout for secure HTTP sessions to the default value.

ip http secure-port

This command is used to set the SSL port where port can be 1-65535 and the default is port 443.

no ip http secure-port

This command is used to reset the SSL port to the default value.

ip http secure-protocol

This command is used to set protocol levels (versions). The protocol level can be set to TLS1, SSL3 or to both TLS1 and SSL3.

show ip http

This command displays the http settings for the switch.

The display parameters for above command are:

See also

Management Commands

Network Interface Commands

Console Port Access Commands

Telnet Commands

FTP Commands

Secure Shell Commands

Management Security Commands

Access Commands

User Account Commands

SNMP Commands

RADIUS Commands

TACACS Commands

Configuration Scripting Commands

Pre-login Banner and System Prompt Commands