I found a solution to this problem via Hipstercircuits... (you'd have to search for the link yourself)
connmanctl services # figure out your ethernet device eg. mine was: ethernet_984fee05a892_cable connmanctl config ethernet_984fee05a892_cable --nameservers 184.108.40.206 220.127.116.11 #these are Google's nameservers
Let me know if this fixed the problem...
thanks for your and sorry for my late reply.
With Taimoor's command I can add the nameservers to connmanctl:
root@galileo:/var/lib/connman# cat ethernet_984feeaabbcc_cable/settings
This is permanent and survives Galileo's reboots. So far so good.
Anyhow the problem is that the device is not using the nameservers. I have to run the command again after reboot:
root@galileo:~# ping google.de
ping: bad address 'google.de'
root@galileo:~# connmanctl config ethernet_984feeaabbcc_cable --nameservers 192.168.0.1
root@galileo:~# ping google.de
PING google.de (18.104.22.168): 56 data bytes
64 bytes from 22.214.171.124: seq=0 ttl=51 time=36.464 ms
64 bytes from 126.96.36.199: seq=1 ttl=51 time=36.128 ms
64 bytes from 188.8.131.52: seq=2 ttl=51 time=35.942 ms
64 bytes from 184.108.40.206: seq=3 ttl=51 time=36.137 ms
64 bytes from 220.127.116.11: seq=4 ttl=51 time=35.960 ms
--- google.de ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 35.942/36.126/36.464 ms
Im just curious about how other people solve this problem. I have the feel that Im missing some elementary basics configuring the network connection with the yocto os / galileo image.
I have not yet found working connmanctl commands.
Here are my (dirrty) workarounds using the /etc/resolv.conf file if someone is interested:
First I used a Startup Script:
- Create a file, e.g., /etc/init.d/startScript:
echo 'nameservers 192.168.0.1' > /etc.resolv.conf
- The script runs on systemboot when I use the command:
chmod a+x startScript
update-rc.d startScript defaults
Later I found a simpler solution: Write lock the resolv.conf after adding the required settings.
chattr +i /etc/resolv.conf
I would like to know more information regarding your case.
Which image are you using? Please run uname -a
Are you behind a proxy?
Are you using connmanctl config ethernet_984fee054a0e_cable --nameservers X.41.38.1 like Lemming above?
Hi Charlie, thank you for your reply
i have Linux galileo 3.8.7-yocto-standard
i don't have a proxy
and yes i'm using this command above. I can ping 18.104.22.168 but not google.de or google.com; i find that strange!
I was having the same problem but with the command: connmanctl config internet+hash --nameservers 192.168.10.1 I was able to ping to google.
Please try with the command:
connmanctl config ethernet_984fee054a0e_cable --nameservers 192.168.10.1
If this doesn’t work, are you receiving an error message after using this command? Are you completely sure that there are no issues in the wired network you are using and that the network is not being blocked.
Can you please explain it in more detail if possible with screenshots ? I'm very new to Linux and half of the things are just going over my head. Screenshots of steps will long way in making things more clear. Thanks in advance