Loopback plug
A plug that wires a port's transmitter straight into its own receiver, so the port can be tested with nobody at the other end.
For Ethernet it is an RJ45 plug with pin 1 jumpered to 3 and 2 to 6; for gigabit, 4 goes to 7 and 5 to 8 as well. For serial ports TX is tied to RX. If the link comes up and packets come back, the port is healthy and the fault is in the cable or whatever lies beyond it. Not to be confused with the logical loopback interface, which never leaves the operating system.
For fibre, a short length of fibre between transmitter and receiver in the same duplex connector does the job. Long-reach optics, however, transmit hard enough to saturate or even damage a receiver half a metre away, so an attenuator goes into the loop.