On Mon, Jul 18, 2016 at 8:48 AM, <[email protected]> wrote:

> I downloaded the newest image
> (bone-debian-8.4-lxqt-4gb-armhf-2016-05-13-4gb) and I am now trying to
> configure the eth0 to be able to use the BBB on our network.
> I can connect to it over USB link.
> I changed the /etc/network/interfaces file to the content shown below, but
> after reboot the BBB gets address 169.254.129.50 (an address assigned after
> failed DHCP assignment attempt?)
> After some searching, I have the impression that this is because the usb0
> link uses dhcp, and the BBB is also using this on eth0, although I tell it
> to use 'static' in the interfaces file.
> If I restart the eth0 link using 'ifdown eth0' and 'ifup eth0' then it
> does get the right ip address, and I can ssh to it over the eth0 interface.
> But this is not really a good solution, and I have the impression that some
> other network settings, (dns, ...) are still misconfigured.
>
> I tried deleting the usb0 link from /etc/interfaces, and disabling the
> /opt/scripts/boot/autoconfigure_usb0.sh script, but that didn't help either.
> Is there any way I can force it to use a static IP address on eth0?
>
> Thanks for any help
>
> Bart
>
>
> root@beaglebone:/etc/network# cat interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> auto eth0
> iface eth0 inet static
>     dns-nameservers 8.8.8.8 8.8.4.4
>     address 30.0.0.39
>     netmask 255.0.0.0
>     network 30.0.0.0
>     gateway 30.0.0.1
> # Example to keep MAC address between reboots
> #hwaddress ether DE:AD:BE:EF:CA:FE
>

The magic for static eth is:

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

run:

debian@beaglebone:~$ connmanctl services
*AO Wired                ethernet_74daea0a4b52_cable

sudo connmanctl config ethernet_74daea0a4b52_cable --ipv4
manual 30.0.0.39 255.0.0.0 30.0.0.1 --nameservers 8.8.8.8

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYjncsbazCyMB%3DKQrns37z_NYuvFEob0cNBvNO9CwTv4WA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to