VAP / VLAN bridge not working

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
therealmrfox
DD-WRT Novice


Joined: 21 Jan 2019
Posts: 7

PostPosted: Mon Jan 21, 2019 18:58    Post subject: VAP / VLAN bridge not working Reply with quote
Hi all,

asus rt-ac66 running v3.0-r38326M giga.

I am trying to set up the asus as an access point to 2 physically separate networks. I have a router with multiple networks configured - a 10.1.10.X for me, and a 192.168.255.X for guests. I want the asus to be a pure AP - so no DNS, DHCP, NAT, or other nonsense running on it.

Here's what I got:
- Ports 1 and 2 are assigned to vlan 1
- ports 3 and 4 assigned to vlan3
- 10.1.10.X cable plugged into port 1
- 192.168.255.X cable plugged into port 4
- created a new virtual interface, wl0.1, and bridge, br1.
- wl0.1 and vlan3 are assigned to bridge br1. All else is on br0.

When I plug in a cable to port 2 I get assigned a 10.XXX address as well as an IPv6 with the correct prefix. Same for port 3: 192.XXX address, and an IPv6 with a different prefix. So far so good.

However, clients cannot connect to wl0.1. They fail to receive an IP (v4 or v6) from the router. I can see the clients in the router's DHCPv4 lease table, so the DHCP requests seem to get through; the responses back to the client, not so much. Clients are able to connect to wl0 and get ipv4 and v6 addresses.

I'm at my wit's end with this - and I am pulling my hair out because I had the same setup working before with an older (ancient) dd-wrt version, but blew it away in an update Rolling Eyes

If anyone can tell me what I'm missing in my (slightly unconventional) setup, I'll be forever grateful!

Thanks,
- Dave.

Edit: Title; Removed paragraph about IPv6 connectivity not working. I figured that part out - it was my router. Simple reboot fixed it 🤷



vlans.png
 Description:
 Filesize:  30.65 KB
 Viewed:  3623 Time(s)

vlans.png



bridging.png
 Description:
 Filesize:  48.07 KB
 Viewed:  3623 Time(s)

bridging.png




Last edited by therealmrfox on Sat Jan 26, 2019 1:36; edited 1 time in total
Sponsor
therealmrfox
DD-WRT Novice


Joined: 21 Jan 2019
Posts: 7

PostPosted: Mon Jan 21, 2019 20:03    Post subject: Re: Access point with multiple networks setup hell Reply with quote
Some more info:

# nvram show | grep port.*vlans | sort
size: 35525 bytes (30011 left)
port0vlans=2 18 19 21
port1vlans=1 18 19 21
port2vlans=1 18 19 21
port3vlans=3 18 19 21
port4vlans=3 18 19 21
port5vlans=1 2 3 16

# nvram show | grep vlan.*ports | sort
size: 35525 bytes (30011 left)
vlan1ports=1 2 8*
vlan2ports=0 8u
vlan3ports=3 4 8*

# nvram show | grep vlan.*hwname | sort
size: 35525 bytes (30011 left)
vlan1hwname=et0
vlan2hwname=et0
vlan3hwname=et0


#ifconfig
br0 Link encap:Ethernet HWaddr xxx
inet addr:10.1.10.9 Bcast:10.1.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14901 errors:0 dropped:370 overruns:0 frame:0
TX packets:3761 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2095414 (1.9 MiB) TX bytes:3238088 (3.0 MiB)

br1 Link encap:Ethernet HWaddr xxx
inet addr:192.168.255.2 Bcast:192.168.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1245 errors:0 dropped:1175 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:98523 (96.2 KiB) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:41858 errors:0 dropped:0 overruns:0 frame:0
TX packets:30845 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41628573 (39.6 MiB) TX bytes:6721778 (6.4 MiB)
Interrupt:4 Base address:0x2000

eth1 Link encap:Ethernet HWaddr xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11100 errors:0 dropped:0 overruns:0 frame:7448
TX packets:11711 errors:3 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3622496 (3.4 MiB) TX bytes:5397185 (5.1 MiB)
Interrupt:3 Base address:0x8000

eth2 Link encap:Ethernet HWaddr xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23015 errors:0 dropped:0 overruns:0 frame:454
TX packets:32819 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3307069 (3.1 MiB) TX bytes:39457105 (37.6 MiB)
Interrupt:5 Base address:0x8000

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:216 errors:0 dropped:0 overruns:0 frame:0
TX packets:216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16200 (15.8 KiB) TX bytes:16200 (15.8 KiB)

