mirror of
https://github.com/Luzifer/hetzner-alpine-k8s.git
synced 2024-12-30 06:41:20 +00:00
Apply static network configuration
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
cd78183636
commit
d4f01e67b0
1 changed files with 4 additions and 1 deletions
|
@ -101,6 +101,9 @@ chroot_commands:
|
||||||
- 'rc-update add local'
|
- 'rc-update add local'
|
||||||
|
|
||||||
# Enable private interface
|
# Enable private interface
|
||||||
- 'echo -e "\n\nauto eth1\niface eth1 inet dhcp" >>/etc/network/interfaces'
|
- 'echo "network: {config: disabled}" >/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'
|
||||||
|
- 'echo -e "auto lo\niface lo inet loopback\n" >/etc/network/interfaces'
|
||||||
|
- 'echo -e "auto eth0\niface eth0 inet dhcp\niface eth0 inet6 auto\n" >>/etc/network/interfaces'
|
||||||
|
- 'echo -e "auto eth1\niface eth1 inet dhcp\niface eth1 inet6 auto\n" >>/etc/network/interfaces'
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue