Hello
To prevent loops from being created at the edge of your network.
Perform the below on the switch:
1. system-view
2. loopback-detection enable
3. loopback-detection multi-port-mode enable
4. interface interface-type interface-number
5. loopback-detection enable
6. loopback-detection control enable
7. loopback-detection per-vlan enable
8. loopback-detection action { no-learning | semi-block |
shutdown } Optional.
By default, a looped interface drops the incoming packets and correctly sends packets; the system generates traps and log messages, and deletes all MAC address entries of the looped interface. With the shutdown keyword specified, the switch shuts down the looped ports and set their physical state to Loop down. When a looped port recovers, you must use the undo shutdown command to restore its forwarding capability.