Recently i was playing around with Holodeck and i wanted to expand the setup with additional VLANS, after messing around with cloud-builder (L3 interfaces), finally managed to add few extra VLANs.

I’m going to add 3 VLANs with following subners

  1. VLAN 50 – 10.0.50.0/24 (DG 10.0.50.1)
  2. VLAN 60 – 10.0.60.0/24 (DG 10.0.60.1)
  3. VLAN 70 – 10.0.70.0/24 (DG 10.0.70.1)

Add specific VLAN NICs

example for VLAN 50, create the netdev and network files, the network config files are stored in /etc/systemd/network

eth0.50.netdev

[NetDev]
Name=eth0.50
Kind=vlan
[VLAN]
Id=50

eth0.50.network

[Match]
Name=eth0.50
[Network]
DHCP=no
Address=10.0.50.1/24

10-eth0.network (eth0 config on CloudBuilder)

[Match]
Name=eth0
[Network]
DHCP=no
DNS=10.0.0.221
Domains=vcf.sddc.lab
NTP=10.0.0.221
VLAN=eth0.15
VLAN=eth0.14
VLAN=eth0.11
VLAN=eth0.12
VLAN=eth0.13
VLAN=eth0.10
VLAN=eth0.50
VLAN=eth0.60
VLAN=eth0.70

Set permissions on new interfaces and restart networking services

chmod 644 /etc/systemd/network/.net

systemctl enable systemd-networkd-wait-online.service

systemctl restart systemd-networkd

By Ray