2-13
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
action
action
To specify an action to be taken when a match occurs in a VACL, use the action command. To remove
an action clause, use the no form of this command.
action {drop | forward}
no action {drop | forward}
Syntax Description
Defaults This command has no default settings.
Command Modes VLAN access-map mode
Command History
Usage Guidelines In a VLAN access map, if at least one ACL is configured for a packet type (IP or MAC), the default
action for the packet type is drop (deny).
If an ACL is not configured for a packet type, the default action for the packet type is forward (permit).
If an ACL for a packet type is configured and the ACL is empty or undefined, the configured action will
be applied to the packet type.
Examples This example shows how to define a drop action:
Switch(config-access-map)# action drop
Switch(config-access-map)#
This example shows how to define a forward action:
Switch(config-access-map)# action forward
Switch(config-access-map)#
Syntax Description
drop Sets the action to drop packets.
forward Sets the action to forward packets to their destination.
Release Modification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.
Command Description
match Specifies a match clause by selecting one or more ACLs for a
VLAN access-map sequence.
show vlan access-map Displays the contents of a VLAN access map.
vlan access-map Enters VLAN access-map command mode to create a VLAN
access map.