Project

General

Profile

How to configure ubiquiti network equipment » History » Version 7

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

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