VLAN issue on TL-WR1043ND and TL-WR703N, help needed

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
ravenzino
DD-WRT Novice


Joined: 29 Mar 2014
Posts: 11

PostPosted: Sat Mar 29, 2014 6:50    Post subject: VLAN issue on TL-WR1043ND and TL-WR703N, help needed Reply with quote
hi guys, I've got an issue when trying to implement 2 vlans across 2 atheros chipset routers: TL-WR1043N(D) and TL-WR703N, both upgraded to the latest version of dd-wrt.
I found that they both support VLAN tags only, so I tried to set them up as follows according to some related articles I found on dd-wrt wiki.


1) General layout:
WR1043ND access the internet through its WAN port.
W703N connect to WR1043ND, both on their LAN ports.


2) Detailed settings:
2.1) On WR1043ND:
2 SSID configured, say StaffWifi and GuestWifi, corresponding to interface ath0 and ath0.1
While there is a bridge br0(192.168.11.1) exist by default, two bridges are added: br1(192.168.12.1) and br2(192.168.13.1). ath0 is assigned to br1, ath0.1 is assigned to br2.
The default VLAN1 which consists of all 4 LAN ports is tagged as VLAN1.1(VID=1) and VLAN1.2(VID=2).VLAN1.1 is assigned to br1, VLAN1.2 is assigned to br2.
Now on WR1043ND, it seems like this:
br0(192.168.11.1): vlan1
br1(192.168.12.1): ath0, vlan1.1 <- SSID StaffWifi
br2(192.168.13.1): ath0.1, vlan1.2 <- SSID GuestWifi


2.2) On WR703N:
2 SSID configured, say StaffWifi2 and GuestWifi2, corresponding to interface ath0 and ath0.1. (yes, I bet you've guessed, I'm trying to do multiple SSID coverage, or whatever you call it, as later on I will change the SSID back to StaffWifi and GuestWifi )
Three bridges configured, br0(192.168.1.1) by default, br1(192.168.2.1), br2(192.168.3.1). ath0 is assigned to br1, ath0.1 is assigned to br2.
There is only one ethernet port on it, corresponding to interface eth1, and I assigned it to switch, so it can be used as a LAN port. It is then tagged as eth1.1(VID=1) and eth1.2(VID=2). eth1.1 is assigned to br1, eth1.2 is assigned to br2.
Now on WR703N, it seems like this:
br0(192.168.1.1): eth1
br1(192.168.2.1): ath0, eth1.1 <-SSID StaffWifi2
br2(192.168.3.1): ath0.1, eth1.2 <-SSID GuestWifi2



2.3) DHCP server is enabled on WR1043ND, but is disabled on WR703N.


2.4) Firewalls on both routers are configured as described in this article http://www.dd-wrt.com/wiki/index.php/Multiple_WLANs, so I guess they shall not bring in any trouble.



Now, I'm expecting that the 2 br1 in the 2 routers are connected as in a VLAN and 2 br2 are also connected as in another VLAN, so when my PC connect to StaffWifi2, PC can get an IP address assigned by DHCP within the subnet 192.168.12.0, and can access internet, and that it shall also work the same way on GuestWifi2.

But unfortunately, it doesn't work. My PC even cannot get an IP address when attempting to attach to StaffWifi2 or GuestWifi2.

Can anyone help me with this?
Did I miss something? Or I was totally wrong at some point?
Or the routers I used can not support doing so? I've tried the way described in this article: http://www.dd-wrt.com/wiki/index.php/Switched_Ports, that using nvram commands to manually setup vlans, but it seems only work with broadcom chipset Sad
Sponsor
farrukh
DD-WRT Novice


Joined: 31 Dec 2013
Posts: 41

PostPosted: Sun Mar 30, 2014 13:00    Post subject: Reply with quote
This thread will help : http://www.dd-wrt.com/phpBB2/viewtopic.php?t=257139
ravenzino
DD-WRT Novice


Joined: 29 Mar 2014
Posts: 11

PostPosted: Mon Mar 31, 2014 4:16    Post subject: Reply with quote
farrukh wrote:
This thread will help : http://www.dd-wrt.com/phpBB2/viewtopic.php?t=257139


Much appreciate as this is exactly what I am looking for!

However, it still doesn't work in my environment. The vlan3 successfully created in swconfig stage but in ifconfig stage, it still failed to be created. Even if I tried the "kick" trick.

After i tried the following two commands manually through telnet, I used ifconfig immediately to list all the interface, and vlan3 was just not there, like I've never entered those commands:

ifconfig vlan3 192.168.3.1 netmask 255.255.255.0
ifconfig vlan3 up

I found "ver. 1.11" was labeled beside the serial number on the back of my WR1043ND, I don't know if that affects.

BTW, in the following script:
swconfig dev eth0 set enable_vlan 3
swconfig dev eth0 vlan 1 set ports "0t 2 3 4t 5"
swconfig dev eth0 vlan 3 set ports "0t 4t"
swconfig dev eth0 set apply
vconfig add eth0 3
ifconfig vlan3 192.168.3.1 netmask 255.255.255.0
ifconfig vlan3 up
brctl addif br1 vlan3

