
21
Step Command
Remarks
2.
Enter system view.
system-view
N/A
3.
Enable the HTTP service.
ip http enable
By default, the HTTP service is
enabled.
4.
Configure the HTTP service
port number.
ip http port
port-number
Optional.
The default HTTP service port
number is 80.
If you execute the command
multiple times, the last one takes
effect.
5.
Associate the HTTP service
with an ACL.
ip http acl
acl-number
Optional.
By default, the HTTP service is not
associated with any ACL.
Associating the HTTP service with
an ACL enables the device to allow
only clients permitted by the ACL to
log in.
6.
Set the Web connection
timeout time.
web idle-timeout
minutes
Optional.
7.
Set the size of the buffer for
Web login logging.
web logbuffer size
pieces
Optional.
8.
Create a local user and enter
local user view.
local-user
user-name
N/A
9.
Configure a password for the
local user.
password
{
cipher
|
simple
}
password
N/A
10.
Specify the command level of
the local user.
authorization-attribute level
level
N/A
11.
Authorize the user to use the
Web service.
service-type
web
N/A
12.
Exit to system view.
quit
N/A
13.
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.
14.
Assign an IP address and
subnet mask to the interface.
ip
address
ip-address
{
mask
|
mask-length
}
N/A
Configuring HTTPS login
The device supports the following HTTPS login modes:
•
Simplified mode
—To make the device operate in this mode, you only need to enable HTTPS service
on the device. The device will use a self-signed certificate (a certificate that is generated and signed