Unifi USG and Sky FTTP Setup
Context
- Sky Fibre to the Premises (FTTP) provides the WAN IPv4 address using DHCP.
- However it requires the modem to provide the DHCP Client Identifier (Option 61) in the format
user@skydsl|pass
(the actual values foruser
andpass
are not important and can be provided exactly as shown). - The Unifi Security Gateway (USG) does not provide a method to configure this option via the UI, therefore we must use the steps below to configure the DHCP client options for the WAN interface.
Steps
- On your local machine create
config.gateway.json
with the DHCP Client Identifier set e.g.:cat > ~/config.gateway.json <<EOF { "interfaces": { "ethernet": { "eth0": { "address": ["dhcp"], "description": "WAN", "dhcp-options": { "client-option": [ "retry 60;", "send dhcp-client-identifier "user@skydsl|pass";" ], "default-route": "update", "default-route-distance": "1", "name-server": "no-update" } } } } } EOF
- Upload
config.gateway.json
to your CloudKey e.g.scp ~/config.gateway.json peter@gallagher.ie@192.168.1.2:/srv/unifi/data/sites/default/
- Provision the USG
- Log into the Unifi console
- Click Devices > USG-3P > Settings > Manage > Provision
- Click Confirm
- Your USG should shortly be provisioned and will connect via your FTTP ONT. If you do not get an IP address assigned immediately, you may need to restart the USG e.g.
- Click Devices > USG-3P > Settings > Manage > Restart
- Click Confirm
- (Optional) Verify the settings on your USG
ssh unifi@192.168.1.1 mca-ctrl -t dump-cfg | grep -A20 interfaces
Alternative approach…
Alternatively you can connect to the USG via SSH and submit the following commands, but this is not guaranteed to persist after the device has been reprovisioned. So it is better to use the method above.
- Connect to your USG via SSH e.g.:
ssh unifi@192.168.1.1
- Configure the DHCP client options (DHCP Option 61) e.g.:
# Enter configuration mode configure # Enable DHCP for eth0 set interfaces ethernet eth0 address dhcp # Configure DHCP Option 61 set interfaces ethernet eth0 dhcp-options client-option "send dhcp-client-identifier "user@skydsl|pass";" # Commit and save the settings commit save # Exit configuration mode exit # Reboot the USG reboot