techbits.io

Migrate UniFi Cloudkey & USG to UDM-Pro

In this post, I'll show you how I migrated from the UniFi controller & USG to the UniFi Dream Machine Pro + 10G SFP for faster than 1Gig internet

Migrate UniFi Cloudkey & USG to UDM-Pro

Background

I have been using the UniFi Security Gateway (USG) for over 5 years, and I’ve never had any issues with it that I didn’t cause myself (APs… slightly more troublesome, but that’s another story), and actually, it still works fine now! However, it’s starting to get a bit long in the tooth.

The biggest limitation of the USG is its limited processing power and memory. The dual-core 500MHz MIPS64 chip and 512MB of DDR2 RAM mean that although the USG can still do a lot, the performance has to scale down to keep up.

For example, the USG has a 1Gbit/s WAN interface, and could quite happily work with internet at this speed, but if you wanted to enable the IPS/IDS (intrusion prevention/detection system) options, that rate drops to about 80Mbit/s.

This could still be more than enough for your needs, and actually, could be desirable given the low spec means a very low power consumption (around 7 watts). As an entry-level upgrade from an ISP-provided router, picking up an old USG from eBay is a great option (and something I’d highly recommend).

In comparison to the USG’s meagre specs, the UniFi Dream Machine Pro (UDM-Pro) sports a quad-core 1.7GHz ARM processor and 4GB DDR4 memory. Because it has 10Gbit ports, it could support WAN speeds at this rate, and with IDS/IPS enabled can still support 3.5Gbit/s of bandwidth.

Where the USG is a nice, compact square unit, measuring less than 15cm x 15cm x 3cm, the UDM-Pro is a rack-mounted 1U chassis, so if you don’t already have a cupboard with a rack frame, you’ll need to think about where you can install it!

Initial UDM-Pro Setup

Assuming you’ve racked the unit (and had the usual amount of cage nuts pinging off somewhere), then connect the WAN port on the UDM-Pro to a network port on your existing router/switch. Connect the power and wait for it to boot up.

Using the mobile app for the initial setup (the little touchscreen prompts you to do this) is useful as it’ll tie it to your UI account. You can try telling it to update versions from the app too, but this hasn’t ever worked for me with any device. It would go through the motions but ultimately fail.

In the end, I had to grab a laptop and connect directly. Connecting to a port on the UDM-Pro, I browsed to the default IP (192.168.1.1) and logged in with my UI account details. Here, it showed that updates were available for various components, including the onboard controller. It was running version 6.0.43 from the factory (over 2 years old…) which probably explains why it refused to work with the significantly newer iOS app. I eventually managed to get UDM-Pro version to v1.12.30.

Backup the Controller

After ensuring the new onboard network controller and old controller container were running the same version (7.2.94) I browsed to my old controller URL, went into Settings > System, scrolled down to Backup, and downloaded the last 60 days of backups.

Stop the Controller

Once I had the backup, I switched off the old controller (in my case, stopped the Home Assistant addon), and made sure I set it to not startup automatically.

With the old controller off, software versions matching and backup in hand, I was ready to proceed.

Switch off the USG

I powered down the USG, moved the WAN connection from the USG to the UDM-Pro, and connected one of the UDM-Pro switch ports to my other switch.

Setup Default Network

Before it’ll allow you to restore the backup from the old controller, it will make you set up the first/default network. The Host Address and Netmask should match the old setup.

Because I had the UDM-Pro connected to my main network while running software updates, trying to set the new network might result in the error:

Overlapping LAN IP Address: 192.168.1.1/24 cannot be set since it is overlapping with reserved network “Primary (WAN1)” range 192.168.1.0 - 192.168.1.255

Once you’ve connected the the real WAN connection, it should disassociate the previous range as the WAN network, but you could also reboot the UDM-Pro to speed things up.

Once you’ve set the network address, it’s time to restore the backup.

Restore the Backup

Because the UDM-Pro hosts multiple components, there are different kinds of backups/restores. If we had a whole ‘cloud config backup’, we could restore settings for the entire unit/server.

Trying to restore the .unf backup we took to the cloud config section will result in an error:

Instead, go into Network -> Settings -> System and under Backup, choose ‘Import’:

Once it has finished, that’s pretty much it. I was expecting to have to fix one or two things manually (like telling the access points that the controller URL had changed), but no. Everything just worked, so I guess the restoration process must automatically run set-inform commands on associated APs.

To celebrate, I updated the firmware on the access points, and for the first time ever, I didn’t have to manually repoint them to the controller once the firmware had been installed. I could get used to this.

What’s Next?

Once I had the previous configuration running, I shut the UDM-Pro down, and connected a MikroTik S+RJ10 SFP+ module. This is a 10gigabit module with an RJ-45 connector (BASE-T). Some SFPs are hot-swappable, but it’s generally wise to power down and install, if you can.

I powered back on, moved the WAN ethernet connection from the 1gigabit port to the newly installed SFP. Once the network was back up, I ran a speed test through from the UDM-Pro and was now seeing over 1000mbit/s instead of the previous limit of around 920mbit/s from the 1gig port.


That’s it! Once the new unit was up-to-date, the process was painless. I was certainly expecting to have to fix some things manually, but perhaps the move to the newer OS & in-built controller means some of the previous annoyances are a thing of the past.

If you have any experience of moving from other older-gen UniFi devices to different current models, please leave a comment, because I’d love to hear how it went for you. You can also find me over at @techbits@fosstodon.org.

Share this article:

Archived comments

migrated from Ghost
A
Anonymous

Have you also any experience migrating UCK controller managing remote sites in addition to local site?
I have a case were I need to migrate 5 sites managed by one central UCK and wonder what the best options would be based on previous experience

Regards

G400

T
techbits.io

Ubiquiti appears to be moving towards cloud-based management for all sites, and certainly, it doesn't seem possible to manage multiple sites from one UDM Pro (https://community.ui.com/questions/UDM-PRO-Multi-Site-Support/3a242f55-751a-4ef8-af5e-8f672ece5cfb & https://community.ui.com/questions/UniFi-Dream-Machine-Pro-Vs-UniFi-Security-Gateway-Pro-Multiple-Site-Management/ec8ccd30-9a7a-4686-9a2d-4412b05f0a6c).

Companies/organisations that manage multiple sites from one Cloud Key (or server) seem to lose out if they move to UDM/Pro offerings, and it seems to force them to use unifi.ui.com to manage devices/sites instead.

In your example, I think you would have to backup the site that you're moving to the UDM Pro (or other device incompatible with Cloud Key), but the other sites would need to remain on that Cloud Key.

Are you trying to split the sites out to individual UDM-P's? Or did you just want to keep management of them in the same place?

A
Anonymous

I expected to be able to replace UCK Gen2 + USG-Pro-4 with one central UDM-Pro and manage all sites as I'm able to do with UCK Gen2.

Do I understand you correctly when you suggest to?
1. move one site (primary site) to UDM Pro
2. remove primary site from UCK after successful migration
3. keep UCK on line and use it to manage remote sites

T
techbits.io

I believe that is the way Ubiquiti would recommend now. I'm not 100%, and would recommend creating a post at https://community.ui.com/ to make sure, but that does seem to be the supported method. It seems odd that with the greater processing power on the UDM-Pro, it can't be used as a controller for other sites.

With a site on the UDM, and the remaining sites on the cloudkey, I believe that you'd see all sites (if enabled for cloud management) on http://unifi.ui.com/.

A
Anonymous

Thank you for your instructions. Your guide is exactly what I am looking for. I have the exact same basics of my installation, as well as the migration from USG-Pro4 + UCK Gen2 to UDM Pro incl. installation of a SFP+ 10G connection to my switch.

One more question. Do I understand correctly that you had your switch incl. any APs connected to the UDM-Pro during the whole installation? Or do you recommend disconnecting them during the installation and only reconnecting them after the backup has been imported? Will the APs then be connected automatically?

Regards

T
techbits.io

Thanks for your comment - I hope the information is useful!

I joined the UDM Pro to the existing network so it had internet access while I did the initial boot & software update.

Once I had a backup from the old controller, I shut it and the USG down, then yes, I had the APs and switch connected while restoring that backup onto the UDM Pro.

As I had to directly connect a laptop to UDM-P for the software update, I doubt it would've made much difference if I'd restored a backup with no other devices being connected (it might arguably be more sensible to do it this way, but I don't really remember my thought process at this point!)

Comments

Related posts

How to run iperf3 on an Asustor NAS
#nas #asustor #networking

How to run iperf3 on an Asustor NAS

Whether you're writing a review of a NAS, are trying to troubleshoot your NAS read/write speeds, or are just plain showing off, it seems that…

Allow ICMP Pings through the UDM-Pro's Firewall
#networking #cuckoo-broadband #ubiquiti

Allow ICMP Pings through the UDM-Pro's Firewall

Set an Internet Local firewall rule on your UDM-Pro (or similar UniFi device) to be able to ping your IP from outside of your network.

Set Static IPs on the UDM-Pro
#networking #ubiquiti #cuckoo-broadband

Set Static IPs on the UDM-Pro

This guide will show you how to add one or multiple static IPs to your Ubiquiti UDM-Pro (or other compatible UniFi product).