ā04-26-2022 11:47 PM
Hi,
I have two VLAN: VLAN 1 and VLAN 2.
I want VLAN 1 to access to VLAN 2 BUT VLAN 2 cannot access to VLAN 1.
Please how can I do that?
I need access list command.
Thank you
ā04-26-2022 11:53 PM
You can't really do that fully with acls, you need a stateful firewall.
You could use the "established" keyword if it is supported on your device but it is only for TCP but really for what you want to do you need a stateful device.
Jon
ā04-27-2022 12:03 AM
Try this
in - direction is everything that flows from the VLAN
out - Direction of traffic flowing out, towards the VLAN
access-list 100 permit ip 192.168.10.0 0.0.0.255 192.168.20.0 0.0.0.255
access-list 100 deny ip 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255
access-list 100 permit ip any any
int vlan 1
ip access-group 100 in
Note : thinking that VLAN 1 IP address 192.168.10.0/24 and VLAN 2 IP address 192.168.20.0/24
ā04-27-2022 12:06 AM
Balaji
The second line in that acl does nothing at all because the source IPs are never 192.168.20.0/24 inbound on the SVI.
Jon
ā04-27-2022 12:59 AM
Hello
You have already asked this same question from your other OP on access-list here
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