beautypg.com

Displaying web users, Configuration example – H3C Technologies H3C S5120 Series Switches User Manual

Page 68

background image

4-2

To do…

Use the command…

Remarks

Specify the service types for
the local user

service-type telnet

Optional

By default, no service is
authorized to a user.

Start the Web server

ip http enable

Required

Execute this command in
system view.

Displaying Web Users

After the above configurations, execute the display command in any view to display the information

about Web users, and thus to verify the configuration effect.

Table 4-2 Display information about Web users

To do…

Use the command…

Display information about Web users

display web users

Configuration Example

Step 1: Log in to the switch through the console port and assign an IP address to the management

VLAN interface of the switch. By default, VLAN 1 is the management VLAN.

z

Connect to the console port. Refer to section

Setting Up the Connection to the Console Port

.

z

Execute the following commands in the terminal window to assign an IP address to the

management VLAN interface of the switch.

# Configure the IP address of the management VLAN interface to be 10.153.17.82 with the mask

255.255.255.0.

system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ip address 10.153.17.82 255.255.255.0

Step 2: Configure the user name and the password for the Web-based network management system.

# Configure the user name to be admin.

[Sysname] local-user admin

# Set the password to admin.

[Sysname-luser-admin] password simple admin

Step 3: Establish an HTTP connection between your PC and the switch, as shown in the following

figure.

Figure 4-1 Establish an HTTP connection between your PC and the switch