65
Configuring HTTP login
Ste
Command
Remarks
1. Enter system view.
system-view —
2. Enable the HTTP service.
ip http enable
Required.
Enabled by default.
3. Configure the HTTP service port
number.
ip http port port-number
Optional.
80 by default.
If you execute the command multiple
times, the last one takes effect.
4. 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 access
the device.
5. Create a local user and enter local
user view.
local-user user-name
Required.
By default, no local user is configured.
6. Configure a password for the local
user.
password { cipher |
simple } password
Required.
By default, no password is configured
for the local user.
7. Specify the command level of the
local user.
authorization-attribute
level level
Required.
No command level is configured for the
local user.
8. Specify the Telnet service type for
the local user.
service-type telnet
Required.
By default, no service type is configured
for the local user.
9. Exit to system view.
quit —
10. Create a VLAN interface and enter
its view.
interface vlan-interface
vlan-interface-id
Required.
If the VLAN interface already exists, the
command enters its view.
11. Assign an IP address and subnet
mask to the VLAN interface.
ip address ip-address
{ mask | mask-length }
Required.
By default, no IP address is assigned to
the VLAN interface.