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 the
mgmt
VRF.
By default,
https-server
is enabled on the
mgmt
VRF for the 6300 and 6400 switches.
The 6100 switches does not have a
mgmt
VRF, so
https-server
is enabled on the
default
VRF.
Action
Use the
https-server vrf
command to enable REST API access on the specified VRF.
For example:
switch(config)# https-server vrf mgmt
Or, on the 6100 switch:
switch(config)# https-server vrf default