Static IP on Beaglebone Black

Hi

I am using Beaglebone Black with new debian
I refered this link : https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-RootFileSystem

this time I tried to set static ip with eth0 as below
/etc/network/interfaces

auto eth0
iface eth0 inet static   
address 192.168.10.1
netmask 255.255.255.0
gateway 192.168.10.1

i reboot beaglebone black and then i did ‘sudo ifconfig’
then the ip is not 192.168.10.1

ifconfig

Please, Let me know how to set static ip with eth0.
and one more
could you explain how to set router on beaglebone black?

thank you

@sonds1, this is because connman is installed by default.

You can either remove connman:

sudo apt remove connman

Or use the connman commands to setup the static ip…

connmanctl services
sudo connmanctl config <service> --ipv4 manual <ip_addr> <netmask> <gateway> --nameservers <dns_server>

Regards,

Thank you so much~~

I resolved static ip problem using connmanctl

1 Like