
2-6
<Sysname> system-view
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule permit tcp source 129.9.0.0 0.0.255.255 destination 202.38.160.0
0.0.0.255 destination-port eq 80
# Verify the configuration.
[Sysname-acl-adv-3000] display acl 3000
Advanced ACL 3000, named -none-, 1 rule,
ACL's step is 5
rule 0 permit tcp source 129.9.0.0 0.0.255.255 destination 202.38.160.0 0.0.0.255
destination-port eq www (5 times matched)
Configuring an Ethernet Frame Header ACL
Ethernet frame header ACLs match packets based on Layer 2 protocol header fields such as source
MAC address, destination MAC address, 802.1p priority (VLAN priority), and link layer protocol type.
They are numbered in the range 4000 to 4999.
Configuration Prerequisites
If you want to reference a time range in a rule, define it with the
time-range
command first.
Configuration Procedure
Follow these steps to configure an Ethernet frame header ACL:
To do…
Use the command…
Remarks
Enter system view
system-view
––
Create an Ethernet
frame header ACL
and enter its view
acl number
acl-number
[
name
acl-name
] [
match-order
{
auto
|
config
} ]
Required
The default match order is
config
.
If you specify a name for an IPv4 ACL
when creating the ACL, you can use
the
acl
name
acl-name
command to
enter the view of the ACL later.
Create or modify a
rule
rule
[
rule-id
] {
deny
|
permit
} [
cos
vlan-pri
|
dest-mac
dest-addr
dest-mask
|
lsap lsap-code
lsap-wildcard
|
source-mac
sour-addr
source-mask
|
time-range
time-range-name
|
type
type-code
type-wildcard
] *
Required
To create or modify multiple rules,
repeat this step.
Note that the
lsap
keyword is not
supported if the ACL is to be
referenced by a QoS policy for traffic
classification.
Set the rule
numbering step
step
step-value
Optional
5 by default
Configure a
description for the
Ethernet frame
header ACL
description
text
Optional
By default, an Ethernet frame header
ACL has no ACL description.
Configure a rule
description
rule rule-id comment text
Optional
By default, an Ethernet frame header
ACL rule has no rule description.
Summary of Contents for S5120-EI Series
Page 139: ...ii...
Page 578: ...1 21 C...
Page 739: ...1 12 Enable ARP detection based on 802 1X security entries SwitchB arp detection mode dot1x...
Page 926: ...2 8...
Page 942: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5...
Page 985: ...1 1...
Page 1018: ...1 6...