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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. Setting up network interfaces

Setting up network interfaces

Scheduled Pinned Locked Moved Unsolved General Questions
7 Posts 4 Posters 2.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.
  • ryan_meagherR Offline
    ryan_meagherR Offline
    ryan_meagher
    Contributor
    wrote on last edited by
    #1

    So I am trying to find the place where I can setup network interfaces in order to assign a static ip address for eth0. On the rb5 I can do this via modifying the /etc/dhcpcd.conf file; however, this isn't present on the voxl. I see all the interfaces via ifconfig -a and the corresponding sys/class/net but there doesn't seem to be .network of ifcfg files there.

    I would have thought that the interfaces would either be in /etc/sysconfig/network-scripts/ifcfg-eth* or in /etc/network/interfaces where I could modify files that could be brought up via ifconfig eth0 up but this doesn't seem to be the case.

    Right now I am doing this via enabling a systemd service

    set -e
    ETH_ADD=192.168.2.120
    ifconfig eth0 up || (echo " failed to open eth0" && exit 1)
    ip addr add ${ETH_ADD}/24 dev eth0 || (echo " failed to add ip link eth0" && exit 1)
    

    I see that this can be done in the poky_build but any suggestions as to where this can be done on the voxl in a more Linux-esque way?

    Thanks,
    Ryan Meagher

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

      @ryan_meagher You should be able to do this using the /etc/network/interfaces approach you mentioned. voxl-modem uses that approach in order to set a static IP for Microhard on eth0. This is what the /etc/network/interfaces file looks like in that case:

      # This file describes the network interfaces available on your system
      
      # The primary network interface
      auto eth0
      iface eth0 inet static
      	address 192.168.168.100
      	netmask 255.255.255.0
      	gateway 192.168.168.1
      
      
      NirgeN 1 Reply Last reply
      2
      • ryan_meagherR Offline
        ryan_meagherR Offline
        ryan_meagher
        Contributor
        wrote on last edited by
        #3

        @tom Thanks for the info, my voxl didn't have a default /etc/network directory which is what threw me off.

        Thanks,
        Ryan Meagher

        1 Reply Last reply
        0
        • tomT tom

          @ryan_meagher You should be able to do this using the /etc/network/interfaces approach you mentioned. voxl-modem uses that approach in order to set a static IP for Microhard on eth0. This is what the /etc/network/interfaces file looks like in that case:

          # This file describes the network interfaces available on your system
          
          # The primary network interface
          auto eth0
          iface eth0 inet static
          	address 192.168.168.100
          	netmask 255.255.255.0
          	gateway 192.168.168.1
          
          
          NirgeN Offline
          NirgeN Offline
          Nirge
          wrote on last edited by
          #4

          Hi @tom
          I tried this for wlan0 and it doesn't work for me, am I missing a configuration for out-of-the-box VOXL before I can add /etc/network/interfaces? or is it overriden by voxl-wifi?

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

            @Nirge Are you using WiFi in Station mode or in SoftAP mode?

            NirgeN 1 Reply Last reply
            0
            • tomT tom

              @Nirge Are you using WiFi in Station mode or in SoftAP mode?

              NirgeN Offline
              NirgeN Offline
              Nirge
              wrote on last edited by
              #6

              @tom Originaly configured it station, did not change it when tried to configure it to static.

              Eric KatzfeyE 1 Reply Last reply
              0
              • NirgeN Nirge

                @tom Originaly configured it station, did not change it when tried to configure it to static.

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

                @Nirge You should use voxl-wifi for wlan0.

                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