I need to write a CoreOS Cloud Config file in which I need to setup networking. But i have a problem because I have a bit weird environment. What I'm trying to accomplish;
I have a Sophos UTM thats acts as a router/FW, because atm i don't have enough space for a switch, the UTM has a lot of NIC's attached, so that the servers on which I need to run CoreOS on, can directly attach to the UTM. The ports on the UTM that are used for the server connections, are setup as VLAN interfaces. As stated by the Sophos KB (section Ethernet VLAN)
the port the UTM is connected must be configured as a trunk port, and it must be a TAGGED member of each VLAN that you want the UTM to use.
So here my problem comes in. How would I create such interface on the CoreOS box? I want it done via the Cloud Config file, but if that isn't possible then a manual way is also appreciated.
I hope some can help.
Best Answer
Put something like this (adjusted for your nic) in your cloud-config file:
This information come from two sources: the manpages for systemd-networkd and the coreos blog https://coreos.com/blog/intro-to-systemd-networkd
I tried this on one of my own systems since I also will need vlans soon. Works very well. Here is the result: