10-15-2007 11:05 PM - edited 03-05-2019 07:06 PM
Hi All,
When switch gets on, it's doesn't have any information in MAC-table. When one PC in that switch transfer any data to other PC in the same switch, it will broadcast that Frame to all ports in that switch. Normally Frame has a field of "Destination MAC Address" in it. When initially MAC-table is empty, how it gets the Destination MAC address of that PC? How it works,explain me.........
Will all the PC's MAC Address will be stored in Interface buffer?
Regards,
Nalini
10-15-2007 11:11 PM
Hi,
When PC1 (IP 1.1.1.1) wants to send a frame to PC2 (2.2.2.2) on the same switch and in the same Vlan, source PC1 will broadcast arp packet asking to get MAC od PC1.It will send packet with destination MAC of broadcast FFFF and IP od PC1 1.1.1.1 . Every station in this Vlan will analyze that, but only station with IP of PC1 will answer to that request.
That is how PC knows what is MAC address of other computers.
Hope that helped. If yes, please rate my answer.
Regards:
Michal
10-15-2007 11:22 PM
Hi Michal
Just to clarify for the original poster. When PC1 wants to send a frame to PC2 (2.2.2.2) PC1 will broadcast arp packet asking to get Mac address of PC2 (not PC1) ie broadcast Mac and IP of PC2.
I fully appreciate you know this, just a typo.
Jon
10-15-2007 11:44 PM
Yes, that was typo, it sends ARP packet with destination MAC=FFFF and destination IP=PC2.
10-16-2007 04:06 AM
Hi michal,
Thanks for ur reply. Still I have questions on:
1)But when a broadcast happens, will ARP packet be sent to learn the MAC addres or the frame is sent?
2)Can you give an example for a broadcast structure?
3)Where ARP table is maintained?
4)How ARP updates MAC-table?
If u know any link that solves all my questions please refer.
Regards,
Nalini
10-15-2007 11:21 PM
Hi nalini,
do u know somthn called BPDU and do u know dat every switch port has one ASIC chip where actually the mac address are stored and the MAC table is created when there is a first time communication that time a broadcast takes place with this procedure as per my knowledge.
regards,
nalini
10-15-2007 11:24 PM
Your question is: how does the mac-table get populated?
Answer: The switch is learning the location (port or interface) of mac adresses by looking at the source adresses of all packets that are received.
When observing a new source adress, an entry in table is created. This is called learning.
After not observing a mac-adress for a predetermined time, it is removed from the table. This is called aging.
regards,
Leo
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