03-15-2021 10:44 AM
Hi everybody.
In my network down below I'm trying to block a specific vlan to go through the trunk link between the switch in the orange zone (switchhute) and the switch that it is connected to (2950-1). I want to prevent everybody in the green zone (vlan 22) from getting to the PC called Davicom in the orange zone (vlan 20).
I tried using the command ''switchport trunk allowed vlan 20,21,99'' (99 being the native vlan), but it doesn't work. PCs in the green zone can still ping the Davicom PC in the orange zone through the trunk.
What am I doing wrong? Should I use ACLs instead?
Thank you.
Solved! Go to Solution.
03-15-2021 03:47 PM - edited 03-15-2021 03:49 PM
Hello
@Oliver42 wrote:
What am I doing wrong? Should I use ACLs instead?
Yes you should, as denying the vlan on the trunk wont negate connection
your L3 switch:
ip access-list extended no-vlan22
deny ip any 22.22.22.0 0.0.0.255 <-- change for the real address of vlan 22 subnet
permit ip any any
int vlan 20
ip access-group no-vlan22 in
03-15-2021 03:47 PM - edited 03-15-2021 03:49 PM
Hello
@Oliver42 wrote:
What am I doing wrong? Should I use ACLs instead?
Yes you should, as denying the vlan on the trunk wont negate connection
your L3 switch:
ip access-list extended no-vlan22
deny ip any 22.22.22.0 0.0.0.255 <-- change for the real address of vlan 22 subnet
permit ip any any
int vlan 20
ip access-group no-vlan22 in
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