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 ]