Posted: Wed Jul 27, 2022 18:41 Post subject: Assign WAN to LAN? WNDR3700v1
Returning to dd-wrt after a lengthy hiatus, I've transformed an older WNDR3700v1 device into a switch (to replace a bad off-the-shelf switch). It works, but the WAN port didn't seem to immediately function as a LAN port, and the old "Assign WAN to LAN" was apparently removed and replaced with... nothing I recognize. Any help?
Hopefully this functionality still exists, and is not too difficult to restore.
Joined: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Wed Jul 27, 2022 19:03 Post subject:
Check Setup -> Networking to see if vlan2 has been assigned to br0 automatically or not. You can assign vlan2 to br0 manually and / or manipulate the switch config with swconfig. See the following thread for an example:
Check Setup -> Networking to see if vlan2 has been assigned to br0 automatically or not. You can assign vlan2 to br0 manually and / or manipulate the switch config with swconfig. See the following thread for an example:
Joined: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Thu Jul 28, 2022 3:51 Post subject:
I presume wireless is disabled by the lack of wlan0 being assigned to br0 in that screenshot. If I am correct, eth0 is the 4-port switch and eth1 is the WAN port, so they are both on br0. Whether or not the WAN port is functional as part of the switch now post-removal of the fullswitch function ("Assign WAN port to switch"), has had mixed reviews. It seems this device is not configured to support vlans (WAN port is usually vlan2), but I do know that when the WAN port was on br0 on my R7000P, I was getting upstream DHCP IP address assignment and I had forgotten to remove WAN port from br0 / re-enable it on Networking tab when I was re-configuring the router without resetting to defaults (I live on the edge, sometimes!). Sorry for the rambling reply, but the only way to find out is to test functionality. I would use the WAN port as my uplink to the upstream router and not as a client port. I think that may be the way it is intended to work, but I could be wrong. _________________ "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
I presume wireless is disabled by the lack of wlan0 being assigned to br0 in that screenshot. If I am correct, eth0 is the 4-port switch and eth1 is the WAN port, so they are both on br0... Sorry for the rambling reply, but the only way to find out is to test functionality. I would use the WAN port as my uplink to the upstream router and not as a client port. I think that may be the way it is intended to work, but I could be wrong.
This was very helpful in identifying what I'm reading, thanks! I think I am resigned to testing the functionality, and if it doesn't work, it may be nothing I can fix...
Per Yngve Berg wrote:
This unit have a Realtec RTL8366SR switch.
swconfig dev switch0 show will show detail about it.
Are you asking me to run that command? Anyhow, I did, but I'm not sure what to do with it. "Port 4" seems to be the WAN port; it's not the number I expected, but otherwise I didn't see any specific information for that. I do see that the "enable_vlan" variable is set to "0".
egc wrote:
WAN port should be "automatically assigned to switch" when the WAN is disabled on Setup page
I put it in quotation marks as it is not really assigned to switch but VLAN2 is bridged to br0/vlan1
at least on most routers.
You can use swconfig to put all ports in the same VLAN1 but this does not appear to work on all routers, the WAN port appears physically separate from the other ports on some routers
Are you recommending I take any action? Or, is this just a note that my setup seems fine and the hardware may be physically separate?
Joined: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Thu Jul 28, 2022 15:02 Post subject:
Per Yngve Berg wrote:
This unit have a Realtec RTL8366SR switch.
swconfig dev switch0 show will show detail about it.
egc wrote:
WAN port should be "automatically assigned to switch" when the WAN is disabled on Setup page
I put it in quotation marks as it is not really assigned to switch but VLAN2 is bridged to br0/vlan1
at least on most routers.
You can use swconfig to put all ports in the same VLAN1 but this does not appear to work on all routers, the WAN port appears physically separate from the other ports on some routers
If I am not mistaken, the RealTek RTL8366SR switches in DD-WRT do not have vlan / 802.1q functionality, so swconfig may be present, but be of no use here. The output of
Code:
swconfig list
and
Code:
swcdonfig dev (interfacename) show
will clarify this. I could always be mistaken as I don't have a list of switches that do and don't have those functionalities and my data retention skills ain't what they used to be. _________________ "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: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Thu Jul 28, 2022 16:16 Post subject:
That actually is a good sign in a sense. PYB will instruct you on how to effect any changes required for testing. But the full output of swconfig dev switch0 list would help him/us determine what to advise _________________ "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
Full report output, as requested. The report's port numbering doesn't seem to match the front panel numbering. Otherwise, I'm not sure what to do with this. Thanks in advance for your help!