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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2
  4. Disabling DHCP while using static IP

Disabling DHCP while using static IP

Scheduled Pinned Locked Moved VOXL 2
6 Posts 3 Posters 1.9k 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.
  • I Offline
    I Offline
    I_Dwyer
    Contributor
    wrote on last edited by
    #1

    I am currently using the voxl-static-ip service to run with a static ip on eth0. ifconfig shows only the assigned static ip on eth0, but hostname -I shows both the static IP and a DHCP ip. I am able to ssh into the VOXL both through the static IP, and the DHCP IP at any time. What would be the best method to disable the DHCP IP so that only the static IP OR the DHCP IP are active at once? Normally I would handle this in the /etc/network/interfaces file, but that does not appear to exist on the VOXLs.

    tomT 1 Reply Last reply
    0
    • I I_Dwyer

      I am currently using the voxl-static-ip service to run with a static ip on eth0. ifconfig shows only the assigned static ip on eth0, but hostname -I shows both the static IP and a DHCP ip. I am able to ssh into the VOXL both through the static IP, and the DHCP IP at any time. What would be the best method to disable the DHCP IP so that only the static IP OR the DHCP IP are active at once? Normally I would handle this in the /etc/network/interfaces file, but that does not appear to exist on the VOXLs.

      tomT Offline
      tomT Offline
      tom
      admin
      wrote on last edited by
      #2

      @I_Dwyer I believe even though the interfaces file doesn't exist you can still create it and linux will utilize it

      I 1 Reply Last reply
      0
      • tomT tom

        @I_Dwyer I believe even though the interfaces file doesn't exist you can still create it and linux will utilize it

        I Offline
        I Offline
        I_Dwyer
        Contributor
        wrote on last edited by
        #3

        @tom How are IP addressed being handled by default? The system is able to get a DHCP IP automatically on power-up with default settings if connected, but it does not have an /etc/network/interfaces file defined, AND it is also not using netplan (https://askubuntu.com/questions/1031709/ubuntu-18-04-switch-back-to-etc-network-interfaces). How does the system know how to configure eth0?

        I 1 Reply Last reply
        0
        • I I_Dwyer

          @tom How are IP addressed being handled by default? The system is able to get a DHCP IP automatically on power-up with default settings if connected, but it does not have an /etc/network/interfaces file defined, AND it is also not using netplan (https://askubuntu.com/questions/1031709/ubuntu-18-04-switch-back-to-etc-network-interfaces). How does the system know how to configure eth0?

          I Offline
          I Offline
          I_Dwyer
          Contributor
          wrote on last edited by
          #4

          My concern is that, while I could attempt to set up netplan or another method to configure IP's, without understanding what the system is doing already I'm not sure how that will interact or fight with whatever is controlling the configuration now. During a previous attempt to set up the system with configurable ip's without using voxl-static-ip the system ended up in a state where it would not get a DHCP or a static ip, which required reinstalling the system image to get it back to a working state. I would prefer to avoid doing that again.

          I 1 Reply Last reply
          0
          • I I_Dwyer

            My concern is that, while I could attempt to set up netplan or another method to configure IP's, without understanding what the system is doing already I'm not sure how that will interact or fight with whatever is controlling the configuration now. During a previous attempt to set up the system with configurable ip's without using voxl-static-ip the system ended up in a state where it would not get a DHCP or a static ip, which required reinstalling the system image to get it back to a working state. I would prefer to avoid doing that again.

            I Offline
            I Offline
            I_Dwyer
            Contributor
            wrote on last edited by
            #5

            For reference - I switched back to utilizing ifupdown using the instructions in the top answer here to configure eth0 for a dhcp connection - https://askubuntu.com/questions/1031709/ubuntu-18-04-switch-back-to-etc-network-interfaces.

            Now ip a shows TWO addresses for eth0 - configuring via ifupdown allows me to set one of them, but the 'default' eth0 dhcp connection is still there and it is not clear to me how to configure it. Please advise.

            M 1 Reply Last reply
            0
            • I I_Dwyer

              For reference - I switched back to utilizing ifupdown using the instructions in the top answer here to configure eth0 for a dhcp connection - https://askubuntu.com/questions/1031709/ubuntu-18-04-switch-back-to-etc-network-interfaces.

              Now ip a shows TWO addresses for eth0 - configuring via ifupdown allows me to set one of them, but the 'default' eth0 dhcp connection is still there and it is not clear to me how to configure it. Please advise.

              M Offline
              M Offline
              Mastermind
              Contributor
              wrote on last edited by
              #6

              @I_Dwyer I have been down the rabbit hole here. It seems that qualcomm has not used any of the standard network management tools like Netplan. They use a hybrid of Systemd-Networkd and a wide range of complex scripts to manage all the interfaces. None of the scripts are standard. I am at the point of possibly stripping all of that out, and replacing it with either Ifupdown or Netplan and creating a firmware build that works better for our use case. There are a number of problems with the older Qualcomm network scripts, such as the DHCP management you are encountering. For example I have noticed that if WWAN0 has an IP, then WLAN0 will NOT get an IP from the DHCP server, even thought the wifi is connected to the local AP! To get around that I added an ifconfig statement issuing a static IP to wlan0 every time the drone boots, but this is a hacky solution.

              Would like to see ModalAI replace the entire Network Management stack with something better and easier to maintain.

              1 Reply Last reply
              2

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              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