Configuring the management interface and enabling REST access
To access the ArubaOS-CX Web UI, the management interface must be configured and REST access enabled on the switch.
-
Configure the interface using the CLI on the switch.
The following is a sample set of configuration commands to ensure that the management interface is up and has an IP for Web UI access follows:
switch# configure terminal switch(config)# interface mgmt switch(config-if-mgmt)# no shutdown switch(config-if-mgmt)# ip dhcp switch(config-if-mgmt)# exit
If not using DHCP, use the following commands instead:
switch(config-if-mgmt)# ip static <A.B.C.D/M> switch(config-if-mgmt)# default-gateway <X.Y.Z.A>
To
ssh
to the switch remotely:switch(config)# ssh server vrf mgmt
-
Set the password for the
admin
user, if necessary.When shipped from the factory, the switch has a default user named
admin
without a password. The admin user must set a valid password before enabling REST throughhttps-server
. Otherwise, you will be prompted with the error:Failed to enable https-server on VRF mgmt. 'admin' password is not set
.The admin user can set the password using the command:
switch(config)# user admin password Changing password for user admin Enter password: ***** Confirm new password: ***** switch(config)#
-
Enable REST access for the VRF that people will access the UI on.
The following example configures and starts the HTTPS server for REST and Web access on the management VRF, and uses a
show
command to verify the configuration:switch(config)# https-server vrf mgmt switch(config)# show https-server HTTPS Server Configuration ---------------------------- VRF : mgmt REST Access Mode : read-only