Update ipv4_static_interfaces.cfg

This commit is contained in:
Molly Lau 2023-06-08 20:06:39 +09:00 committed by GitHub
parent 7976104ce6
commit 2c237a52fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ]