I could use a hand let's say I have 3 VLANs. There are actually more but I hope the principal is the same.
VLAN1 172.18.184.0/21
VLAN3 172.26.11.0/24
VLAN43 172.21.161.64/26
I want to stop VLAN43 from being able to communicate with any local subnet. I don't work with ACLs often but thought that this would be as simple as saying block any ip to each subnet and applying the rule inbound to VLAN 43 on the core routing 8206zl switch? Can you help me see what I have wrong? There is another 5412zl switch with the VLAN on it but it's not peforming any routing.
ip access-list extended "DenySubnets"
10 deny ip any 172.18.184.0/21
20 deny ip any 172.26.11.0/24
60 permit ip any any
vlan 43 ip access-group "DenySubnets" in
I tried it as out instead thinking that I misunderstood that the ACL would receive packets inbound from VLAN43 and block traffic in the order specified. I thought any ip to the two specified subnets would be blocked and all other traffic would pass. I am obviously missing something simple and I'm just hoping someone will take a moment to get me back on the right path. Thanks in advance.
#ACLs