Skip to main content

Benodigd

  1. Paperclip
  2. Unifi flex mini switch
  3. Unifi network controller
  4. RJ45 ethernet kabel
  5. Ubuntu 20
  6. Optioneel
    1. Hypervisor: /Proxmox
    2. Ubuntu 20 VM

Python Webserver opzetten op Ubuntu

  1. Python installeren
    1. sudo apt-get update && sudo apt-get install python3
  2. Python versie
    1. python_version=$(dpkg -l | grep “^ii” | awk ‘/python/{print$2}’ | grep “^python[0-9].[0-9]$” | head -n1)
    2. sudo “${python_version}” -V
  3. Een directory maken
    1. cd ~
    2. mkdir webserver
    3. cd webserver
  4. Starten Python 3.X webserver
    1. sudo “${python_version}” -m http.server 80

Python Webserver opzetten op Ubuntu

  1. IP adres statisch naar 192.168.1.99 zetten
    1. Zoek – Netwerk
    2. Internetverbinding – klik: Tandwiel
    3. IPV4
      1. Handmatig
      2. Adres: 192.168.1.99
      3. Netmasker: 255.255.255.0
      4. Gateway: 192.168.1.0
      5. DNS: 1.1.1.1
    4. Firmware op de webserver downloaden
      1. https://www.ui.com/download/unifi-switching-routing/unifi-switch-flex-mini/usw-flex-mini
      2. Hernoem naar fwupdate.bin
      3. verplaatsen naar de webserver

Ubiquiti Flex Mini switch herstarten

  1. Zet de switch uit
  2. Houd de reset knop in met de paperclip
  3. PoE stroom of de USB stroom er weer op
    1. Als dit goed is gegaan licht de LED blauw-wit-uit op in herhaling

Controle – Update

  1. Op de webserver op Ubuntu zal een verbonden apparaat via 192.168.1.20 zichtbaar moeten zijn
  2. Na 5 minuten zou de switch weer geadopteerd kunnen worden

Zoals beschreven
https://help.ui.com/hc/en-us/articles/360045001914-UniFi-USW-Flex-Mini-Recovery

Peter-Paul Rijsdijk

Eigenaar Webstijlen / WordPress en Webhosting expert Vragen? 0643873811 / peterpaul@webstijlen.nl