S e n d c o m m e n t s t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
6-10
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 6 Security Commands
action
action
To specify what the switch does when a packet matches a
permit
command in a VLAN access control
list (VACL), use the
action
command. To remove an
action
command, use the
no
form of this command.
action {drop forward}
no action {drop forward}
Syntax Description
Command Default
None
Command Modes
VLAN access-map configuration.
Command History
Usage Guidelines
The
action
command specifies the action that the device takes when a packet matches the conditions in
the ACL specified by the
match
command.
Examples
This example creates a VLAN access map named vlan-map-01, assigns an IPv4 ACL named ip-acl-01
to the map, specifies that the switch forwards packets matching the ACL, and enables statistics for traffic
matching the map:
switch(config)#
vlan access-map vlan-map-01
switch(config-access-map)#
match ip address ip-acl-01
switch(config-access-map)#
action forward
switch(config-access-map)#
statistics
Related Commands
drop
Specifies that the switch drops the packet.
forward
Specifies that the switch forwards the packet to its destination port.
Release
Modification
4.0(0)N1(1a)
This command was introduced.
Command
Description
match
Specifies an ACL for traffic filtering in a VLAN access map.
show vlan access-map
Displays all VLAN access maps or a VLAN access map.
show vlan filter
Displays information about how a VLAN access map is applied.
statistics
Enables statistics for an access control list or VLAN access map.
vlan access-map
Configures a VLAN access map.
vlan filter
Applies a VLAN access map to one or more VLANs.