03-01-2019 09:00 AM
As per my understanding ARP works on Layer3 and switch only check layer2 header to process packets.
I am wondering if there is case in which there is only pure L2 environment, how communication will happen between two PC without ARP.
PC1 10.10.10.10/24 mac 11---------Pure L2 switch------------- mac 22 ----PC2 10.10.10.11/24
How switch will build mac table
03-01-2019 09:23 AM
Assuming no previous communication, PC1 sends arp for PC2 and switch sees mac address of PC1 on that port.
Then switch floods packet out of all other ports and PC2 receives it, responds at which point switch now learns the mac address and port of PC2.
Both PCs needs to map the other's IP address to a mac address but a L2 switch has no need to use the IPs.
Jon
03-01-2019 09:27 AM
If both PC are in different subnet then how switch will learn each other mac address?
Does PC1 cannot communicate to PC2 without router?
03-01-2019 09:30 AM
If the PCs are in different subnets then you need a L3 device to route between them.
Jon
03-01-2019 10:07 AM
03-01-2019 10:11 AM
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