Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Switch MAC learning

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

6 REPLIES
New Member

Re: Switch MAC learning

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

Hall of Fame Super Blue

Re: Switch MAC learning

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

New Member

Re: Switch MAC learning

Yes, that was typo, it sends ARP packet with destination MAC=FFFF and destination IP=PC2.

New Member

Re: Switch MAC learning

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

New Member

Re: Switch MAC learning

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

Re: Switch MAC learning

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

154
Views
7
Helpful
6
Replies