Skip to content

Instantly share code, notes, and snippets.

@ryck
Created January 7, 2021 16:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryck/d3157331368c3555da06ee0eee1f10dd to your computer and use it in GitHub Desktop.
Save ryck/d3157331368c3555da06ee0eee1f10dd to your computer and use it in GitHub Desktop.
USG + Sky
{
"interfaces": {
"ethernet": {
"eth0": {
"address": ["dhcp"],
"dhcp-options": {
"client-option": [
"retry 60;",
"send dhcp-client-identifier "bacons";"
],
"default-route": "update",
"default-route-distance": "1",
"name-server": "no-update"
}
}
}
}
}
@ryck
Copy link
Author

ryck commented Jan 7, 2021

You need to edit (or create) config.gateway.json
Change eth0 for eth1 if you are not using the default WAN port

You also need a modem (the USG is just a router). You can reuse one of openreach white ones, or you can get a proper one, like a Vigor 130

@hfmitchell
Copy link

Awesome thanks for this. Ive had the unifi gear for a while now but with my last two ISPs I just had to enter the PPPoE credentials and it was plain sailing. This is a bit more beyond my skillset but Ill give it a go and let you know how I get on. I have the Vigor 130 in bridge mode so will try to place the json file in the cloudkey now and see if I get online. Thanks again!

@ryck
Copy link
Author

ryck commented Jan 8, 2021

Awesome thanks for this. Ive had the unifi gear for a while now but with my last two ISPs I just had to enter the PPPoE credentials and it was plain sailing. This is a bit more beyond my skillset but Ill give it a go and let you know how I get on. I have the Vigor 130 in bridge mode so will try to place the json file in the cloudkey now and see if I get online. Thanks again!

Let me know if it worked!

@hfmitchell
Copy link

Awesome thanks for this. Ive had the unifi gear for a while now but with my last two ISPs I just had to enter the PPPoE credentials and it was plain sailing. This is a bit more beyond my skillset but Ill give it a go and let you know how I get on. I have the Vigor 130 in bridge mode so will try to place the json file in the cloudkey now and see if I get online. Thanks again!

Let me know if it worked!

I struggled last night mostly due to time constraints but after wiping and resetting the hardware to start fresh I tried to setup the cloud key controller and got stuck on step 2 of 6 when it asks me to login to ubiquiti (unable to do so due to no internet!) managed to skip that part by disabling remote access and setup the new site. Navigated to the IP address of the cloudkey using WinSCP and looked for the directory believe the json file needs to go ( srv/unifi/data/sites/site name/default/. ) but I had no sites folder in my data folder?! I am wondering today whilst at work whether I rebooted the hardware after site setup or not so will try this tonight. Is that the folder you placed you json file in?

@ryck
Copy link
Author

ryck commented Jan 8, 2021

I don't have a cloudkey anymore, but it should be in /usr/lib/unifi/data/sites/default

@hfmitchell
Copy link

Well after a day of pulling my hair out I am no closer to getting this to work! I just cannot for the life of me get an Internet connection. I've factory reset the USG3, cloud Key Gen 2 and unifi switch. I've tried using WinSCP to put the Jason file into the cloud key folder as described with correct permissions but no luck. Tried factory resetting again and setting up the site and provisioning the USG first but still no luck. Tried to ssh and enter the commands manually for option 61 as seen on unifi forums but whatever seems to work for others just won't work for me! I wonder if it might be my Vigor 130 causing the issue but I can see it is in bridge mode when I connect to it and I get the vdsl connection on the home page ok. I am thinking of maybe posting everything I've done on the unifi & sky forums to see if anyone can help out otherwise it looks like no more unifi products sadly 😢

@ryck
Copy link
Author

ryck commented Jan 18, 2021

  1. You should be able to change your config.gateway.json. Without the proper json there your USG won't connect. So edit the file, force provision and wait, give it a couple of hours min.
  2. I don't think is the modem. I have the same one and I never touched it, it worked out of the box.
  3. Don't give up! It's overcomplicated (thanks Sky!) but is definitely possible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment