-
Notifications
You must be signed in to change notification settings - Fork 0
30 ‐ Basics ‐ VLAN Config Gluon
David Bauer edited this page Jul 30, 2024
·
7 revisions
- 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
- Example: When re-assigning
- This does only work for platforms who use DSA for the switch-driver
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'srole
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
oreth1
. - Execute
ip l
to get a list of all interfaces.
- This name is not universal. It depends on the device, e.g. on x86 there might be
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.