Chapter 7 ACL Configuration
Configuring Hybrid ACL
Step Command
Function
1
ZXR10(config)#
acl hybrid
{
number
<
acl-number
>|
n
ame
<
acl-name
>}
This enters the hybrid ACL
configuration.
2
ZXR10(config-hybd-acl)#
rule
<
rule-no
>{
permit
|
d
eny
}{<
ip-number
>|
ip
}{<
source
><
source-wildc
ard
>|
any
}{<
dest
><
dest-wildcard
>|
any
}{[
any
|<
ether protocol
>]}[
cos
<
0-7
>][<
vlan-id
>][
ingress
<
source-mac
><
source-mac-wildcard
>
egress
<
dest-mac
><
dest-mac-wildcard
>][
time-range
<
timerange-name
>]
This configures the rules
based on IP or IP protocol
number (excluded ICMP, TCP,
UDP).
3
ZXR10(config-hybd-acl)#
rule
<
rule-no
>{
pe
rmit
|
deny
}{<
source
><
source-wildcard
>|
any
}{[<
dest-ip
><
dest-wildcard
>|
any
{
ethe
r-protocol
}[<
vlan-id
>][
cos
<
value
>][
egress
<
dst-mac
><
dst-wildcard
>][
ingress
<
sor-mac
><
s
or-wildcard
>][
time-range
<
range-name
>]][
eq
<
port-number
>{<
dst-mac
><
dst-wildcard
>|
any
}<
ether-protocol
>[<
vlan-id
>][
cos
<
value
>][
egress
<
dst-mac
><
dst-wildcard
>][
ingress
<
sor-mac
><
sor-wildcard
>][
time-range
<
range-name
>]]}
This configures the rules
based on TCP.
4
ZXR10(config-hybd-acl)#
rule
<
rule-no
>{
pe
rmit
|
deny
}{<
source
><
source-wildcard
>|
any
}{[<
dest-ip
><
dest-wildcard
>|
any
{
ethe
r-protocol
}[<
vlan-id
>][
cos
<
value
>][
egress
<
dst-mac
><
dst-wildcard
>][
ingress
<
sor-mac
><
s
or-wildcard
>][
time-range
<
range-name
>]][
eq
<
port-number
>{<
dst-mac
><
dst-wildcard
>|
any
}<
ether-protocol
>[<
vlan-id
>][
cos
<
value
>][
egress
<
dst-mac
><
dst-wildcard
>][
ingress
<
sor-mac
><
sor-wildcard
>][
time-range
<
range-name
>]]}
This configures the rules
based on UDP.
5
ZXR10(config-hybd-acl)#
move
<
rule-no
>{
after
|
before
}<
rule-no
>
This moves a rule behind
another rule.
Example
This shows an extended ACL to perform the following functions:
1. Permit
UDP
packets
from
the
network
segment
210.168.1.0/24, the destination IP address 210.168.2.10,
destination MAC address 00d0.d0c0.5741, the source port
100 and the destination port 200 to pass.
2. Forbid
the
BGP
packets
from
the
network
segment
192.168.3.0/24 passing.
3. Forbid all packets with the MAC address 0100.2563.1425.
ZXR10(config)#acl hybrid number 300
ZXR10(config-hybd-acl)#rule 1 permit udp 210.168.1.0 0.0.0.255 Eq
100 210.168.2.10 0.0.0.0 eq 200 any Egress
00d0.d0c0.5741 0000.0000.0000
ZXR10(config-hybd-acl)#rule 2 deny tcp 192.168.3.0 0.0.0.255
Eq BGP any any
ZXR10(config-hybd-acl)#rule 3 deny any any any ingress
0100.2563.1425 0000.0000.0000
Confidential and Proprietary Information of ZTE CORPORATION
63