Assign WAN to LAN? WNDR3700v1

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
Silentknyght
DD-WRT User


Joined: 16 Aug 2010
Posts: 62

PostPosted: Wed Jul 27, 2022 18:41    Post subject: Assign WAN to LAN? WNDR3700v1 Reply with quote
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.

Cheers.
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Wed Jul 27, 2022 19:03    Post subject: Reply with quote
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:

Netgear R7800. Place all wired Ethernet port to vlan2 (WAN)

I would recommend using vlan1, not vlan2 as the target vlan to bridge all ports to, but whichever works best for you.

_________________
"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
Silentknyght
DD-WRT User


Joined: 16 Aug 2010
Posts: 62

PostPosted: Wed Jul 27, 2022 22:41    Post subject: Reply with quote
kernel-panic69 wrote:
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:

Netgear R7800. Place all wired Ethernet port to vlan2 (WAN)

I would recommend using vlan1, not vlan2 as the target vlan to bridge all ports to, but whichever works best for you.


Yeah, I read through that, but it was borderline unintelligible. Did I mention I've been gone for years and years?

This is what I see:
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Thu Jul 28, 2022 3:51    Post subject: Reply with quote
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
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Thu Jul 28, 2022 6:28    Post subject: Reply with quote
This unit have a Realtec RTL8366SR switch.

swconfig dev switch0 show will show detail about it.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12881
Location: Netherlands

PostPosted: Thu Jul 28, 2022 7:38    Post subject: Reply with quote
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

_________________
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
Silentknyght
DD-WRT User


Joined: 16 Aug 2010
Posts: 62

PostPosted: Thu Jul 28, 2022 13:38    Post subject: Reply with quote
kernel-panic69 wrote:
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?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Thu Jul 28, 2022 15:02    Post subject: Reply with quote
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
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Thu Jul 28, 2022 16:04    Post subject: Reply with quote
You should be able to set up port based vlan.

Post the full output.
Silentknyght
DD-WRT User


Joined: 16 Aug 2010
Posts: 62

PostPosted: Thu Jul 28, 2022 16:05    Post subject: Reply with quote
swconfig list outputs "Found: switch0 - rtl8366s".

swconfig dev switch0 outputs, among other things, global attributes specifying "enable_vlan: 0"


Aside from testing & hoping for miracles, I'm not seeing good signs...
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Thu Jul 28, 2022 16:16    Post subject: Reply with quote
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 Smile
_________________
"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
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Thu Jul 28, 2022 17:00    Post subject: Reply with quote
Silentknyght
DD-WRT User


Joined: 16 Aug 2010
Posts: 62

PostPosted: Thu Jul 28, 2022 19:09    Post subject: Reply with quote
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!

Code:
Global attributes:
   enable_learning: 1
   enable_vlan: 0
   enable_vlan4k: 0
   blinkrate: 2
   max_length: 1
   green_mode: 0
Port 0:
   mib: Port 0 MIB counters
IfInOctets                          : 52110451
EtherStatsOctets                    : 52110451
EtherStatsUnderSizePkts             : 0
EtherFragments                      : 0
EtherStatsPkts64Octets              : 17688
EtherStatsPkts65to127Octets         : 116099
EtherStatsPkts128to255Octets        : 29167
EtherStatsPkts256to511Octets        : 19472
EtherStatsPkts512to1023Octets       : 21065
EtherStatsPkts1024to1518Octets      : 11681
EtherOversizeStats                  : 0
EtherStatsJabbers                   : 0
IfInUcastPkts                       : 205484
EtherStatsMulticastPkts             : 8975
EtherStatsBroadcastPkts             : 713
EtherStatsDropEvents                : 0
Dot3StatsFCSErrors                  : 0
Dot3StatsSymbolErrors               : 0
Dot3InPauseFrames                   : 0
Dot3ControlInUnknownOpcodes         : 0
IfOutOctets                         : 135916601
Dot3StatsSingleCollisionFrames      : 0
Dot3StatMultipleCollisionFrames     : 0
Dot3sDeferredTransmissions          : 11778
Dot3StatsLateCollisions             : 0
EtherStatsCollisions                : 0
Dot3StatsExcessiveCollisions        : 0
Dot3OutPauseFrames                  : 2
Dot1dBasePortDelayExceededDiscards  : 0
Dot1dTpPortInDiscards               : 1
IfOutUcastPkts                      : 203379
IfOutMulticastPkts                  : 287693
IfOutBroadcastPkts                  : 44978

   led: 2
   green_port: 0
   pvid: 0
   link: port:0 link:up speed:100baseT full-duplex txflow rxflow
