01-13-2019 11:15 AM - edited 03-08-2019 05:01 PM
Cisco docs a bit confusing and just looking for some clarification. If I want to create a vlan Access-map to only allow subnet hosts 10.10.10.0 /24 and drop everything else on vlan 10, would I do the following configs (see 2nd sequence) or is the best way to do it using VACL?
ip access-list standard 10
permit ip 10.10.10.0 0.0.0.255
exit
vlan access-map ALLOW 10
match ip address 10
action forward
exit
vlan access-map ALLOW 20
action drop
exit
vlan filter ALLOW vlan-list 10
01-13-2019 11:40 AM
Seems to be ok, it would be nice if you change the access-list number, because you are tagging vlan 10 and access-list also 10 it confuses.
ip access-list standard 10 <<- change to any other number
permit ip 10.10.10.0 0.0.0.255
exit
vlan access-map ALLOW 10
match ip address 10 <---change as per above number
action forward
exit
vlan filter ALLOW vlan-list 10 <- apply this to VLAN 10. that is the reason above change make difference when you reading.
test and advise.
01-14-2019 07:55 AM
01-14-2019 08:06 AM
yes it is easy to understand rather confuse all over 10, VLAN 10 stay as it is, ACL number changes.
01-14-2019 08:11 AM
You don't have to have the "action drop statement" because by default anything outside 10.10.10.0/24 will be dropped but if you want to keep it that is fine too. The sequence number can be anything 20, 30, etc..
HTH
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide