There is now also another feature available in newer netplan versions (0.96 and above, in progress SRU for bionic and above, so it should be available soon on all supported releases...).
With this, you'd be able to use "dhcp4-overrides" to specify what metric to use for routes, and whether or not to install routes from DHCP. See https://netplan.io/reference#dhcp-overrides -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1766527 Title: [ubuntu 18.04][netplan] Machine network goes down when second gateway is configured To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-power-systems/+bug/1766527/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs