Say you have one layer 2 switch that has 3 vlans configured on it. You have two PCs connected to the switch on access ports, each in a different VLAN. Without a layer 3 device, the pc's cannot ping each other (obviously). However, the switch has an IP configured in the 3rd vlan (management vlan.) Can you successfully ping the PC's from the switch? Why?
You input is appreciated!
You got it right, but the switch must have a management IP to be used as the source of the ICMP echo packet without it, the switch won't ping.
To prevent any confusion what i meant with this paragraph:
"but if you are using "ip default-gateway x.x.x.x" on the switch then your router (default-gateway) can do the routing for you between the different subnets and thus the switch will be able to ping all the PCs."
I didn't mean that this will do inter-VLAN routing i meant that if an external router is doing inter-VLAN routing, the switch management can now ping PCs in another VLAN using the default-gateway.
HTH, please do rate all helpful replies using the scroll box on the right,
With no layer three process (router or L3 switch), you would not be able to ping a PC or other device in any VLAN other than the management VLAN.
If the switch has no IP address info configured, you wouldn not be able to IP ping anything anywhere ... with no IP address, you have no identity on the network.
A layer two switch doesn't need or use an IP address for anything other than management.