Hello,
Need some help with systemd networking config. I’m trying to configure the eno1 interface and two VLANs and with what have, I do see the netdev files created when I check ls -l /etc/systemd/network/*netdev*. ip link show has no VLAN interfaces though. I also run into an issue where if I create just just 10-eno1, the PC becomes unroutable but if I have separate -trunk and -physical configs allows it to keep working. Here is what I have setup for systemd networking:
systemd.network = {
netdevs = {
"20-vlan50" = {
netdevConfig = {
Kind = "vlan";
Name = "vlan50";
};
vlanConfig.Id = 50;
};
"20-vlan100" = {
netdevConfig = {
Kind = "vlan";
Name = "vlan100";
};
vlanConfig.Id = 100;
};
};
networks = {
"10-eno1-trunk" = {
matchConfig.name = "eno1";
vlan = [
"vlan50"
"vlan100"
];
networkConfig.LinkLocalAddressing = "no";
linkConfig.RequiredForOnline = "no";
};
"15-eno-physical" = {
matchConfig.Name = "eno1";
address = [
"10.5.5.15/24"
];
gateway = [ "10.5.5.1" ];
dns = [ "10.5.5.1" ];
linkConfig.RequiredForOnline = "routable";
};
"30-vlan50" = {
matchConfig.Name = "vlan50";
DHCP = "ipv4";
linkConfig.RequiredForOnline = "no";
};
"30-vlan100" = {
matchConfig.Name = "vlan100";
DHCP = "ipv4";
linkConfig.RequiredForOnline = "no";
};
};
};