SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface interface-id
4.
mac access-group
{
name
} {
in
|
out
}
5.
end
6.
show mac access-group
[
interface interface-id
]
7.
show running-config
8.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if
prompted.
enable
Example:
Switch>
enable
Step 1
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Identifies a specific interface, and enter interface
configuration mode. The interface must be a physical Layer
2 interface (port ACL).
interface interface-id
Example:
Switch(config)#
interface gigabitethernet1/0/2
Step 3
Controls access to the specified interface by using the
MAC access list.
mac access-group
{
name
} {
in
|
out
}
Example:
Switch(config-if)#
mac access-group mac1 in
Step 4
Port ACLs are supported in the outbound and inbound
directions .
Returns to privileged EXEC mode.
end
Example:
Switch(config-if)#
end
Step 5
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
OL-29048-01
171
Configuring IPv4 ACLs
Applying a MAC ACL to a Layer 2 Interface