Untagged traffic then passes on port 1 to VLAN1. So, it's not that it is impossible to do... It's just that the UI doesn't allow for that granular of configuration between ports and VLAN.
Joined: 18 Mar 2014 Posts: 12922 Location: Netherlands
Posted: Thu Jul 29, 2021 16:30 Post subject:
I mean instead of the check boxes (Actually you can use triple state checkbox, when I was programming for Windows with Visual Studio they had one in the framework but a simple drop down box of course should work)
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Thu Jul 29, 2021 16:34 Post subject:
You're not suggesting we follow OpenWRT's model in the webUI, are you? Blasphemy! *chuckle* I believe FreshTomato has a similar interface of sorts and works well. DD-WRT has always had an issue here and it would be great to come up with a solution that works on all platforms _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Joined: 30 Jul 2007 Posts: 33 Location: Melbourne, Australia
Posted: Sun Aug 01, 2021 0:43 Post subject:
egc wrote:
This is better I think
This modification would be great !
One thought - given there can only be one untagged VLAN per port, could you just put a 'native VLAN dropdown' at the top of each port's VLAN selection list and populate that dropdown from the list of configured VLAN ids (plus 'None')? This could be less of a change to the UI, the main challenge would be populating the dropdown with the configured VLAN ids.
One question - do Broadcom routers that support VLANs always support combining tagged and untagged frames on the same port? _________________ Asus RT-AC87U - dd-wrt
Asus RT-AC68U - dd-wrt
Asus RT-N16 - dd-wrt
TP-Link TL-MR3020 - OpenWRT
VAPs / VLANs / PBR / Entware
Joined: 30 Jul 2007 Posts: 33 Location: Melbourne, Australia
Posted: Sun Aug 01, 2021 9:20 Post subject:
Per Yngve Berg wrote:
msj100 wrote:
One question - do Broadcom routers that support VLANs always support combining tagged and untagged frames on the same port?
Not through the GUI.
Understand combining untagged and tagged is not supported through the GUI - I just recall reading that some of the Broadcom based routers (Asus) did not actually support mixing untagged and tagged frames on a single port.
BTW - example of what I was suggesting for selecting untagged VLAN in mockup screenshot attached.
screenshot-192.168.1.1-2021.08.01-17_58_04c.png
Description:
Example where untagged (native VLAN) per port might be configured?
Filesize:
110.38 KB
Viewed:
3393 Time(s)
_________________ Asus RT-AC87U - dd-wrt
Asus RT-AC68U - dd-wrt
Asus RT-N16 - dd-wrt
TP-Link TL-MR3020 - OpenWRT
VAPs / VLANs / PBR / Entware
Joined: 18 Mar 2014 Posts: 12922 Location: Netherlands
Posted: Sun Aug 01, 2021 10:10 Post subject:
The native VLAN id is the untagged one on VLAN 1 so I am no sure if this is necessary.
We might need the cpu port(s), I think if you have one CPU port traffic is always tagged (but not sure not a vlan expert) but if you have two CPU ports traffic is untagged (at default that is where one CPU port is attached to vlan 1 and the other to vlan 2, again not sure)
Mine is not a mockup it is the real GUI and it works. "Slight problem", the underlying code logic is not functional.
As there is no documentation it will take me weeks of researching and try and error to get it functional.
Joined: 30 Jul 2007 Posts: 33 Location: Melbourne, Australia
Posted: Mon Aug 02, 2021 2:39 Post subject:
OK - I'm still very much learning about VLANs.
Maybe I'm not using the right terminology - I know there is nuance around terms like 'native VLAN' and 'default VLAN' and even 'VLAN 1'.
My understanding:
- each switch port can only have one untagged VLAN id associated with it
- the untagged VLAN id associated with a switch port determines the VLAN with which untagged Ethernet frames from the device connected to that port are associated - this can be any VLAN id (this is what I'm calling 'native VLAN', perhaps wrongly) - I'm already doing this to get non-802.1q capable devices onto a specific network
- configuration of VLAN tagging appears to be at a port level, so does this imply all Ethernet frames for that particular switch port must be tagged (will the port still support untagged frames)? ...after some testing, I see it is absolutely possible to support tagged and untagged frames on a single port - however, I can't seem to find a way to preserve manual swconfig changes so they survive reboot. I assume, for now, I need to write swconfig set and apply commands to rc_startup? _________________ Asus RT-AC87U - dd-wrt
Asus RT-AC68U - dd-wrt
Asus RT-N16 - dd-wrt
TP-Link TL-MR3020 - OpenWRT
VAPs / VLANs / PBR / Entware
Joined: 18 Mar 2014 Posts: 12922 Location: Netherlands
Posted: Mon Aug 09, 2021 11:58 Post subject:
Indeed you need to run the swconfig commands at startup.
I am looking into to it and it is rather complex.
To use the existing logic I came up with the following:
adding a checkbox for each port/vlan to tag that, see picture.
The GUI is working (sort off) but the underlying code-logic is very complex and not quite working yet, I need BS to do that.
Joined: 30 Jul 2007 Posts: 33 Location: Melbourne, Australia
Posted: Mon Aug 09, 2021 12:45 Post subject:
Yeah - I can imagine the logic would get quite tricky - should only have a maximum of one VLAN marked as 'on' with no 'tag' (i.e. untagged) per port. Very tricky! _________________ Asus RT-AC87U - dd-wrt
Asus RT-AC68U - dd-wrt
Asus RT-N16 - dd-wrt
TP-Link TL-MR3020 - OpenWRT
VAPs / VLANs / PBR / Entware