Dell 53-1002116-01 Network Card User Manual


 
Dell Converged Enhanced Ethernet Administrator’s Guide 89
53-1002116-01
ACL configuration and management
9
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. Enter the deny command to create a rule in the MAC ACL to drop traffic with the source MAC
address.
switch(conf-macl-std)#deny 0022.3333.4444 count
4. Enter the permit command to create a rule in the MAC ACL to permit traffic with the source
MAC address.
switch(conf-macl-std)#permit 0022.5555.3333 count
5. Use the seq command to create MAC ACL rules in a specific sequence.
switch(conf-macl-std)#seq 100 deny 0011.2222.3333 count
switch(conf-macl-std)#seq 1000 permit 0022.1111.2222 count
Creating an extended 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 90.
The MAC ACL name length is limited to 64 characters.
To create an extended MAC ACL and add rules, perform the following steps from Privileged EXEC
mode.
1. Enter the configure terminal command to access global configuration mode.
2. Create an extended MAC ACL and enter ACL configuration mode.
The following example sets the name of the extended MAC ACL to “test_02.”
switch(config)#mac access-list extended test_02
3. Create a rule in the MAC ACL to permit traffic with the source MAC address and the destination
MAC address.
switch(conf-macl-ext)#permit 0022.3333.4444 0022.3333.5555
4. Use the seq command to insert the rule anywhere in the MAC ACL.
switch(conf-macl-std)#seq 5 permit 0022.3333.4444 0022.3333.5555
5. Enter the copy command to save the running-config file to the startup-config file.
switch(conf-macl-std)#exit
switch(config)#end
switch#copy running-config startup-config
Modifying MAC ACL rules
You cannot modify the existing rules of a MAC ACL. However, you can remove the rule and then
recreate it with the desired changes.