Hypertext Transfer Protocol Commands
Use these commands to configure HTTP and HTTPS access to the switch.
M4250
M4350
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 accounting exec
This command applies user exec (start-stop/stop-only) accounting list to the line method HTTP.
| Format | ip http accounting exec {default | listname} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| http | The line method for which the list needs to be applied. |
| default | The default list of methods for authorization services. |
| listname | An alphanumeric character string used to name the list of accounting methods. |
no ip http accounting exec
This command deletes the authorization method list.
| Format | no ip http accounting exec {default | listname} |
| Mode | Global Config |
ip https accounting exec
M4250
M4350
This command applies user exec (start-stop/stop-only) accounting list to the line method HTTPS.
| Format | ip https accounting exec {default | listname} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| https | The line method for which the list needs to be applied. |
| default | The default list of methods for authorization services. |
| listname | An alphanumeric character string used to name the list of accounting methods. |
no ip https accounting exec
This command deletes the authorization method list.
| Format | no ip https accounting exec {default | listname} |
| Mode | Global Config |
ip http authentication
M4250
M4350
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.
For example, if none is specified as an authentication method after radius, no authentication is used if the RADIUS server is down.
| Default | local |
| Format | ip http authentication method1 [method2...] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| local | Uses the local username database for authentication. |
| none | Uses no authentication. |
| radius | Uses the list of all RADIUS servers for authentication. |
| tacacs | Uses the list of all TACACS+ servers for authentication. |
Command example:
The following example configures http authentication:
(NETGEAR Switch)(config)# ip http authentication radius local
no ip http authentication
Use this command to return to the default.
| Format | no ip http authentication |
| Mode | Global Config |
ip https authentication
M4250
M4350
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.
| Default | local |
| Format | ip https authentication method1 [method2...] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| local | Uses the local username database for authentication. |
| none | Uses no authentication. |
| radius | Uses the list of all RADIUS servers for authentication. |
| tacacs | Uses the list of all TACACS+ servers for authentication. |
Command example:
The following example configures http authentication:
(NETGEAR Switch)(config)# ip https authentication radius local
no ip https authentication
Use this command to return to the default.
| Format | no ip https authentication |
| Mode | Global Config |
ip http server
M4250
M4350
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's Web server. Disabling the Web interface takes effect immediately. All interfaces are affected.
| Default | enabled |
| Format | ip http server |
| Mode | Privileged EXEC |
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's Web server.
| Format | no ip http server |
| Mode | Privileged EXEC |
ip http secure-server
M4250
M4350
This command is used to enable the secure socket layer for secure HTTP.
| Default | disabled |
| Format | ip http secure-server |
| Mode | Privileged EXEC |
no ip http secure-server
This command is used to disable the secure socket layer for secure HTTP.
| Format | no ip http secure-server |
| Mode | Privileged EXEC |
ip http port
M4250
M4350
Use this command to configure the TCP port number on which the HTTP server detects requests. The number argument can be a port number in the range from 1 to 65535.
| Default | 80 |
| Format | ip http port number |
| Mode | Privileged EXEC |
no ip http port
Use this command to reset the TCP port number on which the HTTP server detects requests to the default of 80.
| Format | no ip http port |
| Mode | Privileged EXEC |
ip http session hard-timeout
M4250
M4350
This command configures the hard time-out for unsecure HTTP sessions. The time-out value unit of time is hours and is specified by the hours argument in the range 1–168 hours. Configuring this value to zero will give an infinite hard-time-out. When this time-out expires, the user will be forced to reauthenticate. This timer begins on initiation of the web session and is unaffected by the activity level of the connection.
| Default | 24 |
| Format | ip http session hard-timeout hours |
| Mode | Privileged EXEC |
no ip http session hard-timeout
This command restores the hard time-out for un-secure HTTP sessions to the default value.
| Format | no ip http session hard-timeout |
| Mode | Privileged EXEC |
ip http session maxsessions
M4250
M4350
This command limits the number of allowable unsecure HTTP sessions. The number argument specifies the number of sessions in the range of 0–16. Zero is the configurable minimum.
| Default | 16 |
| Format | ip http session maxsessions number |
| Mode | Privileged EXEC |
no ip http session maxsessions
This command restores the number of allowable un-secure HTTP sessions to the default value.
| Format | no ip http session maxsessions |
| Mode | Privileged EXEC |
ip http session soft-timeout
M4250
M4350
This command configures the soft time-out for un-secure HTTP sessions. The time-out value unit of time is minutes and is specified by the minutes argument in the range 1–60 minutes. Configuring this value to zero will give an infinite soft-time-out. When this time-out expires the user will be forced to reauthenticate. This timer begins on initiation of the Web session and is restarted with each access to the switch.
| Default | 5 |
| Format | ip http session soft-timeout minutes |
| Mode | Privileged EXEC |
no ip http session soft-timeout
This command resets the soft time-out for un-secure HTTP sessions to the default value.
| Format | no ip http session soft-timeout |
| Mode | Privileged EXEC |
ip http secure-session hard-timeout
M4250
M4350
This command configures the hard time-out for secure HTTP sessions. The time-out value unit of time is hours and is specified by the hours argument in the range 1–168 hours. When this time-out expires, the user is forced to reauthenticate. This timer begins on initiation of the Web session and is unaffected by the activity level of the connection. The secure-session hard-time-out cannot be set to zero (infinite).
| Default | 24 |
| Format | ip http secure-session hard-timeout hours |
| Mode | Privileged EXEC |
no ip http secure-session hard-timeout
This command resets the hard time-out for secure HTTP sessions to the default value.
| Format | no ip http secure-session hard-timeout |
| Mode | Privileged EXEC |
ip http secure-session maxsessions
M4250
M4350
This command limits the number of secure HTTP sessions. The number argument specifies the number of sessions in the range of 0–16. Zero is the configurable minimum.
| Default | 16 |
| Format | ip http secure-session maxsessions number |
| Mode | Privileged EXEC |
no ip http secure-session maxsessions
This command restores the number of allowable secure HTTP sessions to the default value.
| Format | no ip http secure-session maxsessions |
| Mode | Privileged EXEC |
ip http secure-session soft-timeout
M4250
M4350
This command configures the soft time-out for secure HTTP sessions. The time-out value unit of time is minutes and is specified by the minutes argument in the range 1–60 minutes. Configuring this value to zero will give an infinite soft-time-out. When this time-out expires, you are forced to reauthenticate. This timer begins on initiation of the Web session and is restarted with each access to the switch. The secure-session soft-time-out cannot be set to zero (infinite).
| Default | 5 |
| Format | ip http secure-session soft-timeout minutes |
| Mode | Privileged EXEC |
no ip http secure-session soft-timeout
This command restores the soft time-out for secure HTTP sessions to the default value.
| Format | no ip http secure-session soft-timeout |
| Mode | Privileged EXEC |
ip http secure-port
M4250
M4350
Use this command to set the SSL port number. The port number can be from 1025 to 65535, and the default is port number 443.
| Default | 443 |
| Format | ip http secure-port portid |
| Mode | Privileged EXEC |
no ip http secure-port
Use this command to reset the SSL port to the default value (443).
| Format | no ip http secure-port |
| Mode | Privileged EXEC |
ip http secure-certificate
M4250
M4350
Use this command to configure the active certificate for HTTPS. The switch supports two certificates.
| Format | ip http secure-certificate {1 | 2} |
| Mode | Privileged EXEC |
ip http secure-ciphersuite
M4250
M4350
Use this command to specify the cipher suites to be used over an HTTPS connection. If you do not specify the cipher suites, the server and the client negotiate a connection with the cipher suite that they both can support.
| Default | All cipher suite options are enabled by default. |
| Format | ip http secure-ciphersuite {[aes-128-cbc-sha][aes-256-cbc-sha][dhe-aes-128-cbc-sha][dhe-aes-cbc-sha2][dhe-aes-gcm-sha2][ecdhe-rsa-aes-cbc-sha2][ecdhe-rsa-aes-gcm-sha2][ecdhe-rsa-chacha-poly-sha2][rsa-aes-cbc-sha2][rsa-aes-gcm-sha2]} |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch) #ip http secure-ciphersuite aes-128-cbc-sha aes-256-cbc-sha
dhe-aes-128-cbc-sha dhe-aes-cbc-sha2
show ip http
This command displays the http settings for the switch.
| Format | show ip http |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| HTTP Mode (Unsecure) | The insecure HTTP server administrative mode. |
| HTTP Port | The insecure HTTP server port number. |
| Maximum Allowable HTTP Sessions | The number of allowable un-secure http sessions. |
| HTTP Session Hard Timeout | The hard time-out for insecure http sessions in hours. |
| HTTP Session Soft Timeout | The soft time-out for insecure http sessions in minutes. |
| HTTP Mode (Secure) | The secure HTTP server administrative mode. |
| HTTP Operational Mode | The secure HTTP server operational mode. |
| Secure Port | The secure HTTP server port number. |
| Secure Protocol Level(s) | The protocol level can be SSL3 or TLS 1.2. |
| Maximum Allowable HTTPS Sessions | The number of allowable secure http sessions. |
| HTTPS Session Hard Timeout | The hard time-out for secure http sessions in hours. |
| HTTPS Session Soft Timeout | The soft time-out for secure http sessions in minutes. |
| Certificate Present | Indicates if the secure-server certificate files are present on the switch. |
| User Selected Certificate | The number of user-selected certificates, if any. |
| Active Certificate | The number of active certificates, if any. |
| Expired Certificate | The number of expired certificates, if any. |
| Certificate Generation in Progress | Indicates if certificate generation is in progress. |
| DH Key Exchange | Indicates if DH key exchange is enabled. |