Port 1:
   mib: Port 1 MIB counters
IfInOctets                          : 10799164
EtherStatsOctets                    : 10801916
EtherStatsUnderSizePkts             : 0
EtherFragments                      : 0
EtherStatsPkts64Octets              : 3026
EtherStatsPkts65to127Octets         : 8237
EtherStatsPkts128to255Octets        : 5352
EtherStatsPkts256to511Octets        : 5812
EtherStatsPkts512to1023Octets       : 3134
EtherStatsPkts1024to1518Octets      : 3239
EtherOversizeStats                  : 0
EtherStatsJabbers                   : 0
IfInUcastPkts                       : 26461
EtherStatsMulticastPkts             : 2312
EtherStatsBroadcastPkts             : 27
EtherStatsDropEvents                : 43
Dot3StatsFCSErrors                  : 0
Dot3StatsSymbolErrors               : 0
Dot3InPauseFrames                   : 43
Dot3ControlInUnknownOpcodes         : 0
IfOutOctets                         : 20134256
Dot3StatsSingleCollisionFrames      : 0
Dot3StatMultipleCollisionFrames     : 0
Dot3sDeferredTransmissions          : 3008
Dot3StatsLateCollisions             : 0
EtherStatsCollisions                : 0
Dot3StatsExcessiveCollisions        : 0
Dot3OutPauseFrames                  : 0
Dot1dBasePortDelayExceededDiscards  : 0
Dot1dTpPortInDiscards               : 0
IfOutUcastPkts                      : 25892
IfOutMulticastPkts                  : 41210
IfOutBroadcastPkts                  : 5930

   led: 9
   green_port: 0
   pvid: 0
   link: port:1 link:down
Port 2:
   mib: Port 2 MIB counters
IfInOctets                          : 44250285
EtherStatsOctets                    : 44252717
EtherStatsUnderSizePkts             : 0
EtherFragments                      : 0
EtherStatsPkts64Octets              : 123119
EtherStatsPkts65to127Octets         : 177771
EtherStatsPkts128to255Octets        : 72908
EtherStatsPkts256to511Octets        : 5698
EtherStatsPkts512to1023Octets       : 2806
EtherStatsPkts1024to1518Octets      : 3630
EtherOversizeStats                  : 0
EtherStatsJabbers                   : 0
IfInUcastPkts                       : 382149
EtherStatsMulticastPkts             : 2634
EtherStatsBroadcastPkts             : 1149
EtherStatsDropEvents                : 38
Dot3StatsFCSErrors                  : 0
Dot3StatsSymbolErrors               : 0
Dot3InPauseFrames                   : 38
Dot3ControlInUnknownOpcodes         : 0
IfOutOctets                         : 1049282934
Dot3StatsSingleCollisionFrames      : 0
Dot3StatMultipleCollisionFrames     : 0
Dot3sDeferredTransmissions          : 158376
Dot3StatsLateCollisions             : 0
EtherStatsCollisions                : 0
Dot3StatsExcessiveCollisions        : 0
Dot3OutPauseFrames                  : 0
Dot1dBasePortDelayExceededDiscards  : 0
Dot1dTpPortInDiscards               : 298
IfOutUcastPkts                      : 805475
IfOutMulticastPkts                  : 409570
IfOutBroadcastPkts                  : 69504

   led: 6
   green_port: 0
   pvid: 0
   link: port:2 link:up speed:1000baseT full-duplex txflow rxflow
Port 3:
   mib: Port 3 MIB counters
IfInOctets                          : 1104941917
EtherStatsOctets                    : 1105345181
EtherStatsUnderSizePkts             : 0
EtherFragments                      : 0
EtherStatsPkts64Octets              : 131435
EtherStatsPkts65to127Octets         : 225952
EtherStatsPkts128to255Octets        : 220560
EtherStatsPkts256to511Octets        : 175731
EtherStatsPkts512to1023Octets       : 35155
EtherStatsPkts1024to1518Octets      : 695711
EtherOversizeStats                  : 0
EtherStatsJabbers                   : 0
IfInUcastPkts                       : 1011185
EtherStatsMulticastPkts             : 404647
EtherStatsBroadcastPkts             : 68713
EtherStatsDropEvents                : 6301
Dot3StatsFCSErrors                  : 0
Dot3StatsSymbolErrors               : 0
Dot3InPauseFrames                   : 6301
Dot3ControlInUnknownOpcodes         : 0
IfOutOctets                         : 102810663
Dot3StatsSingleCollisionFrames      : 0
Dot3StatMultipleCollisionFrames     : 0
Dot3sDeferredTransmissions          : 139889
Dot3StatsLateCollisions             : 0
EtherStatsCollisions                : 0
Dot3StatsExcessiveCollisions        : 0
Dot3OutPauseFrames                  : 34
Dot1dBasePortDelayExceededDiscards  : 0
Dot1dTpPortInDiscards               : 3414
IfOutUcastPkts                      : 588460
IfOutMulticastPkts                  : 13840
IfOutBroadcastPkts                  : 1941

   led: 5
   green_port: 0
   pvid: 0
   link: port:3 link:up speed:1000baseT full-duplex txflow rxflow
