HTTP 404 error when accessing the switch URL

Symptom

The switch is operational and you are using the correct URL for the switch, but attempts to access the REST API or Web UI result in an HTTP 404 "Page not found" error.

Cause

REST API access is not enabled on the VRF that corresponds to the access port you are using. For example, you are attempting to access the REST API or Web UI from the management (OOBM) port, and access is not enabled on themgmtVRF.By default,https服务器is enabled on themgmtVRF for the 6300 and 6400 switches.The 6100 switches does not have amgmtVRF, sohttps服务器is enabled on thedefaultVRF.

行动

Use thehttps服务器vrfcommand to enable REST API access on the specified VRF.

For example:

switch(config)#https服务器多联机管理

Or, on the 6100 switch:

switch(config)#https服务器vrf default