Routing – How to ping between VLANs

layer3pingroutingswitchvlan

I have created VLANs on the layer 3 switch and I would like to ping between them, how do i do so?

I would like to allow VLAN 2 to ping VLAN 3, how? What command should I use?

new#sh ip interf brief vlan 2
Interface              IP-Address      OK? Method Status                Protocol
Vlan2                  10.1.4.1        YES manual up                    up


new#sh ip interf brief vlan 3
Interface              IP-Address      OK? Method Status                Protocol
Vlan3                  10.1.2.1        YES manual up                    up

Best Answer

If your switch has L3 ability, you can issue the ip routing on the global config and then use the ping. Also the L3 communication between VLAN interfaces (as known as SVI on Cisco literature) starts to work. This test can be done either on the switch itself or by the hosts which are connected to their respective VLANs.

Use a extended ping command by using the source address from an SVI interface you've created towards the IP address of the another SVI on this switch.

Once these interfaces are up, and you have setup the IP addresses on the hosts belonging to them, you are able to see the ARP table for each L3 interface (SVI).

Hope this helps!