bridged VAP on R6400v2

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


Joined: 14 Jan 2016
Posts: 4

PostPosted: Sun Feb 07, 2021 1:16    Post subject: bridged VAP on R6400v2 Reply with quote
Bridged VAP has been broken since 2018 and I have just confirmed that it is still broken in the latest build. There are a number of workarounds for this, but I find that none of them work consistently.

I was thinking to flash an old version on my R6400v2, from a time when bridged VAP was working. However, the install guide says not to use any builds prior to 36995, when bridged VAP was already broken. The oldest build for the R6400v2 is 36104, but I don't think that is old enough for bridged VAP to work, plus it seems rather dangerous to ignore the install guide.

Is anyone aware of an older build that can be flashed on a R6400v2 that has bridged VAP working? Thanks.
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Sun Feb 07, 2021 1:52    Post subject: Reply with quote
Effective workarounds for bridged VAPs not working at boot and see egc's post.
dlkrulce
DD-WRT Novice


Joined: 14 Jan 2016
Posts: 4

PostPosted: Sun Feb 07, 2021 2:35    Post subject: Reply with quote
As I mentioned, I have tried all of the workarounds and find that none of them consistently solves the problem. Sometimes they work, mostly they don't. I even tried the one that uses a different version of wlconf, not listed in that link.

I also played around with this for a while, manually adding and removing the VAP to/from a bridge using brctl. The moment I add it to a bridge, the VAP stops authenticating, even if the bridge has nothing else bound to it. Interestingly, if a client is already authenticated to the VAP while it is unbridged, it remains associated and functions fine once it is bridged. I am at a loss to explain why bridging a VAP would cause this behavior.

The only reasonable solution is to move back to a build where bridged VAP works. I am afraid there is no such build for the R6400v2.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Sun Feb 07, 2021 12:27    Post subject: Reply with quote
What build are you using?

Have you reset to defaults with:
nvram erase && reboot after upgrading and put settings in manually?

The workaround from Redhawk did never fail (until now?)
4)This one is from @Redhawk (guaranteed to work Wink ):
Code:
sleep 20; stopservice nas; wlconf eth1 down; wlconf eth2 down; wlconf eth1 up; wlconf eth2 up; startservice nas


To get the best out of DDWRT and the forum read the forum guidelines with helpful pointers:
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
dlkrulce
DD-WRT Novice


Joined: 14 Jan 2016
Posts: 4

PostPosted: Sun Feb 07, 2021 17:34    Post subject: Reply with quote
I have tried builds 36995, 41328, 43192, and 45677. I reset to factory default and erased nvram before and after each upgrade. I then manually re-entered the configuration.

Build 45677 most consistently functioned using the workarounds. But once I added additional configuration, 3 vlans and 2 bridges, it stopped working. There seems to be a correlation between configuration complexity and this problem. Perhaps with more vlans and bridges, the sequence of device creation/configuration upon boot changes and something goes amiss. I will play around with it a bit more before giving up.
dlkrulce
DD-WRT Novice


Joined: 14 Jan 2016
Posts: 4

PostPosted: Tue Feb 09, 2021 0:03    Post subject: Reply with quote
I got this working. Here is what I did and what I discovered in the process.

I started with a clean, nvram erased, 41328 build and slowly implemented my configuration, taking a snapshot of nvram after each step so that I could diff the changes. Here were the planned steps:

1. Add three 2.4 GHz VAPs and three 5 GHz VAPs with the VAP workaround in the startup script.
2. Add three VLANs.
3. Add two bridges.
4. Assign the bridges.

After I finished step (3), VAP stopped working. I diffed nvram between (2) and (3) and discovered that the act of adding the two bridges wrote a bunch of WLAN configuration data to nvram. I looked over the changes and saw two particular items that I remember reading in one of the threads concerning this issue: values were set for eth1_hwaddr and eth2_hwaddr. I checked with ifconfig that they were correct, but deleted them and rebooted. After that VAP started working again.

Certain changes to the configuration cause these values to be rewritten, so they need to be constantly deleted. It appears that these parameters are used before the startup script is run, so I put the following in the shutdown script:

Code:
nvram unset eth1_hwaddr
nvram unset eth2_hwaddr
nvram commit


Since routers are not always shut down cleanly, I also put the commands in the startup script so that VAP would start working after two reboots:

Code:
nvram unset eth1_hwaddr
nvram unset eth2_hwaddr
nvram commit
sleep 20
stopservice nas; wlconf eth1 down; wlconf eth2 down; wlconf eth1 up; wlconf eth2 up; startservice nas


Over the years, I have relied on the DD-WRT forums for lots of excellent information. Hopefully what I have done here is useful to someone else.
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Tue Feb 09, 2021 1:22    Post subject: Reply with quote
Another workaround.

https://freshtomato.org/

It's ridiculous that something so basic as VAPs (my goodness, this has been part of dd-wrt forever) is not working correctly, and for this long. I realize things happen, things break, but geewiz.

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
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