2-6
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2 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
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)#
Related Commands match
show vlan access-map
vlan access-map
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.