[SOLVED] WLAN with VLAN bridge issues: MAC / HWaddr

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


Joined: 01 Aug 2021
Posts: 8

PostPosted: Wed Nov 24, 2021 3:04    Post subject: [SOLVED] WLAN with VLAN bridge issues: MAC / HWaddr Reply with quote
Is there currently an issue related bridging VLANS and WLAN interfaces (eth1, eth2)? I couldn't find anything in the bug tracker (build: 47097).

Attempted to move eth1 and eth2 to a new br1. Assigned those in the ui; confirmed ifconfig and swconfig. Configured it no different than I would if it were on br0. Double and triple checked iptables and DNSmasq config.

However, I can't seem to get it to work. WLAN clients on br1 have connectivity. VLAN clients on br1 obtain an IP, but the DHCP server address returns x.x.x.0 instead of x.x.x.1... gateway and DNS servers are assigned correctly. No client connectivity, not even L2?

The alternative obviously, is to use VAPs, if it is indeed an issue. I could do some debugging, but it's taking longer than expected, and I need sleep.

Strangely, eth1 and eth2 sometimes disappear in the UI bridging config (under assigned interfaces), then reappear, sometimes 1 will disappear and not reappear in the UI again until reboot. Not sure what's up with that. Probably a UI-only issue.

Hmmm. It could be related the br0/eth0 and br1/vlan4 MACs. Can't remember if those need to be unique. Embarassed

edit: I messed that up. Of course br0/br1 need unique HW addresses, since they are separate L2 interfaces. I was thinking of whether eth1/eth2 needed uniques vs. br1/vlan4, and they do as well, from recollection.


Last edited by testimap on Wed Nov 24, 2021 6:57; edited 4 times in total
Sponsor
testimap
DD-WRT Novice


Joined: 01 Aug 2021
Posts: 8

PostPosted: Wed Nov 24, 2021 5:31    Post subject: Reply with quote
I haven't tried shifting eth1 and eth2 back to br1 again, but I can confirm that bridged VLANs work.

The issue seems to be that the UI does not automatically assign a unique MAC (HW) address to new bridges.

In fact, the HWaddr field is not present until after the new bridge is created, and the page must be subsequently refreshed in order for the field to become editable.

The bridged VLAN which was created must also be manually updated with this new MAC address.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Wed Nov 24, 2021 6:00    Post subject: Reply with quote
You have to do things in a specific order for it to work.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
testimap
DD-WRT Novice


Joined: 01 Aug 2021
Posts: 8

PostPosted: Wed Nov 24, 2021 6:47    Post subject: Reply with quote
Well, I can now confirm that was the issue - eth1, eth2 and vlan4 currently bridged on br1 and working as intended.

Newly created bridges should always be assigned a new HWaddr. Since it's a UI issue, and not of immediate 'concern' - although, maybe 'priority' would be the more correct term. Wink

Maybe drop a note in the create group to indicate that all bridges should be assigned unique MACs manually, and corresponding bridged physical (not wireless) interfaces updated accordingly, after refreshing the interface. It's quite easy to miss that since the UI is not immediately updated. Even if it were, I doubt anyone manually checks the MACs, or even knows how L2 works. Embarassed


Last edited by testimap on Wed Nov 24, 2021 6:53; edited 1 time in total
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Wed Nov 24, 2021 6:52    Post subject: Reply with quote
If you're still using 47097, that could be a factor.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
testimap
DD-WRT Novice


Joined: 01 Aug 2021
Posts: 8

PostPosted: Wed Nov 24, 2021 6:55    Post subject: Reply with quote
Although, on the positive side, I'm glad to to report that nothing actually broke while I was messing around with the switching, bridging and VLAN UIs. Twisted Evil

I'd also like to test that theory, or just rummage through the SVNs, but I need to research each build before attempting to flash it. I'm... currently busy as hell, not least with win10 printer issue which took 2 days to fix. Rolling Eyes

This is my favorite commit so far: https://svn.dd-wrt.com/changeset/47544


Last edited by testimap on Wed Nov 24, 2021 8:08; edited 1 time in total
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Wed Nov 24, 2021 7:28    Post subject: Reply with quote
Moved this thread to a more appropriate forum.
The OP seems to have an AC66u

When posting please state not only buildnumber but also router model.

See forum guidelines about how and where to post and many helpful tips:
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
testimap
DD-WRT Novice


Joined: 01 Aug 2021
Posts: 8

PostPosted: Wed Nov 24, 2021 8:11    Post subject: Reply with quote
Sorry, I didn't think that information would be useful in diagnosing a UI issue - Asus RT-AC66U B1 HW Ver. B2:

I went back through the changelogs to 47097 and couldn't find it. All I could find was this: https://svn.dd-wrt.com/changeset/47219

You could test it by simply adding a new bridge, and refreshing the page, and check whether it was assigned a new HWaddr. Doesn't seem like a BCM issue either.

If you can confirm the HWaddr is not unique on another device, then it should probably be classified as a bug and catalogued.

Although, you'd need a design a function to update its linked interfaces when the HWaddr is changed, and another to update an interface's assigned HWaddr when its bridged/unbridged radio is toggled. Caveat; wireless interfaces, maybe just VLANs.
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