mac-list
To filter based on a MAC address, use the mac-list command. To remove the MAC list entry, use the no form of this command.
mac-list name [seq number] {permit | deny} mac-address [mac-mask]
mac-list name [seq number] {permit | deny} mac-address [mac-mask]
Syntax Description
name |
MAC list name. The name can be any case-sensitive, alphanumeric string up to 32 characters. |
seq number |
Creates an entry in the MAC list. The seq range is from 1 to 4294967294. |
permit |
Allows the packet or route that matches a MAC address in the MAC list. |
deny |
Blocks the packet or route that matches a MAC address in the MAC list. |
mac-address |
MAC address to filter against. |
mac-mask |
Portion of the MAC address to match against, in MAC address format. |
Command Default
No match values are defined.
Command Modes
global configuration
Command History
Release |
Modification |
---|---|
5.0(2) |
This command was introduced. |
Usage Guidelines
To filtean Overlay Transport Virtualization (OTV) packetr based on MAC address, use the mac-list command. You can match against this MAC list in a route map associated with OTV redistribution.
This command requires the LAN Enterprise license.
Examples
This example shows how to create the Red MAC list:
switch#configure terminal
switch(config)# mac-list Red seq 1 permit 0022.5579.a4c1 ffff.ffff.0000