Hi Jeff, On Fri, 30 Mar 2012 09:03:58 +0800 Jeff Zheng <[email protected]> wrote:
> On 03/29/2012 10:59 PM, Mario Domenech Goulart wrote: >> >> Just tried running connmand out of systemd. It doesn't seem to make any >> difference. >> >> I noticed that if I: >> >> 1. stop connmand (with SIGTERM)* >> 2. remove /var/lib/connman >> 3. start connmand >> >> The network interface gets its configuration via DHCP and works fine. I >> can stop/start connmand and the network interface keeps configured. >> However, if I set static IP configuration, then set DHCP again, the >> network interface won't get any configuration next time connmand is >> restarted. >> >> [*] After killing connmand with SIGTERM I can see that the last log >> lines are (after quite a lot of messages): >> >> src/dbus.c: __connman_dbus_cleanup() >> Exit >> >> So, I suspect it's handling the signal and being correctly terminated. >> >> Is it possible that something in /var/lib/connman is getting corrupted >> when I set the network interface to use static configuration? >> >> After I set static configuration, I checked with ifconfig if the >> configuration was correctly applied (it was). I used an IP number >> different from the one obtained via DHCP, so I could see it was actually >> changed. >> >> Is anybody able to reproduce this behavior? >> >> > No. connman (commit 6e2e4e8) works on my system. > > Does plug in/out cable work after you re-enable dhcp? I'm not sure I understand your question. After I enable DHCP the network interface gets configured. However, the configuration is gone once connmand is restarted (e.g., when the system is rebooted). This "amnesia" starts happening when I set the network interface configuration to be static. After that, if I set the network interface to get its configuration via DHCP, it works until connmand is restarted. So, if I re-enable DHCP and unplug/plug the cable, it works. But the configuration is lost after I restart connmand. Best wishes. Mario -- http://parenteses.org/mario _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
