kb

Netplan gateway4 is dead – long live route

# This is the network config written by ‘subiquity’

network:

  ethernets:

    ens3:

      addresses:

        – xxx.xxx.xxx.xxx/24

      #gateway4:

      #  – 10.4.99.1

      nameservers:

        addresses: [xxx.xxx.xxx.xxx]

      routes:

        – to: default

          via: 10.4.99.1

  version: 2

Hint: after modifying your netplan dont forget to: netplan apply or netplan –debug apply so you can see what´s happening