This script allows you to set static or dynamic IP, get the currently set IP, or clear bootloader config on your OAK-POE device.
Warning
Make sure to set mask and gateway correctly! If they are set incorrectly you will soft-brick your device (you won't be able to access it), and will have to factory reset your OAK PoE.
Note
The script currently doesn't support setting a IPv6 address. We suggest using :ref:`Device Manager`, a GUI tool for interfacing with the bootloader and its configurations.
Use cases: .. code-block:: bash
# Set a static IPv4 python3 poe_set_ip.py static <static IPv4 to set> <mask> # Set a static IPv4 and gateway python3 poe_set_ip.py static <static IPv4 to set> <mask> --gateway <Gateway IPv4> # Set a dynamic IPv4 and gateway python3 poe_set_ip.py dynamic <dynamic IPv4 to set> <mask> --gateway <Gateway IPv4> # Get the currently set IPv4 python3 poe_set_ip.py get
Example of how to set a static IPv4 address:
If you run the same example again after 10 seconds, you verify that the IP was changed to 192.168.1.200:
You can now also use the Manually specify device IP
script and change the IP to 192.168.1.200.
.. tabs::
.. tab:: Python
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/bootloader/poe_set_ip.py>`__
.. literalinclude:: ../../../../examples/bootloader/poe_set_ip.py
:language: python
:linenos:
.. tab:: C++
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/bootloader/poe_set_ip.cpp>`__
.. literalinclude:: ../../../../depthai-core/examples/bootloader/poe_set_ip.cpp
:language: cpp
:linenos: