Skip to content

netplan

netplan interface with two IP addresses

# /etc/netplan/01-netcfg.yaml

network:
  version: 2
  renderer: networkd
  ethernets:
    ens18:
      addresses:
        - 1.1.1.1/24
        - 1.1.1.2/24
      routes:
        - to: default
          via: 1.1.1.254
      nameservers:
          search: [domain.com, local.domain.com]
          addresses: [4.4.4.4,8.8.8.8]