From 10048ab7a8915f6e1e266cf0e3ff33bd4addd123 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 8 Jun 2023 12:08:14 +0900 Subject: [PATCH] Update ipv4_static_interfaces.cfg --- .../CloudInit/ipv4_static_interfaces.cfg | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg index dc85584..33f2b83 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_interfaces.cfg @@ -35,19 +35,16 @@ chpasswd: # configure network network: - version: 1 - config: - - type: physical - name: eth0 - subnets: - - type: static - address: IPv4 - netmask: MASK - gateway: GATE - dns_nameservers: - - ipDNS1 - - ipDNS2 - - type: dhcp6 + version: 2 + ethernets: + eth0: + dhcp4: false + addresses: + - IPv4/ipPrefix + gateway4: GATE + nameservers: + addresses: [ipDNS1, ipDNS2] + dhcp6: true # later commands runcmd: