Configuring a Mikrotik RB5009 for the GeekLab
I have decided it's time to upgrade from an aging DrayTek Vigor 2862 to a Mikrotik RB5009 as the internet router on the GeekLab. This is a complete replacment and there's no direct upgrade path for the config so I need to rework everything from first principles and reconsider some of the original design concepts too.
The fun part will be bringing it into use and retiring the old Vigor without causing any disruption.
- Details
- Written by: Richard
Mounting frustrations with the Draytek Vigor 2862 router reached boiling point after several evenings attempting once again to get IPv6 rolled to the GeekLab and it almost working despite an apparently incorrect address on the WAN interface before it deciding after the monthly reboot to report the correct address on the WAN and stop routing externally. Several hours of googling brought up lots of similar stories and it became apparent that it basically doesn't play nicely with a lot of ISPs IPv6 options. If I want to play with IPv6 then the Vigor has to go.
- Details
- Written by: Richard
When starting any sort of project it helps to have a plan, or at least some idea of how you're going to attempt it. Even better if the plan is written down, or at least some notes made on the back of a handy bit of paper so you don't forget it. Quite often writing it down lets you think properly about what you're going to do and lets you spot things that might not be a good idea before things go badly wrong.
Full disclosure: I did have a little bit of a play first, just to be sure it was going to work. But then I did a full reset and now I'm doing it properly.
- Details
- Written by: Richard
In this stage we prepare the new Mikrotik RB5009 router as the new internet gateway ready for a phased cutover from the existing Draytek Vigor 2862 which will be retained as an internal router until all its connected networks and devices have been migrated.
- Details
- Written by: Richard
Time for a little bit of hardware configuration to connect the Mikrotik router between the my ISP's ONT and the existing Draytek router. A small interruption to internet access is needed for this step of course.
- Details
- Written by: Richard
I ran into a bit of a problems enabling the VLAN filtering so it made sense to add an extra step just to get that working and then contine with extending and moving the exiting network VLANs across to the Mikrotik router.
- Details
- Written by: Richard
With the VLAN support now fully enabled with can now connect the backbone Hall VLAN to the Mikrotik and route outbound traffic directly to the internet rather than via the old Draytek. This requires configuring the backbone VLAN, named Hall, and assigning an interface IP address and enabling RIP routing to properly handle return traffic.
- Details
- Written by: Richard
"It's always the [bleep]ing DNS" is a common complaint when dealing with networks, especially if you're running an internal DNS for your own services and not just doing simple lookups for other internet sites. And of course the GeekLab has a more complex configuration typical of larger organisations with split horizon and multiple internal domains.
Compared to the old Draytek router the Mikrotik service is surprisingly limited by comparison but thankfully I don't (currently ) need to have the advanced features on the router itself and there are workarounds for when I do.
- Details
- Written by: Richard
I prefer to keep my work laptop on a completely separate network from everything else, since that is a machine that is not fully under my control. The VLAN configuration separates ethernet traffic and the firewall rules to block routing between GeekLab and work networks turned out to be much simpler than expected.
- Details
- Written by: Richard
In this stage we move the Guest WiFi users so they also connect via the Mikrotik router. As guests also get access to the public and some additional internal resources this needs an adjustment to the firewall rules too. Ideally I'd like to make this a gentle changeover without any interruption or impact on users.
That didn't go quite as expected...
- Details
- Written by: Richard
The "landline" phones, which are now using a Voice over IP service since British Telecom decided they didn't want to be a phone company any more, use a base station that connects them to the A&A SIP servers over the internet. This now needs to be moved from the old Draytek router and directly connected to the Mikrotik now that everything seems to be going well.
- Details
- Written by: Richard
This is the final part of the router migration with the redirection of external access to go directly to the reverse proxy rather than via the old Draytek.
- Details
- Written by: Richard
Upgrading the firmware on a Mikrotik router is quick and easy, although it should be noted that testing that everything is working as expected afterwards is also highly recommended.