6-13
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 6 Programmability
Configuring Programmability Components
Enabling Cisco IOS HTTP Services for RESTCONF
This task is mandatory if you want to use the RESTCONF interface and have opted for the standard
configuration method.
See Examples for RESTCONF RPCs, page 6-15.
Command or Action Purpose
Step 1
enable
Example:
Switch# enable
Enables privileged EXEC mode. Enter your password if
prompted.
Step 2
configure terminal
Example:
Switch# configure terminal
Enters the global configuration mode.
Step 3
restconf
Example:
Switch(config)# restconf
Enables the RESTCONF interface on your network device.
Step 4
ip http server
or
ip http secure-server
Example:
Switch (config)# ip http server
OR
Switch (config)# ip http secure-server
The ip http server command enables the HTTP server on your
system.
The ip http secure-server command enables a secure HTTP
(HTTPS) server.
Note When enabling an HTTPS server, you should always
disable the standard HTTP server to prevent unsecured
connections to the same services. Disable the standard
HTTP server using the no ip http server command in
global configuration mode (this step is precautionary;
typically, the HTTP server is disabled by default).
Configure only one of the commands.
Step 5
ip http authentication local
Example:
Switch(config)# ip http authentication
local
Indicates that the login user name, password and privilege level
access combination specified in the local system configuration
(with the username global configuration command) should be
used for authentication and authorization.
Step 6
end
Example:
Switch# end
Exits global configuration mode and enters privileged EXEC
mode.