Getting started with Edison: Static IP Address

Steps:

  • Edit the /etc/wpa_supplicant/wpa_cli-actions.sh file:
      • Go to line 48 which has a udhcpc command and comment this line out
    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.200.200 netmask 255.255.255.0
    fi
      • Add two new lines to manually set the IP and the gateway
    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.200.200 netmask 255.255.255.0
        route add default gw 192.168.200.1
    fi

Links:

https://communities.intel.com/message/262958

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s