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