如何設定 Unifi AP
前言
最近入手了新的 Unifi AP,趁這一次設定就順手記錄起來吧。
主要內容
加入 Unifi 控制器
登入 Unifi AP
1ssh -l ubnt ${UNIFI_AP_ADDRESS} # password: ubnt
ℹ️
預設 IP 位置
在 Unifi AP 沒有從 DHCP 取得 IP 之前,它的預設 IP 為
192.168.1.20
。指定要加入的 Unifi 控制器
1set-inform http://${UNIFI_CONTROLLER_ADDRESS}:8080/inform
在控制器中點擊 [ Adpot ] 即可。
變更 Unifi 控制器
在 Unfi 官方的文件中提到,我們可以透過 Unfi Network 來將 AP 重置為出廠設定。
All UniFi devices can be restored via their respective web or mobile applications. This is located in the “Manage” section of a device’s settings. Depending on the application, this may be referred to as “Forget”(UniFi Network) or “Unmanage” (UniFi Protect).
接著就可以登入並加入 Unifi 控制器 [3] 了。
補充 - 架設 Unfi Controller
我們可以使用 Docker 跟 docker-compose 來架設 Unfi Controller。
1version: "2.1"
2services:
3 unifi-controller:
4 image: lscr.io/linuxserver/unifi-controller:version-7.1.66
5 container_name: unifi-controller
6 environment:
7 - PUID=1000
8 - PGID=1000
9 - MEM_LIMIT=1024 #optional
10 - MEM_STARTUP=1024 #optional
11 volumes:
12 - ./config:/config
13 ports:
14 - 8443:8443 # Unifi web Admin port
15 - 3478:3478/udp # Unifi STUN port
16 - 10001:10001/udp # AP discovery
17 - 8080:8080 # device communication
18 - 1900:1900/udp #optional
19 - 8843:8843 #optional
20 - 8880:8880 #optional
21 - 6789:6789 #optional
22 - 5514:5514/udp #optional
23 restart: unless-stopped