Cisco Catalyst 2960-X Security Configuration Manual page 197

Cisco ios release 15.0(2)ex
Hide thumbs Also See for Catalyst 2960-X:
Table of Contents

Advertisement

Configuring IPv4 ACLs
SUMMARY STEPS
1. vlan access-map name [number]
2. match {ip | mac} address {name | number} [name | number]
3. Enter one of the following commands to specify an IP packet or a non-IP packet (with only a known MAC
address) and to match the packet against one or more ACLs (standard or extended):
4. vlan filter mapname vlan-list list
DETAILED STEPS
Command or Action
Step 1
vlan access-map name [number]
Example:
Switch(config)# vlan access-map map_1
20
Step 2
match {ip | mac} address {name | number}
[name | number]
Example:
Switch(config-access-map)# match ip
address ip2
Step 3
Enter one of the following commands to
specify an IP packet or a non-IP packet (with
only a known MAC address) and to match the
packet against one or more ACLs (standard or
extended):
OL-29048-01
• action { forward}
Switch(config-access-map)# action forward
• action { drop}
Switch(config-access-map)# action drop
Purpose
Creates a VLAN map, and give it a name and (optionally) a number. The
number is the sequence number of the entry within the map.
When you create VLAN maps with the same name, numbers are assigned
sequentially in increments of 10. When modifying or deleting maps, you
can enter the number of the map entry that you want to modify or delete.
VLAN maps do not use the specific permit or deny keywords. To deny a
packet by using VLAN maps, create an ACL that would match the packet,
and set the action to drop. A permit in the ACL counts as a match. A deny
in the ACL means no match.
Entering this command changes to access-map configuration mode.
Match the packet (using either the IP or MAC address) against one or more
standard or extended access lists. Note that packets are only matched against
access lists of the correct protocol type. IP packets are matched against
standard or extended IP access lists. Non-IP packets are only matched against
named MAC extended access lists.
Note
Sets the action for the map entry.
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
If the VLAN map is configured with a match clause for a type of
packet (IP or MAC) and the map action is drop, all packets that
match the type are dropped. If the VLAN map has no match clause,
and the configured action is drop, all IP and Layer 2 packets are
dropped.
Configuring VLAN Maps
173

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents