userdoc:guest_lxc_container_unifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userdoc:guest_lxc_container_unifi [2020/06/01 10:46]
abelbeck
userdoc:guest_lxc_container_unifi [2020/06/12 17:50] (current)
abelbeck
Line 3: Line 3:
 [[https://unifi-network.ui.com/|Ubiquiti UniFi]] is a line of networking equipment including Wi-Fi access points and switches.  Most of these devices need a "UniFi Controller" to allow the device to be configured and managed.  A LXC container in AstLinux offers a good method to act as a local UniFi Controller for Wi-Fi access points and switches. [[https://unifi-network.ui.com/|Ubiquiti UniFi]] is a line of networking equipment including Wi-Fi access points and switches.  Most of these devices need a "UniFi Controller" to allow the device to be configured and managed.  A LXC container in AstLinux offers a good method to act as a local UniFi Controller for Wi-Fi access points and switches.
  
-**Minimum Resource Usage:** +**Resource Usage:** (minimum) 
-  * Memory: 1024 MB+  * Memory: 1280 MB
   * Storage: 1.3 GB   * Storage: 1.3 GB
 \\ \\
Line 34: Line 34:
 !!Tip ->!! If you prefer not to create a ''unifi.ui.com'' account, you may establish a local-only UniFi instance by clicking on "Switch to Advanced Setup" during "Sign in ..." in setup. !!Tip ->!! If you prefer not to create a ''unifi.ui.com'' account, you may establish a local-only UniFi instance by clicking on "Switch to Advanced Setup" during "Sign in ..." in setup.
  
-The UniFi Controller can use a noticeable amount of CPU and RAM resources, depending on the number and type of device. For a small installation you can edit the ''/var/lib/lxc/unifi/config'' file and uncomment the following line:+The UniFi Controller can use a noticeable amount of CPU and RAM resources, depending on the number and type of device. For a small installation you can edit the ''/var/lib/lxc/unifi/config'' file and uncomment and edit the following line:
  
-  lxc.cgroup.memory.limit_in_bytes = 1024M+  lxc.cgroup.memory.limit_in_bytes = 1280M
  
-to keep the RAM usage from going over 1 GB.  Larger installations may require ''1536M'' or ''2048M'' for good performance.+to keep the RAM usage from going over 1.28 GB.  Larger installations may require ''1536M'' or ''2048M'' for good performance.
  
 \\ \\
 !!Related Info ->!! **[[userdoc:guest_lxc_container|LXC container in AstLinux]]** !!Related Info ->!! **[[userdoc:guest_lxc_container|LXC container in AstLinux]]**
 +
 +\\
 +**UniFi DHCP option 43, Controller Assignment**
 +
 +If the UniFi controller is not in the same subnet (broadcast domain) as your UniFi devices, before adopting UniFi devices you can edit your ''/mnt/kd/dnsmasq.static'' file with the following:
 +
 +  ## UniFi DHCP option 43, Controller Assignment
 +  dhcp-option=vendor:ubnt,1,192.168.200.20
 +
 +Replace the ''192.168.200.20'' IP address with your controller's static address.  In the web interface, select "Restart DNS & DHCP" to apply the change to the dnsmasq configuration.
 +
  
  • userdoc/guest_lxc_container_unifi.1591026384.txt.gz
  • Last modified: 2020/06/01 10:46
  • by abelbeck