Port 4:
   mib: Port 4 MIB counters
IfInOctets                          : 0
EtherStatsOctets                    : 0
EtherStatsUnderSizePkts             : 0
EtherFragments                      : 0
EtherStatsPkts64Octets              : 0
EtherStatsPkts65to127Octets         : 0
EtherStatsPkts128to255Octets        : 0
EtherStatsPkts256to511Octets        : 0
EtherStatsPkts512to1023Octets       : 0
EtherStatsPkts1024to1518Octets      : 0
EtherOversizeStats                  : 0
EtherStatsJabbers                   : 0
IfInUcastPkts                       : 0
EtherStatsMulticastPkts             : 0
EtherStatsBroadcastPkts             : 0
EtherStatsDropEvents                : 0
Dot3StatsFCSErrors                  : 0
Dot3StatsSymbolErrors               : 0
Dot3InPauseFrames                   : 0
Dot3ControlInUnknownOpcodes         : 0
IfOutOctets                         : 0
Dot3StatsSingleCollisionFrames      : 0
Dot3StatMultipleCollisionFrames     : 0
Dot3sDeferredTransmissions          : 0
Dot3StatsLateCollisions             : 0
EtherStatsCollisions                : 0
Dot3StatsExcessiveCollisions        : 0
Dot3OutPauseFrames                  : 0
Dot1dBasePortDelayExceededDiscards  : 0
Dot1dTpPortInDiscards               : 0
IfOutUcastPkts                      : 0
IfOutMulticastPkts                  : 0
IfOutBroadcastPkts                  : 0

   led: ???
   green_port: 0
   pvid: 0
   link: port:4 link:down
Port 5:
   mib: Port 5 MIB counters
IfInOctets                          : 5124372
EtherStatsOctets                    : 5124372
EtherStatsUnderSizePkts             : 0
EtherFragments                      : 0
EtherStatsPkts64Octets              : 2825
EtherStatsPkts65to127Octets         : 1216
EtherStatsPkts128to255Octets        : 1
EtherStatsPkts256to511Octets        : 622
EtherStatsPkts512to1023Octets       : 48
EtherStatsPkts1024to1518Octets      : 3004
EtherOversizeStats                  : 0
EtherStatsJabbers                   : 0
IfInUcastPkts                       : 7664
EtherStatsMulticastPkts             : 0
EtherStatsBroadcastPkts             : 52
EtherStatsDropEvents                : 0
Dot3StatsFCSErrors                  : 0
Dot3StatsSymbolErrors               : 0
Dot3InPauseFrames                   : 0
Dot3ControlInUnknownOpcodes         : 0
IfOutOctets                         : 112068316
Dot3StatsSingleCollisionFrames      : 0
Dot3StatMultipleCollisionFrames     : 0
Dot3sDeferredTransmissions          : 255
Dot3StatsLateCollisions             : 0
EtherStatsCollisions                : 0
Dot3StatsExcessiveCollisions        : 0
Dot3OutPauseFrames                  : 0
Dot1dBasePortDelayExceededDiscards  : 0
Dot1dTpPortInDiscards               : 0
IfOutUcastPkts                      : 6685
IfOutMulticastPkts                  : 412186
IfOutBroadcastPkts                  : 70602

   led: ???
   green_port: ???
   pvid: 0
   link: port:5 link:up speed:1000baseT full-duplex txflow rxflow auto
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Thu Jul 28, 2022 20:22    Post subject: Reply with quote
All ports are in vlan0 (pvid0)

Here is the doc for the switch:

http://realtek.info/pdf/rtl8366_8369_datasheet_1-1.pdf
Silentknyght
DD-WRT User


Joined: 16 Aug 2010
Posts: 62

PostPosted: Fri Jul 29, 2022 13:13    Post subject: Reply with quote
Per Yngve Berg wrote:
All ports are in vlan0 (pvid0)

Here is the doc for the switch:

http://realtek.info/pdf/rtl8366_8369_datasheet_1-1.pdf


Are you recommending I take some action? Or, are you saying that the current configuration *should* work fine?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum