Skip to main content
Talos Linux by default names physical network interfaces based on predictable interface naming conventions (e.g., 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.).
The link alias is built using a CEL expression running on the specfication of a LinkStatus resource:
The following example creates a link alias net0 for the only physical network interface found on the system:
The following example creates a link alias mgmt for the network interface with a specific MAC address:
The aliases can be observed in the LinkStatus resources:
In the above example, the physical interface 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: