Assign WAN Port to Switch

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2
Author Message




Joined: 01 Jan 1970
Posts:

PostPosted: Sun Jul 15, 2012 21:26    Post subject: Reply with quote
The same problem here.
I can assing wan port to lan switch in GUI
Im using r19342
What sould i do?
Sponsor
Gradius
DD-WRT Novice


Joined: 11 May 2013
Posts: 45
Location: Chile

PostPosted: Mon May 13, 2013 2:14    Post subject: Reply with quote
Sorry for bump, the problem is still present on 21286.

And confirmed...

I too need to do this:
Code:
swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
stopservice lan
startservice lan


In order to works (TP-Link TL-WR1043ND v1.6).
hildegarde321
DD-WRT Novice


Joined: 13 May 2013
Posts: 2

PostPosted: Mon May 13, 2013 8:59    Post subject: Reply with quote
We've set this particular inside my rc_firewall order, and it's functioning following a reboot. Devoid of the stop/start support, it does not function.

I examined this kind of by using a ping into a system on the regular interface, which usually worked well. Unplugging that and relocated this on the WAN interface halted the particular ping. Operating swconfig would not bring about called ping.
matcarfer
DD-WRT Novice


Joined: 27 Jan 2008
Posts: 7

PostPosted: Tue Mar 04, 2014 17:54    Post subject: Reply with quote
Gradius wrote:
Sorry for bump, the problem is still present on 21286.

And confirmed...

I too need to do this:
Code:
swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
stopservice lan
startservice lan


In order to works (TP-Link TL-WR1043ND v1.6).

I had the same problem and thanks to you its resolved. Thanks!
svenbr
DD-WRT Novice


Joined: 15 Sep 2014
Posts: 1

PostPosted: Mon Sep 15, 2014 10:59    Post subject: Reply with quote
Hi guys, thanks for the information so far and sorry for my bump as well. Running 21676 on a wr1043ND.

The trick to assign the wan port to the switch works for me as well, however I then loose my wireless connection to the router providing the internet connection.

my config:

Thomson wifi router connected to the internet
|| wireless (shared network)
TL - WR1043ND
|| wired (private network)
some computers

So I guess I should re-enable something else as well?

After I run commands:
swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
stopservice lan
startservice lan

I can connect to the ethernet (private network) using the WAN port. But when I run a DHCP release/renew under status -> wan it does not get an ip from the Thomson.

When I revert the port assignment by restarting the tp-link the connection to the wifi router re-establishes and I see correct ip config (obtained via DHCP) under status WAN. But of course I can't use the wan port for the private network...

Hopefully someone knows how to fix this? This config worked with an old firmware I was using before (I think even without running the commands but I'm not sure anymore).
Hansel
DD-WRT Novice


Joined: 13 Jul 2006
Posts: 6

PostPosted: Thu Sep 24, 2015 9:51    Post subject: Reply with quote
Just had the same issue. WAN didn't want to act as part of LAN/switch while option was set in 'Basic Setup' page.
Router: TL-WR1043ND v1.9
FW: v24-sp2 (02/11/13) std, rev. 20675

Copied the commands

Code:
swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
stopservice lan
startservice lan

into a startup script and rebooted.

It now works, WAN acts as LAN.

I now run this router behind my ISP router with OpenVPN server enabled. I can reach it with the correct settings in ISP router.
gwaitsi
DD-WRT User


Joined: 11 Jan 2007
Posts: 79

PostPosted: Fri Oct 28, 2016 19:07    Post subject: Reply with quote
Thanks so much.....worked for me too.

I have TP-Link TL-WR1043ND v1.1

Firmware: DD-WRT v3.0-r29495 std (04/21/16)

don't know why, this still hasn't been included in the build

*** P.S. it's a real problem, because without the above code, you loose complete access to the device and have to do a factory reset. I don't know how many times i tried to get this configured before finding this thread.
daviddrf
DD-WRT Novice


Joined: 08 Dec 2013
Posts: 3

PostPosted: Wed Sep 13, 2017 2:51    Post subject: Reply with quote
gwaitsi wrote:
Thanks so much.....worked for me too.

I have TP-Link TL-WR1043ND v1.1

Firmware: DD-WRT v3.0-r29495 std (04/21/16)

don't know why, this still hasn't been included in the build

*** P.S. it's a real problem, because without the above code, you loose complete access to the device and have to do a factory reset. I don't know how many times i tried to get this configured before finding this thread.


+1 Wink .
tioraul
DD-WRT Novice


Joined: 21 Sep 2018
Posts: 1

PostPosted: Fri Sep 21, 2018 21:34    Post subject: works for me tooo Reply with quote
Code:
swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
stopservice lan
startservice lan


but I use this code:

swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
swconfig dev rtl8366rb set apply



into a startup script and rebooted.

It now works, WAN acts as LAN.
dmagliano
DD-WRT Novice


Joined: 18 May 2020
Posts: 2

PostPosted: Wed Oct 28, 2020 14:37    Post subject: Re: works for me tooo Reply with quote
tioraul wrote:
Code:
swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
stopservice lan
startservice lan


but I use this code:

swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
swconfig dev rtl8366rb set apply



into a startup script and rebooted.

It now works, WAN acts as LAN.


I´m using here
Firmware: DD-WRT v3.0-r40559 std (08/06/19)
The @ptruman code

Code:
PostPosted: Thu May 10, 2012 5:53    Post subject:
Ok, on 18777, this works if I do the following :

swconfig dev rtl8366rb vlan 1 set ports '0 1 2 3 4 5t'
stopservice lan
startservice lan


An its working fine.
Amazing for a 10 years or older device kkk
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Wed Oct 28, 2020 14:56    Post subject: Reply with quote
40599 is an old and crappy build.

To get the best out of DDWRT and the forum, read and follow the forum guidelines:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

_________________
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
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   This topic is locked: you cannot edit posts or make replies.    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