I've a network interface eth0
that carries my main network as untagged traffic and a "management" network with tagged traffic with the id 18
. This is how it's configured:
10-eth0.network:
[Match]
Name=eth0
[Link]
RequiredForOnline=yes
[Network]
DHCP=v4
VLAN=vlan18
vlan18.netdev:
[NetDev]
Name=vlan18
Kind=vlan
[VLAN]
Id=18
vlan18.network:
[Match]
Name=vlan18
[Network]
Address=10.10.1.1/24
On boot the server will start eth0
get an IP via DHCP and also create vlan18@eth0
for the "management" network with the static IP 10.10.1.1
and it all works.
How can I tell networkctl to create the vlan18@eth0
interface but without bringing it UP on boot? The idea is to have a bunch of scripts that will do ip link set vlan18 up
/ ip link set vlan18 down
to access to that network when required.
Thank you.