S310 V600R022C10 Configuration Guide - Basic Configuration
Example for Configuring Web UI-based Login Through HTTPS (Specified Certificate)
Networking Requirements
In Figure 5-2, the local account admin123 is configured for DeviceA, which can be used to log in to the web UI of DeviceA through HTTPS.
Data Planning
Item |
Data |
---|---|
User name |
admin123 |
Password |
YsHsjx_202206 |
Service type |
HTTPS |
User privilege level |
3 |
Specified certificate |
cep_local.cer |
Configuration Roadmap
- Configure a certificate for login authentication.
Configure a login interface for the device.
Create a local user account for logging in to the web UI of the device.
- Enable the web service function on the device.
Use the local user account to log in to the web UI of the device.
Procedure
- Configure a certificate.
- Configure all interfaces to be used to access the web UI.
[DeviceA] web-manager server-source all-interface
- Configure a login interface for the device.
- Create a web user account.
[DeviceA] aaa [DeviceA-aaa] local-user admin123 password irreversible-cipher YsHsjx_202206 [DeviceA-aaa] local-user admin123 service-type http [DeviceA-aaa] local-user admin123 privilege level 3 [DeviceA-aaa] quit
- Enable the web service function.
- Log in to the web UI of the device.
- Set the IP address of the PC used for web UI login to 10.3.0.10/24.
- Open a browser and enter https://10.3.0.1:8443.
- Enter the created web user account (user name: admin123; password: YsHsjx_202206) and click Login.
Verifying the Configuration
Use a browser to access the web UI of the device, enter the user name and password, and check whether the login is successful.
Configuration Scripts
# sysname DeviceA # web-manager server-source all-interface web-manager enable port 8443 web-manager http forward enable web-manager security server-certificate cep_local.cer # interface Vlanif10 ip address 10.3.0.1 255.255.255.0 # aaa local-user admin123 password irreversible-cipher $1d$OwseVRh@LH}ZeTBm$1nH4$ab>d(N{-%0!ab48y=Ic*xEUR4pVhR2"9-~,$ local-user admin123 service-type http local-user admin123 privilege level 3 # return
Document ID:EDOC1100306162
Views:68659
Downloads:217
Average rating:0.0Points