Last active
September 23, 2024 13:47
-
-
Save jkauppinen/0b4d0f0af237e5a84e7f92c51ac5ec3b to your computer and use it in GitHub Desktop.
Configuration of Ubiquity EdgeRouter Lite (Router), Ubiquiti UniFi Switch 8 60W (Switch), and Ubiquiti UniFi UAP-AC-LITE Dual-band AP (Wireless AP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration of Ubiquity EdgeRouter Lite (Router), Ubiquiti UniFi Switch 8 60W (Switch), and Ubiquiti UniFi UAP-AC-LITE Dual-band AP (Wireless AP) | |
# OS: Ubuntu 22.04 | |
## Switch configuration | |
Connect computer to eth0 | |
Connect internet to eth1 | |
reset router | |
## Connection profiles | |
### First profile is to connect to router in local network | |
Create connection profile "Wired (Local network)" | |
Set computer manual IP | |
192.168.1.x as IP, for example 192.168.1.15 | |
255.255.255.0 as netmask | |
192.168.1.1 gateway | |
witch wired connection off and on computer before connecting to router. This ensures new settings are used. | |
### Second connection profile is used to connect to internet with DHCP | |
Create connection profile "Wired (Internet)" | |
Use DHCP and default settings. Use this to connect to internet with wired connection. Don't use this for configuring router. | |
# Router | |
Connect to router dashboard on 198.168.1.1 | |
Use "Basic wizard" to enable DHCP, and internet on eth1. LAN on eth1/eth2. | |
Set IP address as 192.168.1.1, netmask 255.255.255.0 (default settings) | |
Select "Apply" and "Reboot". Router reboot is required to reload new settings. | |
# Cables (After router has rebooted) | |
Connect eth0 to internet | |
Connect switch to eth1 | |
Connect computer to switch or router eth2 to configure router by accessing 192.168.1.1 | |
## Start unifi controller via docker. Instructions https://github.com/jacobalberty/unifi-docker | |
mkdir -p unifi/data | |
mkdir -p unifi/log | |
sudo docker run --rm --init --net host -p 8080:8080 -p 8443:8443 -p 3478:3478/udp -e TZ='Europe/Helsinki' -v ~/unifi:/unifi --name unifi jacobalberty/unifi | |
Open https://localhost:8443 and select "Devices". Unifi devices should start adopting automatically and get IP address assigned. | |
Adter adoption is complete, switch to "Wired (Internet" profile). | |
WLAN settings can be configured now. | |
## Enable inform host (If automatic device adoption fails) | |
Settings -> System -> Application Configuration | |
Enable inform host -> set computer wired IP as host for inform,for in this example 192.168.1.15. | |
ssh -oHostKeyAlgorithms=+ssh-dss [email protected] (here device IP is 192.168.1.20, but it can be verified from unifi dashboard) | |
set-inform http://192.168.1.15:8080/inform (use IP address of the computer) | |
## Upgrade firmware (offline) | |
Download latest firmware from https://www.ui.com/download/ | |
### Copy firmware file to | |
scp US.bcm5334x_5.76.7+13442.211117.0720.bin [email protected]:/tmp/fwupdate.bin | |
### Run local upgrade | |
syswrapper.sh upgrade2 & | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment