Displaying and maintaining Web login

Task

Command

Remarks

Display information about Web display web users [ { begin exclude

Available in any view.

users.

include } regular-expression ]

 

 

 

 

Display HTTP state information.

display ip http [ { begin exclude

Available in any view.

include } regular-expression ]

 

 

 

 

 

Display HTTPS state

display ip https [ { begin exclude

Available in any view.

information.

include } regular-expression ]

 

 

 

 

HTTP login configuration example

Network requirements

As shown in Figure 47, configure the firewall to allow the PC to log in over the IP network by using HTTP.

Figure 47 Network diagram

Configuration procedure

1.Configure the firewall:

# Assign the IP address 192.168.0.58/24 to interface GigabitEthernet 0/0.

[Firewall] interface gigabitethernet 0/0 [Firewall-GigabitEthernet0/0] ip address 192.168.0.58 255.255.255.0

[Firewall-GigabitEthernet0/0] quit

#Add interface GigabitEthernet 0/0 to zone Management. (By default, interface GigabitEthernet 0/0 belongs to zone Management. To use another interface (GigabitEthernet 0/1 in the following example) to log in to the device, perform the following configuration:

[Firewall] zone name management [Firewall-zone-management] import interface gigabitethernet0/1

#Create a local user named admin and set the password to admin. Authorize the user to use the Web service and set the command level to 3.

[Firewall] local-user admin [Firewall-luser-admin] service-type web

[Firewall-luser-admin] authorization-attribute level 3

[Firewall-luser-admin] password simple admin [Sysname-luser-admin] quit

# Enable the HTTP service. (Optional. Required when the HTTP service is disabled.)

[Sysname] ip http enable

57