Network requirements, Configuration procedure, Displaying and maintaining web login – H3C Technologies H3C S12500 Series Switches User Manual

Page 52: Http login example

Advertising
background image

40

Source IP-based Web login control configuration example

Network requirements

As shown in

Figure 17

, configure the switch to allow only Web users from Host B to access.

Figure 17 Network diagram

Configuration procedure

# Create ACL 2000, and configure rule 1 to permit packets sourced from Host B.

<Sysname> system-view

[Sysname] acl number 2030 match-order config

[Sysname-acl-basic-2030] rule 1 permit source 10.110.100.52 0

# Associate the ACL with the HTTP service so that only Web users from Host B are allowed to access the
switch.

[Sysname] ip http acl 2030

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.

HTTP login example

Network requirements

As shown in

Figure 18

, configure the switch to allow the PC to log in over the IP network.

Advertising