Displaying and maintaining web login
Task
Display information about web
users.
Display HTTP state information.
Display HTTPS state information.
Web login example
HTTP login example
Network requirements
As shown in
Figure
192.168.20.66/24.
Figure 10 Network diagram for configuring HTTP login
Procedure
Configuration on the device
1.
# Log in to the device via the console port and configure the IP address of VLAN 1 of the device. VLAN 1 is
the default VLAN.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-VLAN-interface1] ip address 192.168.20.66 255.255.255.0
[Sysname-VLAN-interface1] quit
# Create a local user named admin, and set the password to admin for the user. Specify the Telnet service
type for the local user, and set the command level to 3 for this user.
[Sysname] local-user admin
[Sysname-luser-admin] service-type telnet
[Sysname-luser-admin] authorization-attribute level 3
[Sysname-luser-admin] password simple admin
Command
display web users [ | { begin | exclude |
include } regular-expression ]
display ip http [ | { begin | exclude |
include } regular-expression ]
display ip https [ | { begin | exclude |
include } regular-expression ]
10, the PC is connected to the device over an IP network. The IP address of the Device is
68
Remarks
Available in any view.
Available in any view.
Available in any view.