D-Link DIR-890L default vlans; vlan2, vlan1 .. and vlan0 ?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
finnn
DD-WRT Novice


Joined: 19 Oct 2020
Posts: 5

PostPosted: Mon Oct 19, 2020 16:08    Post subject: D-Link DIR-890L default vlans; vlan2, vlan1 .. and vlan0 ? Reply with quote
Hi,

I am new to DD-WRT. The reason I am getting into DD-WRT is because I want to use vlans to segregate the household teenagers LAN traffic from the rest. So I got hold of a second hand D-Link DIR-890L (rev A1) with dd-wrt preinstalled. Without reading too on the forum much I upgraded it to v3.0-r44483 (maybe that wasn't so clever).

Anyway. I have been reading the Switched Ports page (https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports) and the Default Internal Device Network page (https://wiki.dd-wrt.com/wiki/index.php/Default_internal_device_network). And I wanted to start configuring the vlans and ports assignments when I noticed that my router has the default vlans: vlan2 and vlan1.. and then some vlan0 as well (I haven't touched this myself). Here are the nvram readouts:
Code:

root@DD-WRT:~# nvram show | grep vlan.*ports | sort
size: 40706 bytes (24830 left)
vlan0ports=
vlan1ports=0 1 2 3 5*
vlan2ports=4 5u
root@DD-WRT:~# nvram show | grep port.*vlans | sort
size: 40706 bytes (24830 left)
port0vlans=1
port1vlans=0
port2vlans=0
port3vlans=0
port4vlans=0
port5vlans=0 1 16
root@DD-WRT:~# nvram show | grep vlan.*hwname | sort
size: 40706 bytes (24830 left)
vlan1hwname=et0
vlan2hwname=et0

.. notice the present vlan0ports entry and the odd port.*vlans assignments..

So I am wondering if this is a good state to start configuring my vlans - probably not. However, the router seems to be working ok as is (having a bit of issue with wifi dropouts - thats something different)

Anyway. Will I break/fix anything if I unset the vlan0ports entry and change the port.*vlans values?
.. or should I go for a reset and see if that fixes the nvram values?

Has anyone experienced something similar from a default dd-wrt setup?

Thanks in advance. Smile

Sign. FiNN
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6866
Location: Romerike, Norway

PostPosted: Mon Oct 19, 2020 16:48    Post subject: Reply with quote
vlan1ports=0 1 2 3 5*
vlan2ports=4 5u

This is normal for an AC router. Older routers did use vlan0.

The portXvlans variables only configures what you see in the GUI. They don't configure the switch. The numbering is from the layout of the WRT54G router.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12882
Location: Netherlands

PostPosted: Mon Oct 19, 2020 17:01    Post subject: Reply with quote
Maybe just reset the router to defaults?

Although this is not serious you do not know what else is wrong

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
finnn
DD-WRT Novice


Joined: 19 Oct 2020
Posts: 5

PostPosted: Mon Oct 19, 2020 17:41    Post subject: Reply with quote
Thanks for your fast responses. Smile

Good to know that the port.*vlans don't affect the behavior of the switch.

I think I will do a restore factory defaults using the WebUI. And if the funny nvram settings are still present I will tweak them by hand.
finnn
DD-WRT Novice


Joined: 19 Oct 2020
Posts: 5

PostPosted: Tue Oct 20, 2020 18:44    Post subject: Reply with quote
A quick follow-up on this, in case somebody in the future wondered how it went.

I performed a restore to factory defaults using the WebUI (Administration -> Factory Defaults).
When the router came back online I configured the password and enabled SSH as the very first thing, and performed nvram readout;
Code:

root@DD-WRT:~# nvram show | grep vlan.*ports | sort
size: 37512 bytes (28024 left)
vlan0ports=
vlan1ports=0 1 2 3 5*
vlan2ports=4 5u
root@DD-WRT:~# nvram show | grep port.*vlans | sort
size: 37512 bytes (28024 left)
port0vlans=1
port1vlans=0
port2vlans=0
port3vlans=0
port4vlans=0
port5vlans=0 1 16
root@DD-WRT:~# nvram show | grep vlan.*hwname | sort
size: 37512 bytes (28024 left)
vlan1hwname=et0
vlan2hwname=et0


In short same thing. So I am going to tweak the values by hand before I continue with vlan setup.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum