The Great Nokiaectomy
As regular readers of this blog will know, I have been patiently waiting for B4RN to hook me up to some 1gbs goodness. This finally happened, and in order to make that happen they lumber you with a big old all-in-one router/wifi AP.
In this case, it’s a Nokia XS-2426G-B. A giant of a thing. While I am sure it is the best device for the job, the fact that B4RN are also all in on Nokia at the other end I am certain has nothing to do with it.
It’s probably fine, but the first thing I did was put it into bridge mode so I could run my Mikrotik Hex router off the back end. I say ‘I put it into bridge mode’, it’s so locked down that I had to phone tech support for them to do it.
Said tech support is in Lancaster and has a person who knows what they’re talking about and is directly messaging engineers so while I slightly resented having to talk to them for this job, they also assigned a /48 ipv6 and made my ipv4 sticky, so it wasn’t exactly a wasted call.
1. Purchases
First, get thee an X-ONU-SFP and then flash the relevant 8311 firmware.
You can buy pre-flashed, with cables (up to 20m!) from the BetterInternet store for not a great deal more than an unflashed will cost you on Ali Express. I strongly recommend this approach unless you’ve got a better source. It’s run by @msh on the Discord so the support is top-notch. While you’re there, get the 3d printed cooler because these bad boys run hot. I mean too hot to touch!
The good news is that the cables supplied will plug straight in to the B4RN socket.
Then you’ll need something to plug the stick into. You can either get a router with a SPF+ cage or, if you’re dropping into an existing network, then an unmanaged switch with the same will work fine, BetterInternet do a cheap one if you want to get the whole package. Just needs a couple of ports. I tried a media converter but had no luck, so just get the cheapest off the Amazons.
2. Config
Follow the 8311 instructions for the ‘A’ as they seem to work without issue, obviously substituting the relevant bits. Password (‘default’) appears to be the same. If you’ve put your Nokia into bridge mode already (I am very impatient…) then you can still get to the web interface by plugging directly into the router. The ‘log’ option will provide the software & hardware versions that aren’t on the label.
Default IP is 192.168.11.1 to get to the webUI, which is quite slow. There is an SSH server which is significantly quicker if that’s your bag.
2.1 B4RN specific config
This is where it gets a bit spicy. I ended up using AI to resolve this so I feel a bit dirty but it got me there.
First, you need to set your WAN interface to tag packets with VLAN 400, and accept the same. The tricky bit was that it turns out that the GEM ‘key ring attribute’ for two of the channels need to be set to ‘3’, and that even if you override it then B4RN will send down a config that breaks it when you restart.
Consequently, you need the following script in your ‘startup hook’ editor (hook only option). This was entirely generated by AI. It seems to work and doesn’t appear to be needlessly complicated but you may be able to refactor it:
#!/bin/sh
/usr/sbin/8311-detect-config.sh
. /tmp/8311-config.sh
OMCI_PIPE=$(PATH=/usr/bin /usr/bin/which omci_pipe.sh)
for GEM in $INTERNET_GEMS; do
gemid=$(echo $GEM | sed s/gem//)
ip -o -d link list dev $GEM | grep -q "enc: 3" || $OMCI_PIPE meads 268 $gemid 10 3
done
The AI also says:
8311-detect-config.sh writes /tmp/8311-config.sh, supplying INTERNET_PMAP, INTERNET_VLAN, UNICAST_VLAN, INTERNET_GEMS. Put the script in the hook-script field on the 8311 config ISP Fixes tab.
Two B4RN adaptations:
- The upstream example also rewrites VLAN priority via
tc— not needed here. INTERNET_GEMSmay only catch one GEM. Hardcodefor gemid in 1051 1052if so.
Cheap check that it’s still applied (no OMCI needed):
ip -o -d link list dev gem1051 | grep -o 'enc: [0-9]'
Full AI summary if you like that sort of thing.
3. Conclusion
Is it any faster? A little bit. Is it far less cumbersome and entirely under my control? Absolutely! Was it worth the money? Not even slightly, but I have got a frisson of excitement from it.
Hopefully this write-up will save someone else the time!