VLAN ACL (VACL)We know ACL (Access list) is used to permit and deny traffic.By using VACL,we can control forwarding or denying of packets that are routed into or out of a VLAN or are bridged within a VLAN. VACLs are strictly for security packet filtering and for redirecting traffic to specific physical interfaces. VACLs are not defined by direction (ingress or egress).
Terms used with VLAN ACLs
VACLs use access maps to contain an ordered list of one or more map entries. Each map entry associates a ACLs to an action. Each entry has a sequence number, which allows you to control the precedence of entries.
Each VLAN access map entry can specify one of the following actions:
• Forward—Sends the traffic to the destination determined by normal operation of the switch.
• Redirect—Redirects the traffic to one or more specified interfaces.
• Drop—Drops the traffic. If you specify drop as the action, you can also specify that the device logs
the dropped packets.
In access map configuration mode, you use the action command to specify the action for a map entry
Creating of VLAN ACL includes 3 steps
- Create Access-List
- Create Access MAP
- Apply on VLAN
Create Access MAP
- Switch#conf terminal
- Switch(config)#ip access-list standard 10
- Switch(config-std-nacl)#permit 188.8.131.52 0.0.0.255
- Switch(config)#vlan access-map SYSNET 1
- Switch(config-access-map)#match ip address 10
- Switch(config-access-map)#action forward
- Switch(config)# vlan access-map SYSNET 2
- Switch(config-access-map)# action drop
- Switch(config-access-map)# exit
- ”1″ is the line number 1 of the access-map named “SYSNET”
- ”10″ is the access-list number used to identify the ACL
- This is the action that will be applied to the traffic matched on ACL “10″ .Here we need to allow traffic so we give "action forward
- Even there is a implicit deny at the end like normal ACL,here we giving "action drop" statement to deny other traffic
Apply on VLAN
Switch(config)#vlan filter SYSNET vlan-list 20Switch(config)#(config)#exitApplies the VLAN access-map named “SYSNET” to vlan 20.
To remove VLAN ACL
Switch(config)#no vlan access-map map-name [sequence-number]