Step
16.
Create a VLAN interface
and enter its view.
17.
Assign an IP address and
subnet mask to the
interface.
Displaying and maintaining Web login
Task
Display information about Web
users.
Display HTTP state information.
Display HTTPS state information.
Web login configuration examples
HTTP login configuration example
Network requirements
As shown in
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
Command
interface vlan-interface
vlan-interface-id
ip address ip-address { mask |
mask-length }
Figure
18, configure the device to allow the PC to log in over the IP network by using HTTP.
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 ]
50
Remarks
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.
By default, no IP address is assigned to
the interface.
Remarks
Available in any view.
Available in any view.
Available in any view.