Update ipv4_static_interfaces.cfg

This commit is contained in:
Molly Lau 2023-06-08 12:08:14 +09:00 committed by GitHub
parent 71753d595f
commit 10048ab7a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,19 +35,16 @@ chpasswd:
# configure network # configure network
network: network:
version: 1 version: 2
config: ethernets:
- type: physical eth0:
name: eth0 dhcp4: false
subnets: addresses:
- type: static - IPv4/ipPrefix
address: IPv4 gateway4: GATE
netmask: MASK nameservers:
gateway: GATE addresses: [ipDNS1, ipDNS2]
dns_nameservers: dhcp6: true
- ipDNS1
- ipDNS2
- type: dhcp6
# later commands # later commands
runcmd: runcmd: