Skip to content

30 ‐ Basics ‐ VLAN Config Gluon

David Bauer edited this page Jul 30, 2024 · 7 revisions

Important notes

  • Existing interface roles have to be removed if any of the assigned ports are remapped
    • Example: When re-assigning lan1, the role of the /lan pseudointerface have to be removed
  • This does only work for platforms who use DSA for the switch-driver

Example Config

root@64295-hh36-c87f5420a1ee-offloader1:~# uci show gluon
[...]
gluon.iface_wan=interface
gluon.iface_wan.name='/wan'
gluon.iface_wan.role='uplink'
gluon.iface_lan=interface
gluon.iface_lan.name='/lan'
gluon.iface_lan_mesh50=interface
gluon.iface_lan_mesh50.name='lan1.50'
gluon.iface_lan_mesh50.role='mesh'
gluon.iface_lan_mesh60=interface
gluon.iface_lan_mesh60.name='lan1.60'
gluon.iface_lan_mesh60.role='mesh'
gluon.iface_lan_mesh70=interface
gluon.iface_lan_mesh70.name='lan1.70'
gluon.iface_lan_mesh70.role='mesh'
gluon.iface_lan_mesh80=interface
gluon.iface_lan_mesh80.name='lan1.80'
gluon.iface_lan_mesh80.role='mesh'
gluon.iface_lan_mesh90=interface
gluon.iface_lan_mesh90.name='lan1.90'
gluon.iface_lan_mesh90.role='mesh'
root@64295-hh36-c87f5420a1ee-offloader1:~# 

Note the following:

  • gluon.iface_lan has it's role property removed. See important Notes.
  • lan1 in this example is the interface name where the VLAN should be added to.
    • This name is not universal. It depends on the device, e.g. on x86 there might be eth0 or eth1.
    • Execute ip l to get a list of all interfaces.

In this configuration, lan1 has the VLANs 50 60 70 80 90 tagged assigned to it.

They are all treated as a single interface mesh-interface, thus not bridging the individual VLANs.