[SOLVED] Ubutnu Cloud Image with CloudInit: change GW while running

voarsh

Member
Nov 20, 2020
218
18
23
27
Hi.
I need to change the eth0/net0 gateway on my Ubuntu VM's that are running with CloudInit, I can change the GW in the configuration file but requires restart.

Networking with CloudInit is different than just running a normal Ubuntu image, I think...

Does anyone know how I can change the gateway on the fly with minimal disruption?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!