@@Canada_Indian Hi, a switch does not need to learn the IP addresses of connected devices. I am not getting what exactly you are asking. Anyway, the whole process goes as the following:- PC1 does not know the MAC address of the destination. PC1 generates an ARP frame to learn the MAC address of the destination. The frame contains the source MAC address (As PC1 knows its own address) and the destination MAC address ( A local broadcast address, as it does not know the destination MAC address) The Frame reaches the switch. The switch adds PC1's MAC address in the CAM table and forwards the frame from all ports except the incoming port. The destination PC replies to the broadcast frame. The reply frame contains the destination PC's MAC address. PC1 learns the MAC address of the destination PC. In this entire process, a switch never needs to learn the IP address. It only needs the MAC address and every frame contains it.
Really its a great job
Thanks
A lot of worth knowledge, thank you for this!
Glad it was helpful!
How come pc1 will know the mac address of the destination and add it in the frame?
Computers use ARP protocol to find the MAC addresses of other devices available on the local segment.
Arp packet uses Src ip and dst ip but switch never learn IPs than how come this type of transaction is possible.
@@Canada_Indian
Hi, a switch does not need to learn the IP addresses of connected devices.
I am not getting what exactly you are asking.
Anyway, the whole process goes as the following:-
PC1 does not know the MAC address of the destination.
PC1 generates an ARP frame to learn the MAC address of the destination.
The frame contains the source MAC address (As PC1 knows its own address) and the destination MAC address ( A local broadcast address, as it does not know the destination MAC address)
The Frame reaches the switch.
The switch adds PC1's MAC address in the CAM table and forwards the frame from all ports except the incoming port.
The destination PC replies to the broadcast frame. The reply frame contains the destination PC's MAC address.
PC1 learns the MAC address of the destination PC.
In this entire process, a switch never needs to learn the IP address. It only needs the MAC address and every frame contains it.
@@computernetworkingnotesyoutube thank you very much. It's clear now