From 2c237a52fc4ab18d1be49d5d9dc2b1df935a3349 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 8 Jun 2023 20:06:39 +0900 Subject: [PATCH] Update ipv4_static_interfaces.cfg --- Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg index b6469ea..b747195 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg @@ -40,7 +40,9 @@ network: eth0: dhcp4: false addresses: [IPv4/ipPrefix] - gateway4: GATE + routes: + - to: default + via: GATE nameservers: addresses: [ipDNS1, ipDNS2] @@ -56,7 +58,6 @@ runcmd: - rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg - mv /etc/netplan/50-cloud-init.yaml /etc/netplan/20-netcfg.yaml - netplan apply - - echo "" > /etc/netplan/50-cloud-init.yaml # configure cloud-init for NoCloud datasource_list: [ NoCloud, None ]