Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL SDK and Software
  3. Instruction to set a Static IP for wlan0 voxl2

Instruction to set a Static IP for wlan0 voxl2

Scheduled Pinned Locked Moved Unsolved VOXL SDK and Software
3 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Judoor 0
    Regular
    wrote on last edited by
    #1

    Guide to Configure a Static IP Address with systemd-networkd
    I didn't find any guide on how to do it with the voxl2, even the static-ip service seem reserved for eth0 configuration, tell me, if i'm wrong i'll delete this.

    If you want to assign a static IP address to your wireless network interface (using systemd-networkd), follow this simple guide. In this example, we configure the wlan0 interface to use the static IP address 192.168.XX.XX.


    1. Check the Status of systemd-networkd

    Before starting, ensure that systemd-networkd is enabled and running:

    sudo systemctl status systemd-networkd
    

    If the service is not active, enable it:

    sudo systemctl enable systemd-networkd
    sudo systemctl start systemd-networkd
    

    2. Create the Configuration File for wlan0

    1. Navigate to the configuration directory:

      cd /etc/systemd/network/
      
    2. Create a configuration file for your wireless interface (e.g., 10-wlan0.network)

      sudo nano 10-wlan0.network
      
    3. Add the following lines to the file:

      [Match]
      Name=wlan0
      
      [Network]
      Address="192.168.XX.XX"/24
      Gateway="192.168.XX.1"
      DNS=8.8.8.8 1.1.1.1
      

      Explanation:

      • Name=wlan0: Specifies the target interface.
      • Address=192.168.XX.XX/24: Defines the IP address and subnet mask.
      • Gateway=192.168.XX.1: Sets the default gateway.
      • DNS=8.8.8.8 1.1.1.1: Configures the DNS servers.
    4. Save and close the file.


    3. Restart systemd-networkd

    Apply the new configuration by restarting the service:

    sudo systemctl restart systemd-networkd
    

    4. Verify the Configuration

    To verify that the IP address has been assigned to wlan0:

    ip addr show wlan0
    

    You should see the IP address 192.168.XX.XX assigned to the interface.


    5. Enable the Service at Boot

    Ensure that systemd-networkd is enabled to run at every boot:

    sudo systemctl enable systemd-networkd
    

    6. Reboot the System

    To confirm everything works correctly on startup:

    sudo reboot
    

    You have now successfully configured a static IP address for the wlan0 interface using systemd-networkd on your voxl2!

    1 Reply Last reply
    1
    • J Offline
      J Offline
      Judoor 0
      Regular
      wrote on last edited by Judoor 0
      #2

      Another way to do it, maybe more in line with the way modal ai intended it is this :

      Update dhcpcd.conf for Static IP
      Open the dhcpcd.conf file for editing:

      nano /etc/dhcpcd.conf
      

      Add the following lines at the end of the file to configure a static IP for wlan0:

      interface wlan0
      static ip_address=192.168.XX.XX/24
      static routers=192.168.XX.1
      static domain_name_servers=8.8.8.8 1.1.1.1
      

      Explanation:

      interface wlan0: Specifies the network interface to configure.
      static ip_address=192.168.XX.XX/24: Assigns the static IP and subnet mask.
      static routers=192.168.XX.1: Sets the gateway address.
      static domain_name_servers=8.8.8.8 1.1.1.1: Configures DNS servers (Google and Cloudflare in this case).
      Save and exit the file.

      Restart dhcpcd Service
      Apply the changes by restarting the dhcpcd service:

      systemctl enable dhcpcd
      systemctl restart dhcpcd
      
      tomT 1 Reply Last reply
      1
      • J Judoor 0

        Another way to do it, maybe more in line with the way modal ai intended it is this :

        Update dhcpcd.conf for Static IP
        Open the dhcpcd.conf file for editing:

        nano /etc/dhcpcd.conf
        

        Add the following lines at the end of the file to configure a static IP for wlan0:

        interface wlan0
        static ip_address=192.168.XX.XX/24
        static routers=192.168.XX.1
        static domain_name_servers=8.8.8.8 1.1.1.1
        

        Explanation:

        interface wlan0: Specifies the network interface to configure.
        static ip_address=192.168.XX.XX/24: Assigns the static IP and subnet mask.
        static routers=192.168.XX.1: Sets the gateway address.
        static domain_name_servers=8.8.8.8 1.1.1.1: Configures DNS servers (Google and Cloudflare in this case).
        Save and exit the file.

        Restart dhcpcd Service
        Apply the changes by restarting the dhcpcd service:

        systemctl enable dhcpcd
        systemctl restart dhcpcd
        
        tomT Offline
        tomT Offline
        tom
        admin
        wrote on last edited by
        #3

        @Judoor-0 Thanks for the contribution, this is very helpful!

        1 Reply Last reply
        0
        • J jmltt referenced this topic on

        Reading along? Create a free ModalAI Forum account to join in.

        With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

        Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        ModalAI
        Categories Recent Tags ModalAI.com Docs
        © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups