You can set up a manual static IP, you have to do the following steps:
killall dhclient //it kills dhclient process ifconfig wlp1s0 up 192.168.1.5 netmask 255.255.255.0 //this is the assignment of the IP route -n //we need to add the default gateway but we need to make sure it is running ping 192.168.1.1 //now ping it before adding the default gateway route add default gw 192.168.1.1 //assigns the default gateway
Thanks for the quick response Peter.
The thing is that I would like to make that configuration persistent in my system; I don´t want to reconfigure the IP settings manually everytime I reboot my device. So that's why I was asking if there exists any configuration file or if maybe I have to make a daemon process so it starts everytime the system reboots.
you may use connman.
Try "connmanctl help" - it lists you the commands to set persistent static IP addresses
Sorry for the late response,
No, I wasn't able to configure it using connmanctl. The thing is that I get the following error:
$ connmanctl config Wired --ipv4 192.168.1.5 255.255.255.255 192.168.1.1
Error Wired: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn´t exist
Have any of you encountered this problem?
I am running the IoT devkit image (3.8.7-yocto-standard) on an Intel Galileo Gen 2.
You could have 2 wired ethernet adapters hence connman wouldn't know which to pick of only setting "wired". Thus you'll have to check "services" and put the full service name of the eth adapter in the config. See e.g. in my blog (in that case for wifi - but same way for eth):
I was able to configure it too and SSH is working fine, but everytime i give opkg update i get this error:
wget: bad address 'iotdk.intel.com'
however the ping 220.127.116.11 is working fine