02-17-2025 03:46 AM - edited 02-17-2025 03:48 AM
You have a 6805 switch with multiple VLANs and want to create an ACL to restrict access as follows:
i have configured the ACL
ip access-list extended VLAN311_ACCESS
permit ip 172.28.40.0 0.0.7.255 172.28.23.0 0.0.7.255
permit ip 172.28.152.0 0.0.7.255 172.28.23.0 0.0.7.255
deny ip any 172.28.23.0 0.0.7.255
permit ip any any
interface vlan 311
ip access-group VLAN311_ACCESS in
but this is not working.
Any Help.
02-17-2025 04:05 AM - edited 02-17-2025 04:07 AM
The only part you need is this. As ACL have deny any any at the end, only traffic for vlan 16 and 30 is allowed.
ip access-list extended VLAN311_ACCESS
permit ip 172.28.40.0 0.0.7.255 172.28.23.0 0.0.7.255
permit ip 172.28.152.0 0.0.7.255 172.28.23.0 0.0.7.255
You can also apply one ACL at vlan 16 and 30
ip access-list extended VLAN16_ACCESS
deny ip any 172.23.0.0 0.0.7.255
permit IP any any
interface vlan 16
ip access-group VLAN16_ACCESS out
02-19-2025 08:29 PM - edited 02-19-2025 08:32 PM
Now, I have applied the command below.
ip access-list extended Camera
permit ip 172.28.152.0 0.0.7.255 172.23.0.0 0.0.7.255
deny ip any 172.23.0.0 0.0.7.255
deny ip any any
put the Above ACL on VLAN 311
interface Vlan311
description Extra Vlan
ip address 172.23.7.254 255.255.248.0
ip access-group Camera in
Then make one more ACL
ip access-list extended VLAN30_Camera
deny ip any 172.23.0.0 0.0.7.255
permit ip any any
and this one put on Vlan 30
interface Vlan30
description CC Lab & CC Management VLAN
ip address 172.28.159.254 255.255.248.0
ip access-group VLAN30_Camera out
But no luck, Its not working
02-20-2025 01:51 AM
@rsthakur do you have reachability to those subnets from the switch ? and check the port status does it go in to err-disable state ?
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