摘要 |
<p>Provided is a layer 2 network loop processing method, including: receiving a message sent by a user, and obtaining the source MAC address of the message; when the latest port in the associated ports of the source MAC address in an MAC table is inconsistent with the receiving port of the message, judging that the source MAC address has hopped once; when the number of hops of the source MAC address reaches a preset hop threshold value, sending a detection message through ports which participate in the source MAC address hopping respectively; and when receiving the detection message, determining that the port which receives the detection message is a port which generates a loop, and blocking the port which generates the loop. Also provided are a layer 2 network loop processing apparatus and network device. The method, apparatus and network device provided in the embodiments of the present invention can effectively solve the loop problem of the layer 2 network, which ensures the reliability of network running.</p> |