1-31[Sysname] loopback-detection multi-port-mode enable[Sysname] interface gigabitethernet 2/0/1[Sysname-GigabitEthernet2/0/1] loopback-detection enable[Sysname] interface gigabitethernet 2/0/2[Sysname-GigabitEthernet2/0/2] loopback-detection enableloopback-detection per-vlan enableSyntaxloopback-detection per-vlan enableundo loopback-detection per-vlan enableViewEthernet interface view, port group viewDefault Level2: System levelParametersNoneDescriptionUse the loopback-detection per-vlan enable command to enable loopback detection in each VLANon trunk or hybrid ports.Use the undo loopback-detection per-vlan enable command to disable loopback detection in all butthe default VLAN on trunk or hybrid ports.By default, a trunk port or hybrid port performs loopback detection only in its default VLAN.The loopback-detection per-vlan enable command is not applicable to access ports.Examples# Enable loopback detection in all VLANs on hybrid port GigabitEthernet 2/0/1. system-view[Sysname] loopback-detection enable[Sysname] interface gigabitEthernet 2/0/1[Sysname-GigabitEthernet2/0/1] loopback-detection enable[Sysname-GigabitEthernet2/0/1] port link-type trunk[Sysname-GigabitEthernet2/0/1] loopback-detection per-vlan enablemdiSyntaxmdi { across | auto | normal }undo mdiViewEthernet interface viewDefault Level2: System levelParametersacross: Sets the MDI mode to across. In this mode, pins 1 and 2 of the port are receive pins, and pins3 and 6 are transmit pins.