You are not logged in.

#1 2022-06-20 17:56:45

dbacc
Member
Registered: 2014-09-25
Posts: 119

systemd-networkd vlan config with tagged and untagged VLAN

I followed https://wiki.archlinux.org/title/VLAN#Single_interface for configuring my device thats connected to my router with tagged vlan id 1 and untagged on id 10.

Unfortunately, the device always connects to the untagged vlan.
Only if I turn off the untagged id 10 on my router my device connects to vlan 1.

Is there a way to configure default untagged traffic?

Here is my config for reference:

cat 10-enp7s0f4u1u1u2.network enp7s0f4u1u1u2.1.netdev enp7s0f4u1u1u2.1.network

[Match]
Name=enp7s0f4u1u1u2
Type=ether

[Network]
DHCP=ipv4
VLAN=enp7s0f4u1u1u2.1
-------------------------

[NetDev]
Name=enp7s0f4u1u1u2.1
Kind=vlan

[VLAN]
Id=1
------------------------------

[Match]
Name=enp7s0f4u1u1u2.1
Type=vlan

[Network]
DHCP=ipv4

Also, vlan devices do not show up with networkctl list

IDX LINK           TYPE     OPERATIONAL SETUP      
  1 lo             loopback carrier     unmanaged
  2 enp2s0f0       ether    no-carrier  configuring
  3 enp5s0         ether    no-carrier  configuring
  5 wlan0          wlan     routable    configured 
 11 enp7s0f4u1u1u2 ether    routable    configured 

5 links listed.

Last edited by dbacc (2022-06-20 17:57:52)

Offline

Board footer

Powered by FluxBB