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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. Set static IP on ModalAI M500

Set static IP on ModalAI M500

Scheduled Pinned Locked Moved Unsolved General Questions
5 Posts 4 Posters 1.1k Views 4 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.
  • vmassagueV Offline
    vmassagueV Offline
    vmassague
    wrote on last edited by
    #1

    Hi!
    I'm trying to set a static IP for a WiFi interface on my ModalAI M500. To do that I've been checking the forum because I didn't know how to start.
    I have experience doing this in other OS like Ubuntu 20.04, in which I just have to create a new interface using nmtui, setting the static and the gateway. However, to do that in yocto I'm facing some issues.
    I tried to do it like in this post:

    1. I have voxl-wifi set on station mode. Should change the mode or is it ok? It is not clear to me on the post I have been looking.
    2. I have created the folder network and script interfaces in /etc because I didn't have it on my drone by default.
    3. I have set up my interface like this:
    iface wlan0 inet static
    	address 10.42.0.25
    	netmask 255.255.255.0
    	gateway 10.42.0.1
    
    1. I rebooted the drone to see the changes but wlan0 interface is not set with the static IP.

    I also tried doing a ifconfig wlan0 down and then ifconfig wlan0 up.
    Maybe this is not the way to go, so I would really appreciate some advise on this. Thank you in advance!

    Eric KatzfeyE 1 Reply Last reply
    0
    • vmassagueV vmassague

      Hi!
      I'm trying to set a static IP for a WiFi interface on my ModalAI M500. To do that I've been checking the forum because I didn't know how to start.
      I have experience doing this in other OS like Ubuntu 20.04, in which I just have to create a new interface using nmtui, setting the static and the gateway. However, to do that in yocto I'm facing some issues.
      I tried to do it like in this post:

      1. I have voxl-wifi set on station mode. Should change the mode or is it ok? It is not clear to me on the post I have been looking.
      2. I have created the folder network and script interfaces in /etc because I didn't have it on my drone by default.
      3. I have set up my interface like this:
      iface wlan0 inet static
      	address 10.42.0.25
      	netmask 255.255.255.0
      	gateway 10.42.0.1
      
      1. I rebooted the drone to see the changes but wlan0 interface is not set with the static IP.

      I also tried doing a ifconfig wlan0 down and then ifconfig wlan0 up.
      Maybe this is not the way to go, so I would really appreciate some advise on this. Thank you in advance!

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @vmassague You can try this: https://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/

      vmassagueV Tal RisinT 2 Replies Last reply
      0
      • tomT Offline
        tomT Offline
        tom
        admin
        wrote on last edited by
        #3

        @vmassague Another thing to look at is /etc/systemd/system/wlan_daemon.service which is default linux service that controls WiFi. You can look there to see if anything is hardcoded WiFi-wise.

        1 Reply Last reply
        0
        • Eric KatzfeyE Eric Katzfey

          @vmassague You can try this: https://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/

          vmassagueV Offline
          vmassagueV Offline
          vmassague
          wrote on last edited by
          #4

          @Eric-Katzfey
          It works following the steps of the tutorial. Thank you!

          1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @vmassague You can try this: https://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/

            Tal RisinT Offline
            Tal RisinT Offline
            Tal Risin
            wrote on last edited by
            #5

            @Eric-Katzfey said in Set static IP on ModalAI M500:

            @vmassague You can try this: https://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/

            Is there a way to set the static IP permanently?

            I saw that in the WiFi guide you recommend reserving the IP in the WiFi router, unfortunately that's not an option for me.

            1 Reply Last reply
            0

            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