Cisco Switch – Troubleshooting Ping Issues with Attached Device

ciscopingswitchswitchingvlan

PC1-VLAN1======Switch : Successful pings from the switch
PC1-VLAN2======Switch : *Unsuccessful* pings from the switch

I've got a single switch with a static IP directly connected to PC1 with a static IP, both on the same 192.168.1.0/24 network. The switch has no VLAN's on it except the default VLAN1.

With this setup, the switch can successfully ping PC1.

If I Create a VLAN2 and assign PC1's port to VLAN2, the switch can no longer ping PC1. I would understand if another PC on a different VLAN couldn't ping PC1, but I would think that the switch could ping either.

What am I missing?

Thanks!

Best Answer

That's the whole point of VLANs. VLANs create a layer-2 separation. You can't get from one layer-2 domain to another without a layer-3 device (router) connecting them. The switch is just another host on a different VLAN.

The VLANs are like yards separated by fences. You need a gate (router) to get from one to the other.

If you add a VLAN 2 SVI on the switch with an address in the same subnet as the PC, you could ping the PC.

Related Topic