< Previous | Contents | Next >
1.1.2. Ethernet Interface Logical Names
Interface logical names can also be configured via a netplan configuration. If you would like control which interface receives a particular logical name use the match and set-name keys. The match key is used to find an adapter based on some criteria like MAC address, driver, etc. Then the set-name key can be used to change the device to the desired logial name.
network: version: 2
renderer: networkd ethernets:
eth_lan0: dhcp4: true
match:
macaddress: 00:11:22:33:44:55 set-name: eth_lan0