Beaglebone use DHCP IP, but set static IP

Hello,

my Beaglebone should run only with a static IP.

I set this to my /etc/network/interfaces:

`

auto lo
iface lo inet loopback

auto eth0

iface eth0 inet static
address 192.168.0.189
netmask 255.255.255.0
gateway 192.168.0.254

auto eth0:0

iface eth0:0 inet static
address 192.168.254.189
netmask 255.255.255.0

`

But he take from DHCP the IP:

`

root@0a800bd:/home/gd# ifconfig
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.0.75 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::3ad2:69ff:fe7a:13e9 prefixlen 64 scopeid 0x20
ether 38:d2:69:7a:13:e9 txqueuelen 1000 (Ethernet)
RX packets 4747 bytes 967989 (945.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3318 bytes 2686970 (2.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 175

eth0:0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.254.189 netmask 255.255.255.0 broadcast 192.168.254.255
ether 38:d2:69:7a:13:e9 txqueuelen 1000 (Ethernet)
device interrupt 175

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 187 bytes 14570 (14.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 187 bytes 14570 (14.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

`

I try to remove all DHCP clients … but guess some is still active.

How can I solve this issue?

Thank you!

beaglebone uses conman

User examples for setting a static eth ip via connman are saved in /etc/network/interfaces

Hey,

great, I removed connman … then not reachable over LAN and reboot: Now he has the given static IP.
Seems this was the solution!

Thank you!