I'm configuring a very small network on packet tracer 8.0 and I have a single 2960-24TT switch which is connected to 2 PCs and 1 router. Everything is on the 24.17.2.0/24 network and I added a VLAN. I have to prevent PC1 from communicating with PC2 while still being able to talk to the router. I decided to use an ACL because the IP addresses are next to each other (Router, VLAN1, PC1, PC2 = .1 ; .2 ; .3 ; .4). I entered the command:
access-list 1 deny host 24.17.2.4
The problem is that I can't apply it anywhere as "ip access-group" is unrecognizable. I followed the instructions here: How can I apply an ACL to interface on a Layer 3 switch? . "No switchport" is unrecognized and nothing seems to be working. Overall, none of the solutions from that thread work. How can I apply my ACL to the VLAN?
On another note, this is for a small school project and there is nothing forcing me to use ACLs. The only restraints I have are that PCs can't communicate with each other, and one of them most be able to access the router. If I'm overthinking things, then please let me know if there's a simpler way. Also, I did think about simply shutting down one of the PC's interface as that would comply with the assignment, but I don't think the prof would find me very funny, so i need to do at least some sort of configuration.
no switchport
needs to be applied to aninterface fa0/0
to make it L3. You can also apply an ACL to an SVI on a VLAN, preferrably onin
, or onout
.