802.1Q AP 2 wifi vlan tagging help

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
frollo
DD-WRT Novice


Joined: 02 Jun 2011
Posts: 14

PostPosted: Tue Feb 17, 2015 21:25    Post subject: 802.1Q AP 2 wifi vlan tagging help Reply with quote
I'm hoping someone can help, my googlefoo has failed me and no ammount of dd-wrt wiki's have been able to assist me in getting two wireless vap's up properly tagged. Here is my setup

1 ubiquiti 8p router
1 ubiquiti edgemax 48P switch
1 R7000 Nighthawk DD-WRT v24-sp2 (02/04/15) std - build 26138
vlan 2 - normal data traffic (LAN)
vlan 10 - guest wifi vlan

dhcp servers setup and configured for both lans
tagging enabled on the switch port connected to the dd-wrt's WAN port to provide trunk access to vlan 2 and 10

Goal -
I want the dd-wrt to pass through wifi access on two differen't SSID's to the proper vlan on the switch. All of my current attempts funnel it into vlan 2 and vlan10 never see's any traffic

I have my dd-wrt configured to not obtain an ip - i have statically set it to be on the network, and checked the box to have the WAN port on the switch.

Under Vlan vlan 2 is checked for WAN and tag is selected for it > bridge assigned to lan. Ports 1-4 are checked for vlan 10 > no bridge assignment

under networking i have tried everything to my wits end to no avail. It is currently set at w0.1 tagged to vlan 10

br1 is set to 192.168.2.1 (router / switch is configured for 7.0.20.1/24) with DHCP enabled down at the bottom for br1 with vlan10 and wl0.1 in the bridge group.

currently i can't even get a dhcp address for the SSID with those settings following the stock guide.

Any suggestions?



guides used
http://www.dd-wrt.com/wiki/index.php/Switched_Ports
http://www.dd-wrt.com/wiki/index.php/VLAN_Support
http://www.dd-wrt.com/wiki/index.php/Tutorials
and several others
Sponsor
madman
DD-WRT User


Joined: 07 Jun 2006
Posts: 246
Location: Germany

PostPosted: Tue Feb 17, 2015 22:42    Post subject: Reply with quote
did you use

http://www.dd-wrt.com/wiki/index.php/Multiple_WLANs

?
frollo
DD-WRT Novice


Joined: 02 Jun 2011
Posts: 14

PostPosted: Wed Feb 18, 2015 18:39    Post subject: Reply with quote
I did use that one and it unfortunately didn't resolve the issue. That said i was on the brainslayer build that i referenced above and it was having issues staying up and connected to wifi so i changed to a different kong build that has been much more stable. The issue really isn't getting two WLANS up it is that it isn't getting tagged properly when moving outside the router aka to the ubiquiti switch.
madman
DD-WRT User


Joined: 07 Jun 2006
Posts: 246
Location: Germany

PostPosted: Thu Feb 19, 2015 21:58    Post subject: Reply with quote
I am going to configure the same setup like you.

If it works for me, I will write you a short summary.
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sun Feb 22, 2015 21:28    Post subject: Reply with quote
http://www.vspecialist.co.uk/creating-vlans-in-dd-wrt-part-1/
madman
DD-WRT User


Joined: 07 Jun 2006
Posts: 246
Location: Germany

PostPosted: Tue Feb 24, 2015 12:46    Post subject: Reply with quote
I got it working, but it was not so easy Smile

Now that I know how it works, I can configure it in a couple of minutes.

I did not use the WebUI when it comes to VLAN tagging.

My Setup:
Asus RT-N66U with dd-wrt

Wifi Standard - not tagged VLAN1
Wifi Guest - tagged to VLAN4

Netgear GS108Ev2 Switch

The most important part is to check, which LAN Port belongs to which Port in the CLI. I have a E4200 Linksys, and there everything is mixed up. On my Asus, the LAN Port 3 is also Port 3 in the CLI. But you really need to check this first (try google).

First run these commands in CLI.

1.
Which Port belongs to which VLAN.

Example:
root@wlan:~# nvram show | grep vlan.*ports
vlan2ports=0 8
vlan1ports=1 2 3 4 8*

2.
You need to configure every VLAN you are using with "et0"

root@wlan:~# nvram show | grep vlan.*hwname
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0

3.
I think these are the default VLANs of each Port. I did not change anything here, so just leave it like it is.

root@wlan:~# nvram show | grep port.*vlans
port5vlans=1 2 16
port3vlans=1
port1vlans=1
port4vlans=1
port2vlans=1
port0vlans=2


Now it is time to configure the Router:

1. create VLAN4

nvram set vlan4hwname="et0"
nvram commit

2. assign VLAN4 to a Port, tagged. Put always the number 8 at the end. In this case LAN Port 4.

nvram set vlan4ports="4t 8"

Now it should look like this, if you ran the commands mentioned above.

vlan4ports=4t 8
vlan2ports=0 8
vlan1ports=1 2 3 4 8*

vlan1hwname=et0
vlan2hwname=et0
vlan4hwname=et0

3.
nvram commit
reboot


Now it is time to configure the Wifi, create a new bridge using WebUI.


1. Wifi
Create a default Wifi, using 2,4Ghz and or 5 Ghz. Also create a virtual Wifi on each radio, using the WebUI. Standard, also don't forget encryption

2. create Bridge br1 (Setup / Networking)
Assign an IP Address to br1

3. Assign vlan4 and wl0.1 (2,4ghz) and wl1.1 (5ghz) to the Bridge br1

