Hi all,
I have an embedded device running OpenWrt OS (Module AI7688), now I need to connect it with a network switch. It required my device must have a tagged VLAN ID. But I don't find a place to configure VLAN ID for the device.
Could anyone know how to configure tagged VLAN ID for a OpenWrt device?
As you can see, there are directives to enable the use of VLANs, and directives to define the VLANs, and directives to assign the VLANs (both untagged and tagged) to certain ports.
You are either running an old version of OpenWrt, or you are using a fork (not the official OpenWrt). Let's figure out what is going on so that we can make sure you get the right advice. What is the output of:
ubus call system board
Please copy and paste the text -- screenshots are much harder to work with and may be missing information (in fact, it is quite likely your screenshot is not showing the entire contents of the file).
Please use the "Preformatted text </>" button for logs, scripts, configs and general console output.
Please edit your post accordingly. Thank you!
As it happens, I'm using it as a straight-up router with no specific VLAN malarkey. I posted the config solely to give an example of one approach that OpenWRT supports for configuring VLANs; that config is pretty much straight out of the box (the only changes I made were to the LAN IP address and the removal of IPv6, neither of which are relevant to understanding VLAN operation).
You'd likely find it beneficial to upgrade to the latest supported version. Not only will you benefit from feature enhancements and fixes, but you'll also likely have a wider audience for support requests. For example, I haven't touched 15.05 in years; I can't remember anything about it, and any configuration I might recommend might work on 22.03.5, but not work on 15.05.
Up to you, of course, but if your hardware supports a version upgrade there's not much reason not to.
I'll express the same sentiment, but much stronger... you absolutely should upgrade. The version you are running now is from 2015 (so 8 years old) and has long since been EOL and unsupported. What @iplaywithtoys is correct that there are few people here who remember the nuances of using that version (i.e. getting your core question answered will be difficult), but more importantly, there are major security vulnerabilities that cannot be addressed without upgrading.
Please upgrade. You may need to upgrade in a few steps (such as 15.01 > 18.06 > 21.02 > 22.05)... do not keep settings on any of the upgrades since the settings are not compatible.
When you're done, you can post the default config and we can help you with the appropriate modifications.
my bad when not telling the situation from the first, my product was manufactured, and now it goes to installing steps.
The customer does not have enough ethernet port for my device and the only way is using a switch to expand ethernet port. To use this switch, my device must be able to assign vlan ID.
So basically, I cannot upgrade OS for the device now.
Ah... ok, so you probably need to ask the vendor. It is possible that advice here might not work anyway since that is likely a customized fork, not official OpenWrt.