
To provide differentiated services based on packet information, configure traffic classifiers.
Layer 2 ACLs can be referenced by traffic classifiers to define rules for classifying traffic.
For details, see Configuring a Traffic Classifier.
l
Apply a Layer 2 ACL to add users to the blacklist for local attack defense.
A blacklist is a set of unauthorized users. The AR1200-S uses Layer 2 ACLs to add users
with a specific characteristic to a blacklist and discards the packets from the users in the
blacklist. For details, see
9.4.3 (Optional) Configuring a Blacklist
l
Apply a Layer 2 ACL to an interface to filter packets on the interface.
The AR1200-S can filter packets on an interface using an ACL.
–
If the action in an ACL rule is
deny
, the AR1200-S discards all packets matching the
rule.
–
If the action in an ACL rule is
permit
, the AR1200-S forwards all packets matching
the rule.
Perform the following steps to apply a Layer 2 ACL to an interface:
1.
Run:
system-view
The system view is displayed.
2.
Run:
interface
interface-type interface-number
The interface view is displayed.
3.
Run:
traffic-filter
{
inbound
|
outbound
}
acl
{
acl-number
|
name
acl-name
}
A Layer 2 ACL is applied to the interface.
----End
10.5.6 Checking the Configuration
After a Layer 2 ACL is configured, you can view information about the Layer 2 ACL and time
range.
Prerequisites
The Layer 2 ACL configurations are complete.
Procedure
l
Run the
display acl
acl-number
command to view the Layer 2 ACL with the specified
number.
l
Run the
display acl name
acl-name
command to view the Layer 2 ACL with the specified
name.
l
Run the
display time-range
{
all
|
time-name
} command to view information about the
time range.
----End
Huawei AR1200-S Series Enterprise Routers
Configuration Guide - Security
10 ACL Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
207