4. Reboot.

Now you are done with the basic setup. DHCP is not configured, also you need a default gateway / firewall to get out.

But to make it simple. Assign the LAN 4 Port to your switch VLAN1 untagged and VLAN4 tagged.

Use another Port on the same Switch, use VLAN4 untagged.

Try to connect using Wifi and assign a static IP. Connect your Laptop to switch on the VLAN4 Port untagged.

Now you should be able to ping the dd-wrt Router and your Phone (connected by Wifi).

If you get to this point, let me know and we figure out, how we can proceed.

Smile

Madman
frollo
DD-WRT Novice


Joined: 02 Jun 2011
Posts: 14

PostPosted: Wed Feb 25, 2015 20:12    Post subject: Reply with quote
i greatly appreciate the help. Here is what i have per your instructions w/ my data, which still isn't working. Regular wifi (vlan2) works fine and picks up dhcp without issue, vlan10 no go.

Edgemax router > Edgeswitch #vlan 2(data / reg wifi) include untagged & vlan 10(guestwifi) include tagged >Netgear Nighthawk R7000 DD-WRT v24-sp2 (08/15/14) kongac - build 24865M (pure passthrough for wifi only no dhcp)


Code:
root@DD-WRT:~# nvram show | grep vlan.*ports
size: 34879 bytes (30657 left)
vlan2ports=0 5u
vlan10ports=1t 5
vlan1ports=1 2 3 4 5*

root@DD-WRT:~# nvram show | grep vlan.*hwname
size: 34879 bytes (30657 left)
vlan2hwname=et0
vlan1hwname=et0
vlan10hwname=et0

root@DD-WRT:~# nvram show | grep port.*vlans
size: 34879 bytes (30657 left)
port5vlans=2 10 16
port3vlans=10 18 19 21
port1vlans=10 18 19 21
port4vlans=10 18 19 21
port2vlans=10 18 19 21
port0vlans=2 16 18 19 21


iptables -I INPUT -i vlan+ -j ACCEPT
iptables -I FORWARD -i vlan+ -o br0 -m state --state NEW -j ACCEPT
iptables -I FORWARD -i vlan+ -o vlan+ -m state --state NEW -j ACCEPT
iptables -I FORWARD -i vlan+ -o ppp0 -m state --state NEW -j ACCEPT



br1 > IP 7.0.10.1/24 (guestwifi)

assignment > br1 wl0.1 * eth1

current bridging table

br0 > vlan1 vlan2 eth2
br1 > eth1 wl0.1

wan port assignment vlan2

dhcp server - disabled because i'm assuming it will be able to pickup dhcp from the main router at 7.0.10.1
mbze430
DD-WRT User


Joined: 14 May 2012
Posts: 239

PostPosted: Wed Feb 25, 2015 20:51    Post subject: Reply with quote
I am going through the similar issues here. Sorry not to hijack the thread.. but this might help everyone in the end.


I have a Netgear WNAP210. With 2 SSID. One for LAN+Inet access and one for Guest Inet Only access. I have a TL-SG2424 switch. and a WZR-D1800H on DD-WRT.

right now.. the way I want to is not working like how it is working now.

1) SSID for LAN+Inet.. only Inet works, it's isolated to the LAN - this is all untagged

2) SSID for Guest. nothing works. DD-WRT can't send a DHCP IP to any client on the Guest SSID. - tagged as VLAN 5

The Netgear WNAP210 is on the TL-SG2424 port 7, and I have port 7 tagged at VLAN5 and the rest as "notmember" and port 23 is where the DD-WRT is at, and that is set to untagged for VLAN5

And finally, the DD-WRT does have Multi WLAN setup and it works just fine.


Last edited by mbze430 on Wed Feb 25, 2015 21:00; edited 2 times in total
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Wed Feb 25, 2015 20:54    Post subject: Reply with quote
2) Have you created an additional dhcp server for the second ip segment?
frollo
DD-WRT Novice


Joined: 02 Jun 2011
Posts: 14

PostPosted: Wed Feb 25, 2015 21:14    Post subject: Reply with quote
2) i can create one but i already have dhcp set on the main router (not dd-wrt) to provide it. When i do enable it on the dd-wrt router it still doesn't work. When it gets created and assigned to br1 it still won't pull an IP.
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Wed Feb 25, 2015 21:30    Post subject: Reply with quote
vlan10ports=1t 5
vlan1ports=1 2 3 4 5*


You should tag both vlans on port 1.
madman
DD-WRT User


Joined: 07 Jun 2006
Posts: 246
Location: Germany

PostPosted: Wed Feb 25, 2015 21:39    Post subject: Reply with quote
vlan10 is missing on br1 !!

Example of my setup:
br1 yes wl0.1 wl1.1 vlan4
frollo
DD-WRT Novice


Joined: 02 Jun 2011
Posts: 14

PostPosted: Thu Feb 26, 2015 16:25    Post subject: Reply with quote
note to everyone don't tag vlan2 0 or it will brick the router.
frollo
DD-WRT Novice


Joined: 02 Jun 2011
Posts: 14

PostPosted: Thu Feb 26, 2015 16:30    Post subject: Reply with quote
what is significant about port 1 as i am using the wan 0 port (assigned to switch via setting). when i double tagged it bricked my router
killmasta93
DD-WRT User


Joined: 13 Feb 2015
Posts: 112

PostPosted: Thu Feb 26, 2015 20:41    Post subject: Reply with quote
frollo did you try to 30/30/30?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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