Example for Controlling Web Login Users by Source IP
N
s
with the source IP address of 10.110.100.46 to log in to the switch
N
etwork requirement
Apply an ACL to permit Web users
through HTTP.
etwork diagram
Figure 44-2
Network diagram for controlling Web login users by source IP
Internet
Switch
PC
10.110.100.46
Configuration procedure
.
eb server.
Basic ACL Configuration Example
dress is 10.1.1.1. Apply an
deny packets with the source IP address of 10.1.1.1 from 8:00 to 18:00
N
for basic ACL configuration
# Define ACL 2001
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule 1 permit source 10.110.100.46 0
[Sysname-acl-basic-2001] quit
# Reference ACL 2001 to control users logging in to the W
[Sysname] ip http acl 2001
Examples for Applying ACLs to Hardware
Network requirements
PC 1 and PC 2 connect to the switch through Ethernet 1/0/1. PC1’s IP ad
ACL on Ethernet 1/0/1 to
everyday.
etwork diagram
Figure 44-3
Network diagram
44-15