Static IP with connman solved

Hi!

I just wanted to report an error that occurred to me and how I solved it.

I installed a new version of Debian on Beaglebone Black, which was made available at https://rcn-ee.net/rootfs/bb.org/testing/2017-07-01/iot/ by Robert Nelson.
I use static IP on Ethernet and configure it via connman as follows:

  1. Discover the identification of the ethernet interface:
    ls -la /var/lib/connman
    drwx------ 2 root root 4096 Jul 19 15:37 ethernet_b0d5ccfbbc59_cable <=== this is my MAC Address

  2. Configure static IP:
    connmanctl config ethernet_b0d5ccfbbc59_cable --ipv4 manual 192.168.137.2 255.255.255.0 192.168.137.1

  3. Configure DNS (this can be done together with the previous command):
    connmanctl config ethernet_b0d5ccfbbc59_cable --nameservers 192.168.1.1 8.8.8.8

ERROR:
When executing item 1, the following error was displayed:
Method “SetProperty” with signature “sv” on interface “net.connman.Service” doesn’t exist

Running “connmanctl services” no interface was displayed:
root@beaglebone:~# connmanctl

services
<====== Here should appear “ethernet_b0d5ccfbbc59_cable” or “ethernet”, I do not know …

SOLUTION:
The connman is already configured for dynamic ip, so I did the following:
1- connect the Beaglebone to the router;
2- check which IP the Beaglebone registered;
3) access the Beaglebone for this dynamic IP;
4) run the command: connmanctl config ethernet_b0d5ccfbbc59_cable --ipv4 manual 192.168.137.2 255.255.255.0 192.168.137.1
5) You will lose the connection after executing item 4, then just access the BBB again using the new IP, which in my case is 192.168.137.2.

I was getting the same error changing from DHCP to manual
Just in case anyone else has this issue, I still had to set the gateway to 0.0.0.0 if it wasn’t used

root@beaglebone:/# connmanctl services
*AO Wired ethernet_985dad474bf3_cable

Error:

root@beaglebone:/# connmanctl config ethernet_985dad474bf3_cable --ipv4 manual 192.168.1.184 255.255.255.0 --nameservers 8.8.8.8 8.8.8.4
Error ‘8.8.8.8’: Invalid argument
Error ‘8.8.8.4’: Invalid argument
Error ethernet_985dad474bf3_cable: Method “SetProperty” with signature “sv” on interface “net.connman.Service” doesn’t exist

Solved:
root@beaglebone:/# connmanctl config ethernet_985dad474bf3_cable --ipv4 manual 192.168.1.184 255.255.255.0 0.0.0.0 --nameservers 8.8.8.8 8.8.8.4

Peace!!

Curious if anyone has had any success with trying to apply settings with the ethernet cable unplugged ?. I get this same error when trying to do so. Although I can’t use ‘connmanctl services’ with the cable unplugged, I can still use my MAC address to fill in the . When trying I ultimately get the error: Method “SetProperty” with signature “sv” on interface “net.connman.Service” doesn’t exist