98 ACL Commands
Example
The following example shows how to create a MAC ACL with rules.
service-acl
The service-acl Interface (VLAN) Configuration mode command applies an ACL to the input interface.
Use the no form of this command to detach an ACL from an input interface.
Syntax
•
service-acl input
acl-name
• no service-acl input
•
acl-name
— Specifies the ACL to be applied to the input interface.
Default Configuration
This command has no default configuration.
Command Mode
Interface (Ethernet, Port-Channel) Configuration mode.
User Guidelines
There are no user guidelines for this command.
Example
The following example, binds (services) an ACL to VLAN 2.
Console(config)# mac access-list macl-1
Console (config-mac-acl)# deny 66:66:66:66:66:66
Console(config-mac-acl)# exit
Console(config)#
console# config
console(config)# mac access-list macA
console(config-mac-al)# permit a1:a1:a1:a1:a1:a1
00:00:00:00:00:11 any
console(config-mac-al)# exit
console(config)# interface ethernet e10
console(config-if)# service-acl input macA
console(config-if)#
book.book Page 98 Thursday, December 18, 2008 7:40 PM