Layer 2 Troubleshooting Methods for Switches


1. Layer 2 forwarding troubleshooting - traffic flooding

Does the MAC drift? display mac-address mac-move

Configure static MAC 
undo arp check enable
arp static 192.168.1.49 03bf-c0a8-0131

Single board hardware check MAC learning status
[H3C-S12510X-probe]bcm slot 6 chip 0 l2/show/vlan=1001 [
H3C-S12510X-probe]debug l2 slot 6 chip 0 mac/find/vid=1001/mac=00 :0f:e3:b8:12:34

The MAC is sometimes not available.
Whether the device starts the STP protocol, receives the TC message display stp tc, and observes whether it increases

View the underlying hardware mac number of the board:
[H3C-S12510X-probe]bcm slot 6 ch 0 l2/show/count
-- 4 mac address(es) found ---
Check the device software table item to learn the mac number:
[H3C-S12510X -probe]dis mac-ad count
1 mac address(es) found.


2. Layer 2 forwarding fault handling - forwarding packet loss

Check port forwarding for congestion (multiple checks):
bcm chassis 2 slot 1 chip 0 show/c/full

 Step1: Check whether the port VLAN configuration is correct, use display vlan, vlan/show to check
 Step2: Check whether the port STP status is Forwarding, use dis stp brief to check
 Step3: Check whether there is QOS filter configuration, use dis qos, debug qacl show View
 Step4: Check whether the port/VLAN/MAC address learned by MAC is correct, display mac, l2/show, mac/find to check.
        
         Check the spanning tree port blocking:
         [H3C-S12510F] display stp brief

          View the situation of single-board chip learning mac:
          bcm chassis X slot X chip 0 l2/show

          Check the learning status of a specific mac chip:
          debug l2 chassis X slot X chip X mac/find/vid=X/mac=0c:da:41:XX:XX:XX

 Step5: Check the configuration of the aggregation group, and use the display link-aggregation verbose command to view it.
 Step6: Check the port isolation configuration, display port-isolate group, and check again whether the forwarding chip has an abnormal error.
 Step7: Check that the basic faults may have been checked at this time. If no abnormalities are found, it may be that there is an abnormality in the communication between chips. At this time, use Packet
Pattern to check the packet forwarding status on the chip port. Here The operation is more complicated, it is recommended to contact the
background research and development to check and confirm.

Guess you like

Origin blog.csdn.net/weixin_48243774/article/details/129242146