How to configure network devices by selecting them using hardware information
deviceSelector
is an alternative method of configuring a network device:
/sys/class/net/...
AND
machine.network.interfaces.deviceConfig
option is mutually exclusive with machine.network.interfaces.interface
LinkStatus
resource (works in maintenance mode):
driver
- matches a device by its driver namehardwareAddr
- matches a device by its hardware addresspermanentAddr
- matches a device by its permanent hardware addressbusPath
- matches a device by its PCI bus pathpciID
- matches a device by its PCI vendor and device IDphysical
- matches only physical devices (vs. virtual devices, e.g. bonds and VLANs)physical
support wildcard matching using *
character.
bond0
interface will be created and bonded using two devices with the specified hardware addresses.
For bonding, use permanentAddr
instead of hardwareAddr
to match the permanent hardware address of the device, as hardwareAddr
might change
as the link becomes part of the bond.