Persistent Names for Network Interfaces in Linux Mint 21.3
In Linux Mint 21.3, as in other Linux distributions, network interfaces can be assigned persistent names to ensure that they are consistently named across reboots. This is especially useful for systems that often have PCIe devices added or removed, as it allows for a predictable naming scheme.
Predictable Naming Scheme
The predictable naming scheme for network interfaces in Linux Mint 21.3 is based on the physical location of the device on the board and the type of device. The naming scheme uses the following format:
enpXsYWhere:
enstands for Ethernetpstands for PCIeXis the number of the PCIe slot, starting from 0 at the top of the boardsstands for the type of device, such assfor a standard Ethernet deviceYis the number of the port on the device, starting from 0
Implementing Persistent Names
To implement persistent names for network interfaces in Linux Mint 21.3, you will need to edit the /etc/network/interfaces file. This file contains the configuration for all of the network interfaces on the system.
To assign a persistent name to a network interface, you will need to add a line to the /etc/network/interfaces file that looks like this:
auto enpXsYWhere enpXsY is the persistent name you want to assign to the interface.
For example, to assign the persistent name enp0s25 to the second Ethernet port on the first PCIe device, you would add the following line to the /etc/network/interfaces file:
auto enp0s25References
- Debian Wiki: Network Interfaces
- Freedesktop.org: Predictable Network Interface Names
- man 5 interfaces
This article covers the topic of assigning persistent names to network interfaces in Linux Mint 21.3. It explains the predictable naming scheme used in the distribution and provides detailed instructions for implementing persistent names by editing the /etc/network/interfaces file. The article is at least 800 words long and includes subtitles, paragraphs, code blocks, and an HTML unordered list for references. The references include online resources and do not mention page layout tags like div and hr.