I can understand every line except the vconfig one. Can you explain it a little bit? I tried exactly the same, and after executing the vconfig command, I got a eth0.3 interface, and I don't think that is what we need...


Last edited by ravenzino on Mon Mar 31, 2014 5:03; edited 1 time in total
farrukh
DD-WRT Novice


Joined: 31 Dec 2013
Posts: 41

PostPosted: Tue Apr 01, 2014 8:15    Post subject: Reply with quote
ravenzino wrote:
farrukh wrote:
This thread will help : http://www.dd-wrt.com/phpBB2/viewtopic.php?t=257139


Much appreciate as this is exactly what I am looking for!

However, it still doesn't work in my environment. The vlan3 successfully created in swconfig stage but in ifconfig stage, it still failed to be created. Even if I tried the "kick" trick.

After i tried the following two commands manually through telnet, I used ifconfig immediately to list all the interface, and vlan3 was just not there, like I've never entered those commands:

ifconfig vlan3 192.168.3.1 netmask 255.255.255.0
ifconfig vlan3 up

I found "ver. 1.11" was labeled beside the serial number on the back of my WR1043ND, I don't know if that affects.

BTW, in the following script:
swconfig dev eth0 set enable_vlan 3
swconfig dev eth0 vlan 1 set ports "0t 2 3 4t 5"
swconfig dev eth0 vlan 3 set ports "0t 4t"
swconfig dev eth0 set apply
vconfig add eth0 3
ifconfig vlan3 192.168.3.1 netmask 255.255.255.0
ifconfig vlan3 up
brctl addif br1 vlan3

I can understand every line except the vconfig one. Can you explain it a little bit? I tried exactly the same, and after executing the vconfig command, I got a eth0.3 interface, and I don't think that is what we need...


It should make VLAN3 instead of eth0.3

Did you try " swconfig dev rtl8366rb " instead of " swconfig dev eth0 " ?
ravenzino
DD-WRT Novice


Joined: 29 Mar 2014
Posts: 11

PostPosted: Mon Apr 07, 2014 2:49    Post subject: Reply with quote
farrukh wrote:
ravenzino wrote:
farrukh wrote:
This thread will help : http://www.dd-wrt.com/phpBB2/viewtopic.php?t=257139


Much appreciate as this is exactly what I am looking for!

However, it still doesn't work in my environment. The vlan3 successfully created in swconfig stage but in ifconfig stage, it still failed to be created. Even if I tried the "kick" trick.

After i tried the following two commands manually through telnet, I used ifconfig immediately to list all the interface, and vlan3 was just not there, like I've never entered those commands:

ifconfig vlan3 192.168.3.1 netmask 255.255.255.0
ifconfig vlan3 up

I found "ver. 1.11" was labeled beside the serial number on the back of my WR1043ND, I don't know if that affects.

BTW, in the following script:
swconfig dev eth0 set enable_vlan 3
swconfig dev eth0 vlan 1 set ports "0t 2 3 4t 5"
swconfig dev eth0 vlan 3 set ports "0t 4t"
swconfig dev eth0 set apply
vconfig add eth0 3
ifconfig vlan3 192.168.3.1 netmask 255.255.255.0
ifconfig vlan3 up
brctl addif br1 vlan3

I can understand every line except the vconfig one. Can you explain it a little bit? I tried exactly the same, and after executing the vconfig command, I got a eth0.3 interface, and I don't think that is what we need...


It should make VLAN3 instead of eth0.3

Did you try " swconfig dev rtl8366rb " instead of " swconfig dev eth0 " ?


I made the whole plan work perfectly on two NetGear WNDR3700V3, which is broadcom chipset based devices.
That's why it took me several days before posting this reply. However, it still doesn't work on my TL-WR1043ND or TL-WR703N, no matter which device name I referred when using swconfig: switch0, eth0, or rtl8366rb.

Since I'm done with broadcom routers, I'll continue to deal with atheros devices, and will try to keep this thread updated as long as I have any progress.
farrukh
DD-WRT Novice


Joined: 31 Dec 2013
Posts: 41

PostPosted: Mon Apr 07, 2014 3:47    Post subject: Reply with quote
Can you post screenshots of setup > networking and administrator > commands pages ?.
ravenzino
DD-WRT Novice


Joined: 29 Mar 2014
Posts: 11

PostPosted: Sun Apr 13, 2014 8:42    Post subject: Reply with quote
farrukh wrote:
Can you post screenshots of setup > networking and administrator > commands pages ?.


Things are weird.
I've tried several times, some of my attempts ended up with successful creation of vlan3 after execution of "vconfig add eth0 3" while others ended up with unexpected creation of eth0.3 ......

Later on, I figured out that it may probably because that I enabled VLAN TAGGING to tag one of the existing vlan (vlan1) in some of my attempts, and I guess that behaviour confuses busybox when executing that vconfig command (i.e., thought that I was creating a virtual interface on eth0 rather than a new vlan).

So the vlan creation issue can be considered as closed now, while another issue rises: since the VLAN TAGGING on the GUI can no longer be used, how can I tag both vlan? or, are they self-tagged simply by their vlan names (i.e., vlan1, vlan3)?
Display posts from previous:    Page 1 of 1
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