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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL
  4. Static IP address on eth0

Static IP address on eth0

Scheduled Pinned Locked Moved VOXL
4 Posts 4 Posters 1.8k Views 2 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.
  • Sem AndewegS Offline
    Sem AndewegS Offline
    Sem Andeweg
    Contributor
    wrote on last edited by
    #1

    I want to create a static IP Address on eth0.

    Now we have added an custom IP link to the USB 2.0 port of the USB expansion board via an ethernet to USB adapter. This works perfectly following the regular link: https://docs.modalai.com/usb-to-ethernet-with-voxl/

    But our custom IP link will only work with IP address 192.168.144.20 to 192.168.144.24

    Last Monday I got the eth0 to this IP address via changing /etc/network/interfaces to:
    IP: 192.168.144.20/24
    Mask: 255.255.255.0
    Default gateway: Leave open

    And everything worked perfectly and I was happy. Even for a couple of times restarting the system.
    But today it doesn't work anymore, it's back again changing the IP address of eth0 to whatever suits the VOXL best. Was this the best method to change the IP address on the eth0? Or is there something wrong? And how can I change this on a better way?

    Eric KatzfeyE 1 Reply Last reply
    1
    • Sem AndewegS Sem Andeweg

      I want to create a static IP Address on eth0.

      Now we have added an custom IP link to the USB 2.0 port of the USB expansion board via an ethernet to USB adapter. This works perfectly following the regular link: https://docs.modalai.com/usb-to-ethernet-with-voxl/

      But our custom IP link will only work with IP address 192.168.144.20 to 192.168.144.24

      Last Monday I got the eth0 to this IP address via changing /etc/network/interfaces to:
      IP: 192.168.144.20/24
      Mask: 255.255.255.0
      Default gateway: Leave open

      And everything worked perfectly and I was happy. Even for a couple of times restarting the system.
      But today it doesn't work anymore, it's back again changing the IP address of eth0 to whatever suits the VOXL best. Was this the best method to change the IP address on the eth0? Or is there something wrong? And how can I change this on a better way?

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

      @Sem-Andeweg Typically the IP address is assigned via DHCP from your local router. The Voxl is not choosing it. To statically assign something take a look at this: https://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/.

      1 Reply Last reply
      0
      • SmittyHalibutS Offline
        SmittyHalibutS Offline
        SmittyHalibut
        wrote on last edited by
        #3

        According to https://docs.modalai.com/wifi-setup/

        Note: It’s not currently possible to assign a static IP, only DHCP is supported. If you need a static IP on your own wifi network it’s best to configure that in your router’s software.
        

        I assume that applies to wired eth0 since they are probably configured in the OS similarly. I don't have authoritative info on that though, I'm literally just getting started with VOXL and ran the Quickstart Guides yesterday and remember seeing this.

        1 Reply Last reply
        0
        • tomT Offline
          tomT Offline
          tom
          admin
          wrote on last edited by
          #4

          @SmittyHalibut That page may be outdated. You definitely can set a static IP on eth0, it is required for Microhard usage. For example voxl-modem uses the interfaces file here for setting a static IP: https://gitlab.com/voxl-public/utilities/voxl-modem/-/blob/master/config/interfaces

          It does require pulling down / up the interface on boot: https://gitlab.com/voxl-public/utilities/voxl-modem/-/blob/master/scripts/voxl-modem#L516 which may be a solution for @Sem-Andeweg

          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

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