Disabling unused Ethernet ports, or switchports, is a basic security measure that minimizes the number of active entry points into the network, which reduces the risk of unauthorized access or potential network breaches. By limiting connectivity only to the necessary devices, the network attack surface is reduced. This practice is part of network hardening and is aligned with the principle of 'least privilege', ensuring that only necessary network connections are active and available.