Hello,
Connmand, attaching in some DHCP servers, Toradex module and connmand does not obtain connectivity properly
I have build connmand for Toradex module, generally following instructions in High performance, low power Embedded Computing Systems | Toradex Developer Center
Mostly everything seems to work well but when attaching Toradex module in some router devices and their DHCP server, connectivity is not obtained properly. When I attach Toradex module to our corporal network, everything goes well, but when I attach to my desktop routers (Telewell, TPlink), then eth0 is not configured up properly with connmand.
A short period, ifconfig does print tun6to4 interface and seems to have correct address but then it does hide. (seen below)
root@colibri-vf:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:2d:49:e0:2b
inet6 addr: fe80::214:2dff:fe49:e02b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:23198 errors:0 dropped:14825 overruns:0 frame:0
TX packets:4252 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2009139 (1.9 MiB) TX bytes:422938 (413.0 KiB)
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:54424 errors:0 dropped:0 overruns:0 frame:0
TX packets:54424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3922697 (3.7 MiB) TX bytes:3922697 (3.7 MiB)
tun6to4 Link encap:UNSPEC HWaddr AC-A8-00-D4-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: ::172.168.0.212/96 Scope:Compat
inet6 addr: 2002:aca8:d4::1/64 Scope:Global
UP RUNNING NOARP MTU:1472 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:2 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@colibri-vf:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:2d:49:e0:2b
inet6 addr: fe80::214:2dff:fe49:e02b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:23210 errors:0 dropped:14836 overruns:0 frame:0
TX packets:4259 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2010111 (1.9 MiB) TX bytes:423502 (413.5 KiB)
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:54426 errors:0 dropped:0 overruns:0 frame:0
TX packets:54426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3922907 (3.7 MiB) TX bytes:3922907 (3.7 MiB)
In settings file, everything seems to be correct:
cat /var/lib/connman/ethernet_00142d49e02b_cable/settings
[ethernet_00142d49e02b_cable]
Name=Wired
AutoConnect=true
Modified=2016-03-30T12:22:06.569600Z
IPv4.method=dhcp
IPv6.method=auto
IPv6.privacy=disabled
IPv4.netmask_prefixlen=24
IPv4.local_address=172.168.0.212
IPv4.gateway=172.168.0.254
IPv4.DHCP.LastAddress=172.168.0.212
If I explicitly write through dbus interface and tell connmand to use method dhcp, situation is corrected, and ip address is obtained, but this is not possible in every situation. So this need to work automatically.
I builded up a Buildroot environment also. With Buildroot, Connmand works perfectly in this kind of situation also.
There is three log files attached, they are catched up with dbus-monitor:
OEcoreCorporalNetwork.log: Toradex OE-core environment in a corporal network
OEcoreDesktopRouter.log: Toradex OE-core environment in a desktop router
OEcoreDesktopRouterKickStart.log: I wrote through dbus connmand to use method DHCP with eth0
BRCorporalNetwork.log: Buildroot environment in a corporal network
BRDesktopRouter.log: Buildroot environment in a desktop router
My question is, what to do? Is there some tip test?
BR Ossi Syri, Ouman Oylink text