50
Ste
Command
Remarks
16. Create a VLAN interface
and enter its view.
interface vlan-interface
vlan-interface-id
If the VLAN interface already exists, the
command enters its view.
You could replace this VLAN interface
with any other Layer 3 interface as
appropriate.
17. Assign an IP address and
subnet mask to the
interface.
ip address ip-address { mask |
mask-length }
By default, no IP address is assigned to
the interface.
Displaying and maintaining Web login
Task Command Remarks
Display information about Web
users.
display web users [ | { begin |
exclude | include }
regular-expression ]
Available in any view.
Display HTTP state information.
display ip http [ | { begin | exclude
| include } regular-expression ]
Available in any view.
Display HTTPS state information.
display ip https [ | { begin |
exclude | include }
regular-expression ]
Available in any view.
Web login configuration examples
HTTP login configuration example
Network requirements
As shown in Figure 18, configure the device to allow the PC to log in over the IP network by using HTTP.
Figure 18 Network diagram
Configuration procedure
1. Configure the device:
# Create VLAN 999, and add GigabitEthernet 1/0/1 (the interface connected to the PC) to VLAN
999.
<Sysname> system-view
[Sysname] vlan 999
[Sysname-vlan999] port GigabitEthernet 1/0/1
[Sysname-vlan999] quit