# hw

* [arm/mipsel/x86 packages](#armmipselx86-packages)
* [Mi](#mi)
* [iKuai](#ikuai)
* [UBNT](#ubnt)
  * [UNMS](#unms)
* [ER-X](#er-x)
  * [Reset](#reset)
  * [Console](#console)
  * [bootloader](#bootloader)
  * [Firmware](#firmware)
    * [OpenWRT](#openwrt)
  * [custom scripts](#custom-scripts)
  * [Web Setup Wizards](#web-setup-wizards)
    * [Switch](#switch)
  * [CLI](#cli)
    * [add bridge](#add-bridge)
    * [enable apt](#enable-apt)
    * [List dhcp/static clients](#list-dhcpstatic-clients)
    * [RIP](#rip)
* [Unifi](#unifi)
  * [Unifi-AC-Lite/LR](#unifi-ac-litelr)
  * [Controller Web](#controller-web)
  * [NanoStation® M](#nanostation-m)

## arm/mipsel/x86 packages

<http://pkg.entware.net/binaries/mipsel/>

```
tar zxvf *.ipk / *.tar.gz
```

* Pure: <http://openwrt-dist.sourceforge.net/>
* for CN: <https://github.com/immortalwrt/immortalwrt>
* Lean/LEDE/iStoreOS: <https://firmware.koolshare.cn/LEDE\\_X64\\_fw867/>
* 200+ : <https://openwrt.ai/> | <https://github.com/kiddin9/OpenWrt\\_x86-r2s-r4s-r5s-N1>
* eSir: <https://drive.google.com/drive/folders/1uRXg\\_krKHPrQneI3F2GNcSVRoCgkqESr>
* Lenyu: <https://drive.google.com/drive/folders/1mckwgy0zpjSpeLR4K3-wjVDAb9gLwRh\\>\_
* Raspberry Pi & NanoPi R2S/R4S & G-Dock & x86 OpenWrt: <https://github.com/SuLingGG/OpenWrt-Rpi>

## Mi

MIWIFIRepairTool: <https://www1.miwifi.com/miwifi\\_download.html>

## iKuai

<https://www.ikuai8.com/component/download>

* mem : 32bit 512M / 64bit 2G | HDD 1G most for log | <https://www.ikuai8.com/support/install/yjcs.html>
* defaults: 1st port LAN | admin/admin
* allow WAN web： /login#/equipmentSetting/loginManagement
* cloud qr: /login#/equipmentSetting/cloudServiceBinding
* dhcp hostname: /login#/networkConfiguration/internalAndExternalNetworkSettings/editLanWan
* v4 : ovpn yes | wg ent only

## UBNT

### UNMS

curl -fsSL <https://unms.com/v1/install> > /tmp/unms\_inst.sh && sudo bash /tmp/unms\_inst.sh

## ER-X

```
system type             : MT7621

processor               : 3
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0f                                                    fb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
```

### Reset

Reset button for about 10 seconds until the eth4 LED flashing/solid. default: static | <https://192.168.1.1> (eth0)

### Console

Pinout: <https://openwrt.org/\\_media/media/ubiquiti/edgerouter-x-sfp2.jpg\\>
My TTL cables: green/red/yellow/grey | Putty: 57600 8-N-1

<https://help.ubnt.com/hc/en-us/articles/360018189493-EdgeRouter-Manual-TFTP-Recovery#3\\>
<https://dl.ui.com/firmwares/edgemax/v2.0.x/ER-e50.recovery.v2.0.6.5208541.190708.0508.16de5fdde.img> (>100M)

```
The baud rate for ER-X / ER-X-SFP / ER-10X and EP-R6 console connections is 57600 instead of 115200.
Hold down the 1 (number one) key as the router starts up

1: System Load Linux to SDRAM via TFTP.
Please Input new ones /or Ctrl-C to discard
        Input device IP (172.16.3.212) ==:192.168.1.20
        Input server IP (172.16.3.210) ==:192.168.1.10
        Input Linux Kernel filename (vme50) ==:ER-e50.recovery.v2.0.6.5208541.190708.0508.16de5fdde.img
    
```

### bootloader

<https://help.ubnt.com/hc/en-us/articles/360009932554-EdgeRouter-How-to-Update-the-Bootloader>

```
show system boot-image
add system boot-image
```

### Firmware

<https://www.ui.com/download/edgemax/edgerouter-x>

```
show version 
add system image http://dl.ubnt.com/...
add system image egdeos-120821.tar
show system image 
reboot
show system image storage 
set system image default-boot 
delete system image 

set interfaces ethernet eth1 address 192.168.3.2/24
commit
```

#### OpenWRT

<https://openwrt.org/toh/ubiquiti/ubiquiti\\_edgerouter\\_x\\_er-x\\_ka>

### custom scripts

```
chmod +x /config/scripts/post-config.d/yourscript.sh
    #!/bin/bash
```

### Web Setup Wizards

#### Switch

```
 switch switch0 {
     address dhcp
     switch-port {
         interface eth0 {
         }
         interface eth1 {
         }
         interface eth2 {
         }
         interface eth3 {
         }
         interface eth4 {
         }
     }
 }
```

### CLI

```
ubnt@ubnt:~$ configure
[edit]
ubnt@ubnt# show
```

#### add bridge

<https://help.ui.com/hc/en-us/articles/205223350-EdgeRouter-Creating-a-Bridged-Interface>

```
# WebUI: remove eth3 from switch0
set interfaces bridge br2 address dhcp
set interfaces ethernet eth3 bridge-group bridge br2
commit; save
# WebUI Dashboard: manage bridge/add ports
```

#### enable apt

<https://help.ubnt.com/hc/en-us/articles/205202560-EdgeRouter-Add-other-Debian-packages-to-EdgeOS>

```
configure
set system package repository wheezy components 'main contrib non-free'
set system package repository wheezy distribution wheezy 
set system package repository wheezy url http://http.us.debian.org/debian
commit
save
exit
sudo apt-get update
apt-cache search supervisor
```

#### List dhcp/static clients

<https://community.ubnt.com/t5/EdgeMAX/Anyway-to-see-connected-clients-Both-DHCP-and-Static/td-p/697223>

```
set service dhcp-server hostfile-update enable  
cat /etc/hosts
```

#### RIP

```
ubnt@ubnt# show protocols rip

    interface switch0
    interface eth0
    neighbor 192.168.3.1
    redistribute {
        connected {
        }
    }
```

## Unifi

<https://ui.com/download/releases/network-server>

* `UniFi Network Server` / `UniFi OS Server`: Software you install on your own server (VM/bare metal) to run `UniFi OS`
* `UniFi Network Application`: A key application within `UniFi OS`

Versions:

* UniFi OS Server 5.0.6 | UniFi Network 9.5.21 | Win/Mac/Linux
* UniFi Network Application 10.0.160

### Unifi-AC-Lite/LR

<https://community.ubnt.com/t5/UniFi-Updates-Blog/bg-p/Blog\\_UniFi>

```
system type             : Qualcomm Atheros QCA956X rev 0
processor               : 0
cpu model               : MIPS 74Kc V5.0
BogoMIPS                : 385.84
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, ...
ASEs implemented        : mips16 dsp

BZ.v3.7.5# free -m
             total         used         free       shared      buffers
Mem:(Lite)        126316        62272        64044            0            0
-/+ buffers:              62272        64044
Mem:(LR)        126272        66764        59508            0            0
-/+ buffers:              66764        59508
Swap:            0            0            0

BZ.v3.7.5# info
BZ.v3.7.5# set-inform http://unifi:8080/inform
```

### Controller Web

```
Settings - Sie DEVICE AUTHENTICATION
Every minor setting change on controller causes SSID reset.
```

### NanoStation® M

<https://www.ui.com/download/airmax-m/nanostationm>
