mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update ipv4_static_interfaces.cfg
This commit is contained in:
parent
7976104ce6
commit
2c237a52fc
1 changed files with 3 additions and 2 deletions
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue