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

Regarding L2 loop detection

Hi All,

My network consists 82 switches (core , distribution and access). Recently I find mac address flapping in the switch logs and also sometimes overall network becomes slow. I assume there might be l2 loop in the network.

Now can you please help my by letting  me know the process of detecting loop from the switch console.

 

Thanks

Arijit

2 REPLIES
Community Member

Hi You can try to find out

Hi You can try to find out that mac address belongs to ? first..

Start at the router or L3 switch that holds the IP to MAC address in the ARP cache.  That's step one.  You need the MAC address.  You can get that from the ARP cache.  If the ARP cache has timed out and flushed the binding, you can ping the computer from the router/L3 switch to get a new binding.  Once you know the MAC address, you can use the show mac-address-table address <mac address> command to find the path through the network.

 

Router/L3 Switch------Trunk----SW1------Trunk-----SW2------Trunk----SW3--Computer

 

Suppose we wanted to find the port for the computer if we have the IP address.

 

1.  Use the ARP cache (show ARP command) on the router/L3 switch to get the MAC addres

 

2.  Use the show mac-address-table address command to find the outgoing port. In the above topology, the show mac-address-table command will reference the trunk port to the next switch inline to the destination.

 

3.  You can use the show cdp neighbor detail command to get the IP address of the next switch inline to the computer.

 

Repeat the show mac-address-table address command on each switch inline to the computer until you reach the switch that has the computer attached.  You'll know that you found it when your show mac-address-table address command stops referencing trunk ports and finally references the access port the computer is attached to.

Once you found the device having that mac address remove that from the network and check the status if that helps.

 

 

Silver

just look at the interface

just look at the interface reported in MAC flap message, there you have the loop

 

a wrongly cabled Port-channel may cause it

 

do you have a spanning-tree in all VLANs?

259
Views
0
Helpful
2
Replies
CreatePlease to create content