Action - Cisco Catalyst 3560-X Command Reference Manual

Hide thumbs Also See for Catalyst 3560-X:
Table of Contents

Advertisement

action

action
Note
Syntax Description
Defaults
Command Modes
Command History
Usage Guidelines
Examples
Catalyst 3750-X and 3560-X Switch Command Reference
2-6
Downloaded from
www.Manualslib.com
Use the action access-map configuration command on the switch stack or on a standalone switch to set
the action for the VLAN access map entry. Use the no form of this command to return to the default
setting.
action {drop | forward}
no action
This command is not supported on switches running the LAN base feature set.
drop
Drop the packet when the specified conditions are matched.
forward
Forward the packet when the specified conditions are matched.
The default action is to forward packets.
Access-map configuration
Release
Modification
12.2(53)SE2
This command was introduced.
You enter access-map configuration mode by using the
If the action is drop, you should define the access map, including configuring any access control list
(ACL) names in match clauses, before applying the map to a VLAN, or all packets could be dropped.
In access-map configuration mode, use the match access-map configuration command to define the
match conditions for a VLAN map. Use the action command to set the action that occurs when a packet
matches the conditions.
The drop and forward parameters are not used in the no form of the command.
This example shows how to identify and apply a VLAN access map vmap4 to VLANs 5 and 6 that causes
the VLAN to forward an IP packet if the packet matches the conditions defined in access list al2:
Switch(config)# vlan access-map vmap4
Switch(config-access-map)# match ip address al2
Switch(config-access-map)# action forward
Switch(config-access-map)# exit
Switch(config)# vlan filter vmap4 vlan-list 5-6
You can verify your settings by entering the show vlan access-map privileged EXEC command.
manuals search engine
Chapter 2
Catalyst 3750-X and 3560-X Switch Cisco IOS Commands
vlan access-map
global configuration command.
OL-21522-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750-x

Table of Contents