1 Reply Latest reply on Jul 18, 2015 5:56 AM by massca

    Edison static IP address configuration

    slbaker

      How do I setup the Edison to use a static IP address (rather than DHCP).

      I've seen how to do this in other flavors of linux by modifying /etc/network/interfaces

      but that does not appear to exist on Yocto linux

       

      Thanks,

      Scott

        • 1. Re: Edison static IP address configuration
          massca

          Hi,

          You can do it in two ways. First please look at wifi setup guide and use something like, I'm not sure about the syntax:

           

          connmanctl config wlan0 --ipv4 manual <ip address> <netmask> <gateway>

           

          Otherwise you can modify the file: /etc/wpa_supplicant/wpa_cli-actions.sh, comment the udhcpc line and insert the ifconfig $IFNAME ... line (see below):

           

          vi /etc/wpa_supplicant/wpa_cli-actions.sh

          ...

          if [ "$CMD" = "CONNECTED" ]; then

              kill_daemon udhcpc /var/run/udhcpc-$IFNAME.pid

          #  udhcpc -i $IFNAME -p /var/run/udhcpc-$IFNAME.pid -S

              ifconfig $IFNAME 192.168.0.199 netmask 255.255.255.0

          fi

          ...