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 MAC Address Limiting on a Bridge Domain
Device>
enable
Device#
configure terminal
Device(config)#
bridge-domain 100
Device(config-bdomain)#
mac limit maximum addresses 1000
Device(config-bdomain)#
end
Example Configuring a MAC Address Limit 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
Carrier Ethernet Configuration Guide (Cisco ASR 920 Series)
116
Configuring MAC Address Limiting on Service Instances Bridge Domains and EVC Port Channels
Example Configuring a MAC Address Deny List