☰ Categories

Linux: Netplan – bringing up an interface link without and ip

Use {} to configure an empty interface in netplan

network:
  ethernets:
    ens160:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.1.4/24, ]
      gateway4: 192.168.1.1
      nameservers:
            addresses: [192.168.1.1]
    ens192: {}
  version: 2

By: tconrad