ens3, enp0s31f6, etc.).
In some scenarios, it might be desirable to provide alternative, more user-friendly names for network interfaces.
This can be achieved using LinkAliasConfig configuration documents.
Note:
- only physical links can be aliased (logical links like bridges, bonds, or VLANs are given user-defined names directly);
- link alias configuration document should match exactly one physical link, otherwise the configuration will not be applied;
- link alias can be used interchangeably with physical link names in all networking configuration sections (links, routes, addresses, etc.).
LinkStatus resource:
net0 for the only physical network interface found on the system:
mgmt for the network interface with a specific MAC address:
LinkStatus resources:
enp0s2 has been aliased to net0, which can now be used in all networking configuration sections.
To see all aliases produced from the machine configuration, use the following: