The Cisco Infrastructure group is for the discussion of technical issues that arise during the implementation, administration, or daily use of Cisco networking products such as WAN, LAN, Switching, Routing, and Network Management.

Inter Vlan routing in Layer 3 switch

I have a Layer 3 switch with two vlans are in it VLAN 2 and VLAN 3. Suppose PC- A is connected to VLAN2 and PC- B is connected to VLAN 3 .When PC-A communicate with PC-B does PC-A get the mac-address of PC-B ? Then how it get the mac address of different vlan ? Does each vlan have mac-address ? Please explain about it

Your question goes to the fundamental differences between layer 2 and layer 3 in the OSI model.

PC-A wants to communicate with PC-B and notices they are not on the same subnet, which means that PC-A needs to send the communication to its default gateway to be routed to PC-B. When this happens, PC-A will send an ARP request to obtain the gateway's MAC address. PC-A then sends the communication to PC-B's IP address but addressed to the gateways's MAC address so the gateway can process layer 3 routing to PC-B. Once PC-B receives the communication, the process starts in reverse with PC-B sending an ARP request to determine its default gateway.

So, PC-A and PC-B will not have each other's MAC address in their ARP cache because they are on different layer 2 subnets.

Thanks for your reply,
I have one more doubt, Now PC-A & PC-B which have the default gateway
of their respective VLAN's ip address, My question is that does each vlan
interface (default gateway) have unique mac address? Please tell me the
details.

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.