…and a more elegant way to set a static IP on the Beagle Bone Black/Green, without removing the ConnMan Network Manager:
1. Connect working Ethernet cable on LAN port
2. Get ConnMan service name
~$ connmanctl services
*AO Wired ethernet_6ceceb5cc3e2_cable
* if you can't see "ethernet_xxx_cable", please check step 1.
3. Set static IP through ConnMan
* usage:
sudo connmanctl config <service> --ipv4 manual <ip_addr> <netmask> <gateway> --nameservers <dns_server>
~$ sudo connmanctl config ethernet_6ceceb5cc3e2_cable --ipv4 manual 10.0.10.0 255.255.0.0
4. Check eth0 configurations
~$ ifconfig eth0
~$ ip addr show dev eth0
End
*** TIP *** You can back to dhcp IP with below command.
~$ sudo connmanctl config ethernet_6ceceb5cc3e2_cable --ipv4 dhcp