Brocade Converged Enhanced Ethernet Administrator's Guide v6.1.2_cee (53-1001258-01, June 2009)

Table Of Contents
96 Converged Enhanced Ethernet Administrator’s Guide
53-1001258-01
ACL configuration procedures
7
Creating a standard MAC ACL and adding rules
NOTE
You can use the resequence command to change all the sequence numbers assigned to the rules
in a MAC ACL. For detailed information, see “Reordering the sequence numbers in a MAC ACL on
page 99.
To create a standard MAC ACL and add rules, perform the following steps from Privileged EXEC
mode:
Step Task Command
1. Enter global configuration mode. switch#config t
Enter configuration commands, one per
line. End with CNTL/Z.
switch(config)#
2. Create a standard MAC ACL and enter ACL
configuration mode. The ACL name can have a
maximum of 64 characters. In this example, the
name of the standard MAC ACL is “test_01.”
switch(config)# mac access-list
standard test_01
switch(conf-macl-std)#
3. Create a rule in the MAC ACL to deny (drop) traffic
with the source MAC address.
switch(conf-macl-std)#deny
HHHH.HHHH.HHHH
switch(conf-macl-std)#
4. Create a rule in the MAC ACL to deny (drop) any
traffic.
switch(conf-macl-std)#deny any
switch(conf-macl-std)#
5. Enable the count option for the rule to show how
many packets hit that entry.
switch(conf-macl-std)#deny
HHHH.HHHH.HHHH count
switch(conf-macl-std)#
6. Create a rule in the MAC ACL to permit traffic with
the source MAC address.
switch(conf-macl-std)#permit
HHHH.HHHH.HHHH
switch(conf-macl-std)#
7. Create a rule in the MAC ACL to permit any traffic. switch(conf-macl-std)#permit any
switch(conf-macl-std)#
8. Use the seq option to insert a rule anywhere in
the MAC ACL.
switch(conf-macl-std)#seq 5 permit
HHHH.HHHH.HHHH
9. Enable the count option for the rule to show how
many packets hit that entry.
switch(conf-macl-std)#permit
HHHH.HHHH.HHHH count
switch(conf-macl-std)#