07-12-2019 08:01 AM
Hello Friends,
I have a question about how the switch can learn the mac address in a common network. I know that when we have a router on the network when we communicate through IP addresses it also helps to get the MAC address of a device but how does the switch now where to send frames or lets say how does the switch learns the MAC address when all the devices are just connected to a switch ?
I hope my question makes sense and thanks a lot for your time,
Best regards,
07-12-2019 08:13 AM
Hi,
When a device send a frame to a switch the switch copies the senders MAC into its mac address table, IE MAC to interface MAP.
The source & destination MAC are in the layer2 (data link) frame header
Have a look at this link its explains the frame set up
https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_packet_–_physical_layer
The switch now knows that any frames destined for your MAC are to be sent to your port.
Hope this helps you.
07-12-2019 08:29 AM
Do not like re-invent the wheel, there were good discussion around the forum already :
https://community.cisco.com/t5/switching/how-switch-learn-mac-address/td-p/1001634
07-12-2019 09:30 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