Bridging and roaming on my home wifi
2022-08-27 - OpenWRT with ethernet/wifi bridging and transparent roaming
Tags: OpenWRT WiFi
Introduction
This article is the third in a series about my home network:
If you try to follow this as a guide and something is not clear do not hesitate to shoot me an email asking for clarifications or screenshots!
Bridged wan
From the network/interfaces menu, go to the devices tab:
- select
Add device configuration - for the
Device typefield, selectBridge device - for the
Device namefield, selectbr-wan - for the
Bridge portsfield, selectwan - return to the
interfacestab - click edit the wan interface
- for the
Devicefield, selectbr-wan - save, then do the same for the wan6 interface
- save and apply your changes
Bridged wifi
I restrict this network to the 5GHz frequency range for performance reasons. All my laptops and phones support it and I do not want one to fallback silently to the 2.4GHz range. Therefore I will only configure the radio1 for this wifi.
From the network/wireless menu:
- click the
scanbutton next toradio1- take note of the channel numbers you see here that have a significant signal strength
- in order to chose the best channels, it is important you do this for all the access points you plan to setup: it will avoid reconfiguration in the future that way
- click the
editbutton underradio1 - in the
Device configurationsection at the top:- select the
operating frequencythis access point will use. I keep toACmode and80MHz widthfor the best performance. - 5GHz channels go from 36 to 64, 100 to 144 and 149 to 173 with 20MHz between two channels
- choose wisely non overlapping 80MHz bands for each of your access points, that also do not overlap with the strong signals you scaned with each device at the beginning of this section. For example, I use 36 on my first access point and 56 on the second.
- go to the
advanced settingstab - for the
Country codefield, enter the designation of the country where the access point is located. If you do not do it, your wifi will not work at all!
- select the
- scroll down to the
Interface configurationsection for a second set of tabs- for the
ESSIDfield, enter the name you want your wifi network to have. I useAdyxaxbecause I am an original! - for the
Networkfield, selectwanand maybewan6if your ISP supports it. - go to the
wireless securitytab - for the
Encryptionfield, select the strongest encryption mode supported by all your devices - for the
Keyfield, enter a strong password or passphrase - check
802.1r Fast Transition - for the
NAS IDfield, enter a number which needs unique among the access points on your network - for the
Mobility Domain, enter a four characters hexadecimal string which needs to be the same on all the access points on your network - for the
FT protocolfield, selectFT over DS - check
Generate PMK locally
- for the
- save and apply your changes
- click the
enablebutton underradio1
If all went as expected, you should be able to connect wirelessly with your phone and laptop.