RE: No more IP adress when switching from dhcp to manual

2015-05-11 Thread Thierry Furet (tfuret)
Hi Tomasz,

Sorry for the delay. I was not disconnecting and re-connecting in between.
Following your recommandations, I did the following tests using connmanctl :

My device is started in dhcp mode, with 172.21.140.129 as IP address and then 
here is what I did :

connmanctl  disconnect ethernet_18550f6e44b3_cable
connmanctl  config ethernet_18550f6e44b3_cable --ipv4 manual 172.21.140.129 
255.255.255.0 172.21.140.254
connmanctl  connect ethernet_18550f6e44b3_cable

connmanctl  disconnect ethernet_18550f6e44b3_cable
connmanctl  config ethernet_18550f6e44b3_cable --ipv4 dhcp
connmanctl  connect ethernet_18550f6e44b3_cable

The result is the same in the settings file :

[ethernet_18550f6e44b3_cable]
Name=Wired
AutoConnect=true
Modified=2015-05-11T13:26:42.581611Z
IPv4.method=dhcp
IPv6.method=auto
IPv6.privacy=disabled
IPv4.netmask_prefixlen=24
IPv4.local_address=172.21.140.129
IPv4.gateway=172.21.140.254
IPv4.DHCP.LastAddress=172.21.140.129

At this moment, if I reboot my device I have no more IP address

Do you have any idea about something else I could try ?

Best Regards

Thierry

On 08/05/2015 08:18, Tomasz Bursztyka tomasz.burszt...@linux.intel.com
wrote:

Hi Thierry,
 I have an issue using connman when switching from dhcp to manual 
configuration, and coming back to dhcp configuration.
 With the particularity that in the manual configuration I am using 
the address given by the dhcp.

Do you disconnect and re-connect in between?

Tomasz
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: No more IP adress when switching from dhcp to manual

2015-05-08 Thread Tomasz Bursztyka

Hi Thierry,

I have an issue using connman when switching from dhcp to manual configuration, 
and coming back to dhcp configuration.
With the particularity that in the manual configuration I am using the address 
given by the dhcp.


Do you disconnect and re-connect in between?

Tomasz
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


No more IP adress when switching from dhcp to manual

2015-05-07 Thread Thierry Furet (tfuret)
Hello,

I have an issue using connman when switching from dhcp to manual configuration, 
and coming back to dhcp configuration.
With the particularity that in the manual configuration I am using the address 
given by the dhcp.
The result is that I have no more IP address at all after rebooting my device.
Here is the configuration file of my Ethernet interface after these operations :

[ethernet_18550f6e44b3_cable]
Name=Wired
AutoConnect=true
Modified=1970-01-01T00:00:20.506833Z
IPv4.method=dhcp
IPv6.method=auto
IPv6.privacy=disabled
IPv4.netmask_prefixlen=24
IPv4.local_address=172.21.140.129
IPv4.gateway=172.21.140.254
IPv4.DHCP.LastAddress=172.21.140.129

I can recuperate an IP address when removing from the config file the 3 
following lines :
IPv4.netmask_prefixlen=24
IPv4.local_address=172.21.140.129
IPv4.gateway=172.21.140.254

I would like to know if it's a known issue, and if you have a solution to 
propose.
My connman version is 1.27

Best Regards

Thierry


___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman