Hi guys. sorry to ask so many questions.

Hi guys. sorry to ask so many questions. I’ve been at this for three hours now with no luck. Can find nothing on google either.

I am having issues getting ethernet working. I’m just not getting a DHCP address.

Eth0 does not seem to get set up properly, but usb0 seems to have the default BBB address.

I’ve tried this directly on the BBB via HDMI to a monitor, and connected to my computer via USB and a terminal program with the same result.

Hi Brad,

what is the result of ifconfig? This is what it shows on my BBB (fixed IP):

root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr C8:A0:30:AC:B5:37
inet addr:193.100.1.101 Bcast:193.100.1.255 Mask:255.255.255.0
inet6 addr: fe80::caa0:30ff:feac:b537/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:592 errors:0 dropped:1 overruns:0 frame:0
TX packets:386 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:51619 (50.4 KiB) TX bytes:96124 (93.8 KiB)
Interrupt:56

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:284 (284.0 B) TX bytes:284 (284.0 B)

usb0 Link encap:Ethernet HWaddr 8E:A2:CB:AE:91:E4
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:70 errors:0 dropped:6 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7400 (7.2 KiB) TX bytes:9723 (9.4 KiB)

It’s pretty much what you have listed there, except there is no inet addr entries on eth0. The HWaddr is there, and everything else, but no IP information at all.

It seems that there is no subnet mask setted.
If you are working on an Angstrom distribution, connman is the name of the systemd- service (google) that is responsable for the ethernet setttings. It is a kind of plug and play driver that appers when an ethernet cable is plugged.

You can find it here:
root@beaglebone:~# cd /usr/lib/connman/test

In this directory you can find a lot of scripts that can be use for setting the ethernet connection.

first of all you need to know the name of the “service” from your ethernet plug, doing this:

root@beaglebone:/usr/lib/connman/test#./get-services

and you get something like that:

[ /net/connman/service/ethernet_c8a030acb537_cable ]
IPv6.Configuration = { Method=auto Privacy=disabled }
AutoConnect = true
Name = Wired
Nameservers = [ 193.100.1.10 ]
Provider = { }
Favorite = true
Domains.Configuration = [ ]
Timeservers.Configuration = dbus.Array([], signature=dbus.Signature(‘s’), variant_level=1)
State = online
Proxy = { Method=direct }
Nameservers.Configuration = [ 193.100.1.10 ]
IPv4 = { Netmask=255.255.255.0 Gateway=193.100.1.10 Method=manual Address=193.100.1.101 }
Timeservers = dbus.Array([dbus.String(u’193.100.1.10’), dbus.String(u’http://timeserver.rwth-aachen.de’), dbus.String(u’http://timeserver2.rwth-aachen.de’)], signature=dbus.Signature(‘s’), variant_level=1)
IPv6 = { }
Domains = [ ]
Ethernet = { Interface=eth0 MTU=1500 Method=auto Address=C8:A0:30:AC:B5:37 }
Security = [ ]
Proxy.Configuration = { }
Type = ethernet
Immutable = false
IPv4.Configuration = { Netmask=255.255.255.0 Gateway=193.100.1.10 Method=manual Address=193.100.1.101 }

The name of the servivce is in this (my) case:

ethernet_c8a030acb537_cable (very handy :-)).

Now you can set everything by calling:
(root@beaglebone:/usr/lib/connman/test#)./set-ipv4-method ethernet_c8a030acb537_cable dhcp 193.100.1.10 255.255.255.0 193.100.1.10

You get a description when calling it without parameters (just ./set-ipv4-method)

This is just my configuration (what I temporary changed to dhcp for you). 193.100.1.10 is my router. After changing the settings it can take a minute or more until the dhcp server has give the BBB a new IP address. After that you can see it with ./get-services. Looks like that (look at the IPV4 settins only, not IPV6):

root@beaglebone:/usr/lib/connman/test#./get-services
[ /net/connman/service/ethernet_c8a030acb537_cable ]
IPv6.Configuration = { Method=auto Privacy=disabled }
AutoConnect = true
Name = Wired
Nameservers = [ 193.100.1.10 ]
Provider = { }
Favorite = true
Domains.Configuration = [ ]
Timeservers.Configuration = dbus.Array([], signature=dbus.Signature(‘s’), variant_level=1)
State = ready
Proxy = { Method=direct }
Nameservers.Configuration = [ 193.100.1.10 ]
IPv4 = { Netmask=255.255.0.0 Method=dhcp Address=169.254.199.42 }
Timeservers = dbus.Array([dbus.String(u’193.100.1.10’), dbus.String(u’http://timeserver.rwth-aachen.de’), dbus.String(u’http://timeserver2.rwth-aachen.de’)], signature=dbus.Signature(‘s’), variant_level=1)
IPv6 = { }
Domains = [ ]
Ethernet = { Interface=eth0 MTU=1500 Method=auto Address=C8:A0:30:AC:B5:37 }
Security = [ ]
Proxy.Configuration = { }
Type = ethernet
Immutable = false
IPv4.Configuration = { Method=dhcp }

I hope this can help,
Guenter

hey thanks @Gunter_Putz got a little further, but when I enter
./get-services at the root@beaglebone:/usr/lib/connman/test# prompt, it just goes right back to the prompt without anything in between. I can see the script in the directory.

It’s gotta be something simple I’m doing incorrectly on my end. Looks like I’ve got more research to do :slight_smile: