Project

General

Profile

How to configure ubiquiti network equipment » History » Version 5

Nico Schottelius, 05/31/2020 08:18 PM

1 1 Nico Schottelius
h1. How to configure ubiquiti network equipment
2
3
h2. General steps
4
5
* Reset the device
6
* ssh into it (username: ubnt, password: ubnt)
7
* Setup a password
8
9
10
11
h2. Upgrading most ubiquiti access points
12
13
14
* Dowload the latest firmware from https://www.ui.com/download
15
* scp it to the device as /tmp/fwupdate.bin
16
* ssh into the device, run @syswrapper.sh upgrade2 &@ (seems to need to be backgrounded)
17 2 Nico Schottelius
18
19
h2. Enabling ssh access without a password
20
21
* Add your public RSA (ed25519 don't work) to /etc/dropbear/authorized_keys
22
23
h2. Configuring Wifi
24
25
* Download the "unifi network" app
26
* Go to account->standalone devices : wait for the aps to show up
27 3 Nico Schottelius
28
29 4 Nico Schottelius
h2. Installing OpenWRT on AP Lite/LR/Pro
30 3 Nico Schottelius
31 1 Nico Schottelius
Stock ubiquiti does not work in IPv6 only environments. So replacing the stock firmware with OpenWRT makes them usable.
32 4 Nico Schottelius
33
* Update ("downgrade") to firmware version 3.7.58
34
** https://dl.ui.com/unifi/firmware/U7PG2/3.7.58.6385/BZ.qca956x.v3.7.58.6385.170508.0957.bin
35
* Get the latest openwrt image
36
** Check https://openwrt.org/toh/ubiquiti/unifiac
37 5 Nico Schottelius
* Use mtd to replace it 
38
* Use mtd to erase kernel1
39
* Set the boot loader to 0
40
** write a 0 o the mtd partition "bs"
41
42
Sample session (don't copy and paste)
43
44
<pre>
45
[20:14] manager:~% wget http://downloads.openwrt.org/releases/19.07.3/targets/ath79/generic/openwrt-19.07.3-ath79-generic-ubnt_unifiac-lite-squashfs-sysupgrade.bin
46
[20:14] manager:~% scp openwrt-19.07.3-ath79-generic-ubnt_unifiac-lite-squashfs-sysupgrade.bin ubnt@[2a0a:e5c0:13:0:f29f:c2ff:fef3:cbe4]:
47
[20:14] manager:~% ssh ubnt@2a0a:e5c0:13::f29f:c2ff:fef3:cbe4    
48
49
BZ.v3.7.58# mtd write openwrt-19.07.3-ath79-generic-ubnt_unifiac-lite-squashfs-sysupgrade.bin kernel0
50
51
BZ.v3.7.58# mtd write openwrt-19.07.3-ath79-generic-ubnt_unifiac-lite-squashfs-sysupgrade.bin kernel0
52
Unlocking kernel0 ...
53
54
Writing from openwrt-19.07.3-ath79-generic-ubnt_unifiac-lite-squashfs-sysupgrade.bin to kernel0 ...     
55
BZ.v3.7.58# mtd erase kernel1
56
Unlocking kernel1 ...
57
Erasing kernel1 ...
58
BZ.v3.7.58# cat /proc/mtd 
59
dev:    size   erasesize  name
60
mtd0: 00060000 00010000 "u-boot"
61
mtd1: 00010000 00010000 "u-boot-env"
62
mtd2: 00790000 00010000 "kernel0"
63
mtd3: 00790000 00010000 "kernel1"
64
mtd4: 00020000 00010000 "bs"
65
mtd5: 00040000 00010000 "cfg"
66
mtd6: 00010000 00010000 "EEPROM"
67
BZ.v3.7.58# dd if=/dev/zero bs=1 count=1 of=/dev/mtd4
68
1+0 records in
69
1+0 records out
70
BZ.v3.7.58# 
71
BZ.v3.7.58# reboot 
72
</pre>