Skip to main content
grammar
Source Link
user68186
  • 39.2k
  • 13
  • 101
  • 134

Netplan can match interface by MAC address. Like

...
  ethernets:
    bridge-port:
      match:
        macaddress: 00:9d:d8:aa:66:19
      dhcp4: no
...
  bridges:
    bridge0:
...
      interfaces:
        - bridge-port

The interface ID (bridge-port in this case) must be unique in the configuration but otherwise can be anything. It is customcustomery to use the interface name for the interface ID but it is not mandatory.

Netplan can match interface by MAC address. Like

...
  ethernets:
    bridge-port:
      match:
        macaddress: 00:9d:d8:aa:66:19
      dhcp4: no
...
  bridges:
    bridge0:
...
      interfaces:
        - bridge-port

The interface ID (bridge-port in this case) must be unique in the configuration but otherwise can be anything. It is custom to use the interface name for the interface ID but it is not mandatory.

Netplan can match interface by MAC address. Like

...
  ethernets:
    bridge-port:
      match:
        macaddress: 00:9d:d8:aa:66:19
      dhcp4: no
...
  bridges:
    bridge0:
...
      interfaces:
        - bridge-port

The interface ID (bridge-port in this case) must be unique in the configuration but otherwise can be anything. It is customery to use the interface name for the interface ID but it is not mandatory.

Source Link

Netplan can match interface by MAC address. Like

...
  ethernets:
    bridge-port:
      match:
        macaddress: 00:9d:d8:aa:66:19
      dhcp4: no
...
  bridges:
    bridge0:
...
      interfaces:
        - bridge-port

The interface ID (bridge-port in this case) must be unique in the configuration but otherwise can be anything. It is custom to use the interface name for the interface ID but it is not mandatory.