vlan1 Link encap:Ethernet HWaddr xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40635 errors:0 dropped:15 overruns:0 frame:0
TX packets:30793 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40610739 (38.7 MiB) TX bytes:6589622 (6.2 MiB)

vlan3 Link encap:Ethernet HWaddr xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1223 errors:0 dropped:17 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:96958 (94.6 KiB) TX bytes:8776 (8.5 KiB)

wl0.1 Link encap:Ethernet HWaddr xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57 errors:0 dropped:0 overruns:0 frame:7448
TX packets:78 errors:1 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9968 (9.7 KiB) TX bytes:11884 (11.6 KiB)
therealmrfox
DD-WRT Novice


Joined: 21 Jan 2019
Posts: 7

PostPosted: Mon Jan 21, 2019 21:42    Post subject: Well, fuck me with a chainsaw. Reply with quote
Downgraded to the previous ancient version - v3.0-r30826 giga (11/01/16) - and this works like a charm. So it's definitely something that's broken with newer builds.
BR07H3R
DD-WRT User


Joined: 24 Dec 2017
Posts: 135

PostPosted: Wed Jan 23, 2019 19:20    Post subject: Reply with quote
I suggest reading about dnsmasq as a dhcp server.

You'll need to setup the routes for ipv6 and v4. i personally use dnsmasq + Dhcp6c to configure. I can tell you this works on newer builds...

The older builds might set up some or all of the routing for you?
therealmrfox
DD-WRT Novice


Joined: 21 Jan 2019
Posts: 7

PostPosted: Sat Jan 26, 2019 1:29    Post subject: Reply with quote
BR07H3R wrote:
I suggest reading about dnsmasq as a dhcp server.


Thanks BR07H3R. However I don't want to actually get the access point involved with routing or DHCP (I have my Mikrotik router running DHCP and doing routing/NAT). All I need the AP to do is bridge traffic between the wireless interface and a LAN port assigned to a VLAN.

This does work on build v3.0-r30826 as it should. It does not on v3.0-r38326M.

Something in how bridging (or the combination of bridging + VLANs + VAP + asus hardware + phase of the moon...) is handled between those builds must have changed Sad
therealmrfox
DD-WRT Novice


Joined: 21 Jan 2019
Posts: 7

PostPosted: Sat Jan 26, 2019 1:55    Post subject: Reply with quote
Perhaps relevant:

Quote:
br1 Link encap:Ethernet HWaddr xxx
...
RX packets:1245 errors:0 dropped:1175 overruns:0 frame:0


Why is the bugger dropping most packets? br0 isn't (and neither should it).

So unless something is blatantly wrong with my setup that I'm unable to see, something with how br1 behaves seems off?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12882
Location: Netherlands

PostPosted: Sat Jan 26, 2019 9:59    Post subject: Reply with quote
VAP is broken on newer builds.

There are two workarounds
Problems and workarounds:
1) When VAP is not working at boot; workaround startup command:
sleep 10; stopservice nas; stopservice wlconf; startservice wlconf; startservice nas;
2) Aternative way to get VAP working: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=317181

NB always reboot after changing anything

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


Joined: 24 Dec 2017
Posts: 135

PostPosted: Sat Jan 26, 2019 14:37    Post subject: Reply with quote
Not sure if it will help but here is my networking tab.



EDIT
It's a repeater bridge
therealmrfox
DD-WRT Novice


Joined: 21 Jan 2019
Posts: 7

PostPosted: Sun Jan 27, 2019 0:38    Post subject: Re: VAP / VLAN bridge not working Reply with quote
jxm wrote:

You cannot use subnet 192.168.255.x. You cannot use 255 in any of the octets, because 255 is used for broadcasts.


Ugh. Oops. Actually the subnet is a /16 so 255.X for the host portion should be OK, but I certainly didn't do myself a favor by assigning a /24 to the bridge Crying or Very sad IIRC I tried this w/o assigning any IP to the bridge at all and that didn't work either, though.
therealmrfox
DD-WRT Novice


Joined: 21 Jan 2019
Posts: 7

PostPosted: Sun Jan 27, 2019 0:44    Post subject: Reply with quote
BR07H3R wrote:
Not sure if it will help but here is my networking tab.


Thanks BR07H3R!

I used brctl rather than the UI to assign the VAP and VLAN to the bridge (see my screenshot - I left the UI blank). I thought the result would be the same, but I'm starting to wonder if that assumption was mistaken.
BR07H3R
DD-WRT User


Joined: 24 Dec 2017
Posts: 135

PostPosted: Sun Jan 27, 2019 3:32    Post subject: Reply with quote
Np. I think I was literally half asleep nodding when I wrote my initial reply. LMAO
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum