match mac access-list

Configures or deletes L2/MAC access list (ACL) match criteria for the current route-map or listener-policy instance.

Syntax

match mac access-list aclname
no match mac access-list aclname

Parameters

aclname
Specifies the name of the L2/MAC ACL to be matched and assigned to the current route map.

Modes

Route-map config mode

Listener-policy config mode

Usage Guidelines

If match criteria succeed, the next action is decided by the permit | deny clause of route map:
  • If permitted, packet-forwarding behavior is based on the match and set actions.
  • If denied, packets are dropped.

If match criteria fail, this command is not applied and packets are evaluated by other route-map clauses.

Examples

The following example configures the L2/MAC ACL named to be matched for the current route map.

device(conf-route-map)# match mac access-list mac-1

The following example deletes the L2/MAC ACL named from the current route map.

device(conf-route-map)# no match mac access-list mac-1