Switch User Manual

ACL Commands 277
direction
— Direction of the ACL. (Range:
in
or
out
. Default is
in.
)
seqnum
— Precedence for this interface and direction. A lower sequence
number has higher precedence. Range: 1 – 4294967295. Default is
1
.
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration and Interface Configuration (Ethernet, VLAN, or Port
Channel) modes
User Guidelines
Global mode command configures the ACL on all the interfaces, whereas the
interface mode command does so for the interface.
Examples
console(config)#ip access-group aclname in
console(config)#no ip access-group aclname in
console(config)#ip access-group aclname1 out
console(config-if-1/0/1)#ip access-group aclname out
2
console(config-if-1/0/1)#no ip access-group aclname
out
mac access-group
Use the mac access-group command in Global Configuration or Interface
Configuration mode to attach a specific MAC Access Control List (ACL) to
an interface in the in-bound direction.
Syntax
mac access-group
name [direction] [sequence]
no mac access-group
name
name — Name of the existing MAC access list. (Range: 1-31 characters)
2CSPC4.XCT-SWUM2XX1.book Page 277 Monday, October 3, 2011 11:05 AM