I am a little bit lost how to configure a VLAN on DIR-882 (there is vlan support bot no switch).
I think i need to create driver-level VLANs.
Found the following in the documentation:
Switch Ports (for VLANs)
Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.
Port
Switch port
Internet (WAN)
4
LAN 1
3
LAN 2
2
LAN 3
1
LAN 4
0
I wonder for example how can i able to put LAN1 and LAN2 to VLAN10
Lan1 is tagged
Lan2 is untagged
Also if somebody has some example configuration would be appreciated.
Each port on MT7621-based routers has its own interface, so, although they support VLANs, the configuration currently can't be done from LuCI as far as I know...
I'm having the same issue.
Although I'm somewhat (not extremely) experienced configuring networks, I'm brand new to OpenWRT and still unfamiliar with UCI. I'm improving little by little but still can't find a way to set this up.
My ISP requires the WAN PPPoE connection to be tagged with VLAN 100. Since it's currently not, they drop my connection every 20min or so.
My router is a DIR-878 that also has the same note regarding the switch ports as @ebalcsk 's does.
Should I open a new topic or may I post here as it's a very related issue?
I've tried to append ".100" to the wan ifname, but that didn't work - it wouldn't connect with pppoe and my SQM config would stop recognising the wan interface.
I've also tried creating a "config device" section per the documentation, associating the wan ifname to a 8021q device. That also didn't connect.
I feel I'm missing something here.
Again, sorry if I'm not posting at the correct place - I think OP is facing the same issue on very similar hardware and this will benefit him as well.
The 5.4 kernel uses DSA which takes over the switch hardware and makes it invisible to the user configuration.
The notation wan.100 is supposed to work but last I know, that functionality is still not implemented or broken on the MT7621 chip.
You could work around by using an external managed switch to apply tags. Or look into the modem configuration if the ISP allows access to the modem usually they can be set up to tag internally.
@mk24
Thank you! I've done some testing and it seems that I managed to get the upstream modem - connected to the router's WAN port - to handle the VLAN tagging.
Should we file a bug report on this issue or is this being handled by someone? I had no idea support for this device isn't complete yet.
My PPPoE still keeps disconnecting. I've done some more digging and it appears to be a common issue. I'm currently testing out the "option keepalive" fix and will report if my interface uptime is fixed. Not sure if OP is trying to set up his ISP connection or if he needs VLANs for something else?
DSA is supposed to be smart in combining hardware switching with software bridging. Two ports that are in the same bridge with the same VLAN should end up hardware switched. Packets would only be sent through the CPU if necessary, for example connecting lan1.6 to lan2.10 would require the CPU to rewrite the VLAN number.
That is the idea anyway. I don't know if actually has been achieved, have not tried it. My MT7621 devices are in 19.07.3 so I use that with its conventional separate switch configuration.
Unfortunately i just realized the bridging is not working
config interface 'lan'
option type 'bridge'
option ifname 'lan1.1 lan2 lan3 lan4'
option proto 'static'
option ipaddr '192.168.100.1'
i can able to ping between host's in lan2 lan3 lan4 also can ping the router. this is working properly
the host in lan1.1 can able to ping the router but cannot able to ping anybody in [lan1 lan2 lan3] and vice versa