22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Click here to view code image<br />

Egypt# conf t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Egypt(config)# mac access-list mac-acl<br />

Egypt(config-mac-acl)# permit 0050.561f.73d3<br />

0050.56bc.48dd any<br />

Example 5-51 shows how to maintain global statistics <strong>and</strong> a counter for packets that match<br />

the ACL rules. The switch maintains global statistics for packets that match the rules in the<br />

ACL.<br />

Example 5-51. Maintaining Global Statistics <strong>and</strong> Counter for Packets That Match the<br />

ACL Rules<br />

Egypt(config-mac-acl)# statistics per-entry<br />

Example 5-52 shows how to verify the MAC ACL configuration.<br />

Example 5-52. Verifying the MAC ACL Configuration<br />

Click here to view code image<br />

Egypt(config-mac-acl)# show mac access-lists mac-acl<br />

MAC access list mac-acl<br />

statistics per-entry<br />

10 permit 0050.561f.73d3 0050.56bc.48dd any<br />

Egypt(config-mac-acl)# exit<br />

Egypt(config)# exit<br />

Egypt(config)# mac access-list mac-acl<br />

Egypt(config-mac-acl)# 100 permit 0050.561f.73d3<br />

0000.00ff.ffff any<br />

Egypt# show mac access-lists mac-acl<br />

MAC access list mac-acl<br />

statistics per-entry<br />

10 permit 0050.561f.73d3 0050.56bc.48dd any<br />

100 permit 0050.561f.73d3 0000.00ff.ffff any

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!