Posted: Sat Oct 24, 2020 15:34 Post subject: D-Link DIR-890L and 802.1q VLAN configuration
I have a D-Link DIR-890L gigabit router running DD-WRT v3.0-r44483.I am trying to setup 802.1q VLANs with a trunk between the DIR-890L port labeled 4 to port 1 on a managed switch in the attic, a D-Link DGS-1100-08. But it isn't working for me.
Here is what I have done.
I figured I'd use the default vlan1 on the router (DD-WRT) for normal LAN traffic and an additional vlan10 for the kids LAN traffic. And naturally vlan2 for the default WAN side of the router.
This is the vlan configuration of the attic switch:
I have a hard time understanding which ports are which on the DIR-890L router. As far as I can tell there are the physical labels on the back of the router, then different numbers are used for the WebUI (Switch Config page) and other numbers for the vlan.*ports nvram fields and finally slightly other numbers for the port.*vlans nvram fields. For some info on that have a look here https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=326905. This topic also has the initial nvram fields before I made any modifications.
Anyway. I decided to disregard the WebUI ports and go with the physical labels on the back of the router and the nvram fields. From the link above I got the tip that port.*vlans nvram fields are used for WebUI config and not used by the switch logic, but I tried to set them anyway. For the vlan.*ports fields I took inspiration from the '802.1q VLAN trunk' section on the Switched Ports page (https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports#802.1q_VLAN_trunk)
Here is what I currently have for the nvram variables:
In other words. My intention is the trunk should be tagged with either VLAN ID=1 or VLAN ID=10, and the other ports on both DIR-890L and the attic switch are untagged.
As indicated above, when I have the trunk cable connected between DIR-890L (labelled) port 4 and the attic switch port 1 then nothing is working. I suppose something is wrong with the tagging..
However if I connect the trunk cable to DIR-890L port labelled 3 and the attic switch port 2 then all traffic is untagged and using VLAN ID=1 and then "it is working".. except the ports aren't segregated as I wanted.
Do the above configurations look alright to you?
Do you have experience setting up 802.1q vlans on the DIR-890L?
Thanks for reading my post, and thanks for any input you can give.
Last edited by finnn on Fri Oct 30, 2020 17:55; edited 1 time in total