Infra/cloud-init/arm-ubuntu/network-config

39 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2022-10-18 22:20:04 +02:00
# This file contains a netplan-compatible configuration which cloud-init will
# apply on first-boot (note: it will *not* update the config after the first
# boot). Please refer to the cloud-init documentation and the netplan reference
# for full details:
#
# https://cloudinit.readthedocs.io/en/latest/topics/network-config.html
# https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html
# https://netplan.io/reference
#
# Please note that the YAML format employed by this file is sensitive to
# differences in whitespace; if you are editing this file in an editor (like
# Notepad) which uses literal tabs, take care to only use spaces for
# indentation. See the following link for more details:
#
# https://en.wikipedia.org/wiki/YAML
#
# Some additional examples are commented out below
version: 2
ethernets:
eth0:
match:
name: eth0
mtu: 1500
2022-11-08 21:48:42 +01:00
dhcp4: true
optional: true
2022-10-18 22:20:04 +02:00
vlans:
vlan.2:
addresses:
- 10.0.2.6/26
gateway4: 10.0.2.1
id: 2
link: eth0
nameservers:
addresses:
2022-11-08 21:48:42 +01:00
- 10.0.2.1
2022-10-18 22:20:04 +02:00
search:
- kube.rostvik.site