19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

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.

Switch Port Access Control Lists<br />

- Switch port ACLs can only be applied as inbound lists with extended named access lists to<br />

L2 switch interfaces.<br />

- MAC extended access lists perform filtering based on the source and destination MAC addresses,<br />

as well as the optional EtherType information.<br />

Switch#conf t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

Switch(config)#mac access-list ?<br />

extended Extended Access List<br />

Switch(config)#mac access-list extended ?<br />

WORD access-list name<br />

Switch(config)#mac access-list extended example01<br />

Switch(config-ext-macl)#deny any host ?<br />

H.H.H 48-bit destination MAC address<br />

Switch(config-ext-macl)#deny any host 1111.1111.1111<br />

Switch(config-ext-macl)#permit any any<br />

Switch(config-ext-macl)#^Z<br />

Switch#<br />

Switch#sh access-list<br />

Extended MAC access list example01<br />

deny any host 1111.1111.1111<br />

permit any any<br />

Switch#<br />

Switch#conf t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

Switch(config)#int fa0/1<br />

Switch(config-if)#mac access-group example01 ?<br />

in Apply to Ingress<br />

Switch(config-if)#mac access-group example01 in<br />

Switch(config-if)#^Z<br />

Switch#<br />

Switch#sh mac access-group int fa0/1<br />

Interface FastEthernet0/1:<br />

Inbound access-list is example01<br />

Switch#<br />

- The question is do we really want to deny MAC addresses? Deny access based on the EtherType<br />

field in the Ethernet frame header is usually the better option.<br />

- Blocking 0x0800 would mean blocking all IP traffic, which could be handy in the future when<br />

forcing everyone to run IPv6!<br />

272<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

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

Saved successfully!

Ooh no, something went wrong!