cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1237
Views
7
Helpful
6
Replies

Switch MAC learning

nalini1023
Level 1
Level 1

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 6

michal.grzelak
Level 1
Level 1

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

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

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

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

sandy3006
Level 1
Level 1

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

lgijssel
Level 9
Level 9

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

Review Cisco Networking for a $25 gift card