13• When a straight-through cable is used, set the interface to work in the MDI mode different than itspeer.• When a crossover cable is used, set the interface to work in the same MDI mode as its peer, or seteither end to work in auto mode.Follow these steps to set the MDI mode of an Ethernet interface:To do… Use the command… RemarksEnter system view system-view —Enter Ethernet interface view interface interface-typeinterface-number —Set the MDI mode of the Ethernetinterface mdi { across | auto | normal }OptionalBy default, a copper Ethernetinterface operates in auto mode tonegotiate pin roles with its peer.Enabling bridging on an Ethernet interfaceWhen an incoming packet arrives, the device looks up the destination MAC address of the packet in theMAC address table. If an entry is found, but the outgoing interface is the same as the receiving interface,the device discards the packet.To enable the device to forward such packets rather than drop them, enable the bridging function on theEthernet interface.Follow these steps to enable bridging on an Ethernet interface:To do… Use the command… RemarksEnter system view system-view —Enter Ethernet interface view interface interface-typeinterface-number —Enable bridging on the Ethernetinterface port bridge enable RequiredDisabled by default.Testing the cable connection of an EthernetinterfaceNOTE:• Fiber ports do not support this feature.• If the link of an Ethernet port is up, testing its cable connection will cause the link to come down and thengo up.You can test the cable connection of an Ethernet interface for a short or open circuit. The switch displayscable test results within five seconds. If any fault is detected, the test results include the length of the faultycable segment.Follow these steps to test the cable connection of an Ethernet interface: