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

voarsh

Member
Nov 20, 2020
218
19
23
28
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?