Here we discuss about the uses of VLAN access-map. Suppose your company give you a task to block communication between two hosts in a same VLAN. Definitely IP access-list does not going to help you because the communication does not use the vlan gateway. Vlan access-map will do the job for you. on The below figure I have create the scenario.
There are three host connected with a 3560 switch.There IP address is 10.10.10.100 ,10.10.10.50 & 10.10.10.200.All the three hosts are member of vlan 10.The vlan gateway is 10.10.10.1.We need to block the communication between 10.10.10.100 & 10.10.10.200.find the configuration below.After done the configuration try ping from 10.10.10.100 & 10.10.10.200 & vice verse. you will observe a drop. if you ping to 10.10.10.50 you will get a reply. The configuration is simple but the output is very powerful.
vlan access-map deny-IP 20
action drop
match ip address 101
vlan access-map deny-IP 30
action forward
vlan filter deny-IP vlan-list 10
interface FastEthernet0/1
switchport access vlan 10
interface FastEthernet0/2
switchport access vlan 10
interface FastEthernet0/8
switchport access vlan 10
interface Vlan10
ip address 10.10.10.1 255.255.255.0
There are three host connected with a 3560 switch.There IP address is 10.10.10.100 ,10.10.10.50 & 10.10.10.200.All the three hosts are member of vlan 10.The vlan gateway is 10.10.10.1.We need to block the communication between 10.10.10.100 & 10.10.10.200.find the configuration below.After done the configuration try ping from 10.10.10.100 & 10.10.10.200 & vice verse. you will observe a drop. if you ping to 10.10.10.50 you will get a reply. The configuration is simple but the output is very powerful.
vlan access-map deny-IP 20
action drop
match ip address 101
vlan access-map deny-IP 30
action forward
vlan filter deny-IP vlan-list 10
interface FastEthernet0/1
switchport access vlan 10
interface FastEthernet0/2
switchport access vlan 10
interface FastEthernet0/8
switchport access vlan 10
interface Vlan10
ip address 10.10.10.1 255.255.255.0