OpenWrt Forum Archive

Topic: A nice guy needs help... WR941 V3.6 - switch LAN plus WAN

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I am so sorry to bring this topic from dd wrt area but I need the help from someone that can interact in the telnet "program" node.

I have been using the WR841 with very nice results in DD WRT, and I am also a old user of this Linux-based firmware.


I am now with an issue where I need to extend the wi-fi range in my house and I chose some (2) WR941 V3.6 because of it's 3 antennas and cheap price on the re-sale market.(15€)

However I faced the problem that I cannot have switch habitability between the Lan port's, plus WAN port assigned to Lan , and the main 4G router:

4G router .........................WR941
                                          Lan clients (5) - not working to WWW environment
                                          WI-FI - OK all super ok.


The WR841 is working fine, only when I placed the WR941 I cannot have any more the LAN side able to go to the internet. they only work "locally", even with the 941 almost as default, only making WAN Disable, Assignet to Lan, default WIFI (works always fine), router as ->router  and nothing more changed.

After some tests and re-tests I just cannot find the correct command scrip to make the "patch" of the lan plus wan able to solve this problem:

swconfig dev <port> set enable_vlan 1
swconfig dev <port> set apply


Router Name DD-WRT
Router Model TP-Link TL-WR941ND v2/v3

LAN MAC         74:EA:3A:A2:8B:AD
WAN MAC        74:EA:3A:A2:8B:AD
Wireless MAC  74:EA:3A:A2:8B:AE
WAN IPv4         Disabled
LAN IP              192.168.1.1



root@DD-WRT:~# ifconfig -a

ath0      Link encap:Ethernet  HWaddr 74:EA:3A:A2:8B:AE
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2830 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2731 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:309427 (302.1 KiB)  TX bytes:1504206 (1.4 MiB)

br0       Link encap:Ethernet  HWaddr 74:EA:3A:A2:8B:AD
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5029 errors:0 dropped:160 overruns:0 frame:0
          TX packets:5850 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:409464 (399.8 KiB)  TX bytes:5089373 (4.8 MiB)

br0:0     Link encap:Ethernet  HWaddr 74:EA:3A:A2:8B:AD
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 74:EA:3A:A2:8B:AE
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:815 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:75853 (74.0 KiB)
          Interrupt:255

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING MULTICAST  MTU:65536  Metric:1
          RX packets:175 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10420 (10.1 KiB)  TX bytes:10420 (10.1 KiB)

vlan0     Link encap:Ethernet  HWaddr 74:EA:3A:A2:8B:AD
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:500 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:37672 (36.7 KiB)

vlan1     Link encap:Ethernet  HWaddr 74:EA:3A:A2:8B:AF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:315 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:31621 (30.8 KiB)


all the tries that I made return with the following message:

Port setup by default:
WAN Port Assignment vlan1

root@DD-WRT:~# swconfig dev vlan1 set enable_vlan 1
Failed to connect to the switch. Use the "list" command to see which switches are available.


swconfig list does not provide any reply in the terminal:

root@DD-WRT:~# swconfig list
root@DD-WRT:~#


Would someone be so kind to help me and make a script patch or command start-up list that can solve this issue?


I am really sorry but I made all the testes and tries that a noob can do with the knowledge that I have...


will this part be relevant for this issue?


wiki.openwrt.org/toh/tp-link/tl-wr941nd
.................................
Specific configuration
VLAN Config

This device does not have a programmable switch and require special configuration (only v3.x hardware). Each port is presented with a different interface (lan1, lan2, lan3, lan4, wan).
VLAN in Chaos Calmer+

First, set the main port (eth0) with an MTU of at least 1504 in /etc/config/network :
config interface 'eth'
    option ifname 'eth0'
    option mtu '1504'
    option proto 'none'

Then just create different interfaces for each port.
..............................................................................


Otherwise... well.. 30€ on the top of the desk smile

thank you for reading until here this message!

Hi,

I really would like to have some inouts about my issue... if it is a dead end or if I may have an alternative, even with other firmware...

Thanks

openwrt and dd-wrt are completely different under the hood setup wise.  While its true most people here have used dd-wrt (myself included) there is a reason we chose openwrt.  Not that one is better, but its just a matter of taste i ran just great on dd-wrt, but openwrt has a more linux like environment that i prefer.

as far as your issue goes, it does seem to either be an issue with either your vlans, or maybe firewall.  Make sure your firewall is allowing forwarding, or better yet, disable it completely until you have the connectivity you want, then decide if you need to restrict things at all.

I tried, but I could not understand what are you trying to do and how is it failing... I could not figure out how many devices are involved, how is each one configured, and how are they connected to each other.

You're making this too complicated.  Just move the "wan" hardware interface out of the WAN network and into the existing LAN bridge.  In other words the lan section of /etc/config/network should have an option ifname 'lan1 lan2 lan3 lan4 wan'.  The wan section has no interfaces attached, since you are not routing to a wan, just bridging around LAN devices.

This should also be possible from the Network--Interface edit-- Physical Settings pages of LuCI.

Hi.

Thanks for all for the inputs.

i will try to OpenWRT and see how I can handle it.

BR

The discussion might have continued from here.