Specifications

2-12
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738-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 comm and. To re move
an action clause, use the no form of this command.
action {drop | forward}
no action {drop | forward}
Syntax Description
Defaults T his command has no default settings.
Command Modes VLAN access-map mode
Usage Guidelines I n 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 forw ard (permit).
If an ACL for a pa cket type is confi gured and t he ACL is e mpty or undefined, the conf igured acti on will
be applied to the packet type.
Examples This exampl e shows how to define a drop action:
Switch(config-access-map)# action drop
Switch(config-access-map)#
This example shows how to define a forwar d 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.
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.