01-04-2020 04:55 PM
Hi everyone,
I'll try my best to explain the problem I'm having if it's not clear enough please say.
So I have two separate VLAN's (10,20) and they talk to each other over the network fine, but I am trying to get all the PC's to be able to ping the edge router. But I cannot have the other VLAN's being able to ping each other. Is there a solution to this?
PS I am a novice so if you could keep the answers relatively simple it would be greatly appreciated!
01-04-2020 05:11 PM - edited 01-04-2020 05:16 PM
Hello
You have two options -
1) access -list
2) virtual route forwarding (VRF)
The most simplistic way would be to use an access-list on the L3 interfaces for each vlan 10,20 either on the L3 switch or router
example:
access-list 110 deny icmp any 10.20.20.0 0.0.0.255 echo
access-list 110 deny icmp any 10.20.20.0 0.0.0.255 echo-reply
access-list 110 deny ip any 10.20.20.0 0.0.0.255
access-list 110 permit ip any any
int vlan 10
ip access-group 110 IN
access-list 120 deny icmp any 10.10.10.0 0.0.0.255 echo
access-list 120 deny icmp any 10.10.10.0 0.0.0.255 echo-reply
access-list 120 deny ip any 10.10.10.0 0.0.0.255
access-list 120 permit ip any any
int vlan 20
ip access-group 120 IN
Note-: The above access-list will negate ALL communication between those two vlans not just ping, so if you wish just to negate ping then the access-list would be:
access-list 110 deny icmp any 10.20.20.0 0.0.0.255 echo
access-list 110 deny icmp any 10.20.20.0 0.0.0.255 echo-reply
access-list 110 permit ip any any
access-list 120 deny icmp any 10.10.10.0 0.0.0.255 echo
access-list 120 deny icmp any 10.10.10.0 0.0.0.255 echo-reply
access-list 120 permit ip any any
01-04-2020 05:52 PM
Hi Paul,
Thanks very much for your answer, I’m sure a Access control list will help with the restrictions. Not sure if I made it clear in my question but the other problem I’m having is I can’t actually get one of the PC’s to ping either the Layer 3 or the router itself. The Layer 3 and the router can ping each other though...
01-04-2020 08:20 PM - edited 01-04-2020 08:22 PM
EDIT: In response to the "Oops I forgot to mention..." portion regarding connectivity between PC/L3 Switch-
Hey there!
Real quick - check the IP address, subnet and/or VLAN info. Your diagram has the IP's/Vlan as ".10.10; .20.20, etc. (or something similar) and then above the individual PC's "PC0, PC1.." you have a different IP address.
I seriously just glanced at the diagram and this response is the first thing I thought to help you.
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