CloudInit does not set gateway for Ubuntu 18.04 LTS (netplan)


New Member
Jul 25, 2018
I am using cloud-init to set up some Ubuntu 18.04 VM's (uses netplan for net config)

They are all configured using static IPv4 address like 192.168.0.x/24
The gateway is

The generated /etc/netplan/50-cloud-init.yaml file does not contain gateway4 attribute


The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!