Example Configuring a MAC Address Deny List
The following example shows how to configure a MAC address deny list:
Device>
enable
Device#
configure terminal
Device(config)#
interface gigabitethernet 3/0/1
Device(config-if)#
service instance 100 ethernet
Device(config-if-srv)#
encapsulation dot1Q 100
Device(config-if-srv)#
bridge-domain 100
Device(config-if-srv)#
mac security address deny a2aa.aaaa.aaaa
Device(config-if-srv)#
mac security address deny a2aa.aaaa.aaab
Device(config-if-srv)#
mac security address deny a2aa.aaaa.aaac
Device(config-if-srv)#
mac security address deny a2aa.aaaa.aaad
Device(config-if-srv)#
mac security address deny a2aa.aaaa.aaae
Device(config-if-srv)#
mac security
Device(config-if-srv)#
end
Example Configuring a MAC Address Security on a Service Instance
Device>
enable
Device#
configure terminal
Device(config)#
interface gigabitethernet 3/0/1
Device(config-if)#
service instance 100 ethernet
Device(config-if-srv)#
encapsulation dot1Q 100
Device(config-if-srv)#
bridge-domain 100
Device(config-if-srv)#
mac security maximum addresses 10
Device(config-if-srv)#
mac security
Device(config-if-srv)#
end
Example Configuring a MAC Address Violation Response
Device>
enable
Device#
configure terminal
Device(config)#
interface gigabitethernet 3/0/1
Device(config-if)#
service instance 100 ethernet
Device(config-if-srv)#
encapsulation dot1Q 100
Device(config-if-srv)#
bridge-domain 100
Device(config-if-srv)#
mac security address permit a2aa.aaaa.aaaa
Device(config-if-srv)#
mac security violation protect
Device(config-if-srv)#
mac security
Device(config-if-srv)#
end
Example Configuring MAC Address Aging
Device>
enable
Device#
configure terminal
Device(config)#
interface gigabitethernet 4/0/1
Device(config-if)#
service instance 100 ethernet
Device(config-if-srv)#
encapsulation dot1q 100
Device(config-if-srv)#
bridge-domain 100
Device(config-if-srv)#
mac security aging time 10
Device(config-if-srv)#
mac security
Device(config-if-srv)#
end
Layer 2 Configuration Guide for Cisco NCS 4200 Series
68
Configuring MAC Address Security on Service Instances and EVC Port Channels
Example Configuring a MAC Address Deny List