NOTE
The
mac-acl-number
parameter specifies the number of a Layer 2 ACL. The value is an integer
that ranges from 4000 to 4999.
3.
(Optional) Run:
step
step-value
The step value between ACL rule IDs is set.
4.
Run the following commands as required.
–
When the parameter
protocol
is specified as the Internet Control Message Protocol
(ICMP), the command format is as follows:
–
rule
[
rule-id
] {
deny
|
permit
} {
protocol-number
|
icmp
} [
destination
{
destination-address destination-wildcard
|
any
} |
dscp
dscp
|
fragment
|
logging
|
icmp-type
{
icmp-name
|
icmp-type icmp-code
} |
precedence
precedence
|
source
{
source-address source-wildcard
|
any
} |
time-range
time-name
|
tos
tos
|
ttl-expired
]
*
–
When the parameter
protocol
is specified as the Transmission Control Protocol
(TCP), the command format is as follows:
–
rule
[
rule-id
] {
deny
|
permit
} {
protocol-number
|
tcp
} [
destination
{
destination-address destination-wildcard
|
any
} |
destination-port
{
eq
|
gt
|
lt
|
range
}
port
|
dscp
dscp
|
fragment
|
logging
|
precedence
precedence
|
source
{
source-address source-wildcard
|
any
} |
source-port
{
eq
|
gt
|
lt
|
range
}
port
|
tcp-flag
{
ack
|
fin
|
psh
|
rst
|
syn
|
urg
}
*
|
time-
range
time-name
|
tos
tos
|
ttl-expired
]
*
–
When the parameter
protocol
is specified as the User Datagram Protocol (UDP),
the command format is as follows:
–
rule
[
rule-id
] {
deny
|
permit
} {
protocol-number
|
udp
} [
destination
{
destination-address destination-wildcard
|
any
} |
destination-port
{
eq
|
gt
|
lt
|
range
}
port
|
dscp
dscp
|
fragment
|
logging
|
precedence
precedence
|
source
{
source-address source-wildcard
|
any
} |
source-port
{
eq
|
gt
|
lt
|
range
}
port
|
time-range
time-name
|
tos
tos
|
ttl-expired
]
*
–
When the parameter
protocol
is specified as another protocol rather than TCP,
UDP, or ICMP, the command format is as follows:
–
rule
[
rule-id
] {
deny
|
permit
} {
protocol-number
|
gre
|
igmp
|
ip
|
ipinip
|
ospf
} [
destination
{
destination-address destination-wildcard
|
any
} |
dscp
dscp
|
fragment
|
logging
|
precedence
precedence
|
source
{
source-
address source-wildcard
|
any
} |
time-range
time-name
|
tos
tos
|
ttl-
expired
]
*
–
When
protocol
is set to TCP, the command format of an advanced ACL6 rule is
as follows:
rule
[
rule-id
] {
deny
|
permit
} {
tcp
|
protocol-number
} [
destination
{
destination-ipv6-address
prefix-length
|
destination-ipv6-address/prefix-length
|
postfix
postfix-length
|
any
} |
destination-port
{
eq
|
gt
|
lt
|
range
}
port
|
dscp
dscp
|
fragment
|
logging
|
precedence
precedence
|
source
{
source-ipv6-
address
prefix-length
|
source-ipv6-address/prefix-length
|
source-ipv6-address
postfix
postfix-length
|
any
} |
source-port
{
eq
|
gt
|
lt
|
range
}
port
|
tcp-flag
{
ack
|
fin
|
psh
|
rst
|
syn
|
urg
}
*
|
time-rangetime-name
|
tos
tos
]
*
–
When
protocol
is set to UDP, the command format of an advanced ACL6 rule is
as follows:
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
15