Pre-configuring an ethernet interface
I have a system with multiple ethernet interfaces, and I'm a bit confused as to how connman is expected to work with this. How can I get connman to give me a list of all interfaces, both with and without a carrier? The docs in several places seem to imply that an interface with no carrier would be considered a service with Favorite=false, but I am not seeing it in the service list at all. What is the right way to get a list all interfaces that connman is monitoring? Also, how can I pre-configure an ethernet interface with no carrier, so that when I do plug in a cable it will be configured with my desired manual settings? Thanks, -Justin ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
Re: Pre-configuring an ethernet interface
On 01/09/2013 11:17 AM, Justin Maggard wrote: I have a system with multiple ethernet interfaces, and I'm a bit confused as to how connman is expected to work with this. How can I get connman to give me a list of all interfaces, both with and without a carrier? The You need to use the dbus interfaces to do that. Try to use the scripts that comes with connman. to enable ethernet: test-connman enable ethernet lists all the services: test-connman services ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
Re: Pre-configuring an ethernet interface
On Wed, Jan 9, 2013 at 4:32 PM, Felipe Ferreri Tonello e...@felipetonello.com wrote: On 01/09/2013 11:17 AM, Justin Maggard wrote: I have a system with multiple ethernet interfaces, and I'm a bit confused as to how connman is expected to work with this. How can I get connman to give me a list of all interfaces, both with and without a carrier? The You need to use the dbus interfaces to do that. Try to use the scripts that comes with connman. to enable ethernet: test-connman enable ethernet lists all the services: test-connman services Most of this should work with the cli - connmanctl - which is part of the connman project source tree (you may have to convince the configure scripts to install it). You can statically configure interfaces and enable/disable them, setup dhcp, view link status etc. Auke ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
Re: Pre-configuring an ethernet interface
On Wed, Jan 9, 2013 at 4:39 PM, Kok, Auke-jan H auke-jan.h@intel.comwrote: On Wed, Jan 9, 2013 at 4:32 PM, Felipe Ferreri Tonello e...@felipetonello.com wrote: On 01/09/2013 11:17 AM, Justin Maggard wrote: I have a system with multiple ethernet interfaces, and I'm a bit confused as to how connman is expected to work with this. How can I get connman to give me a list of all interfaces, both with and without a carrier? The You need to use the dbus interfaces to do that. Try to use the scripts that comes with connman. to enable ethernet: test-connman enable ethernet lists all the services: test-connman services Most of this should work with the cli - connmanctl - which is part of the connman project source tree (you may have to convince the configure scripts to install it). You can statically configure interfaces and enable/disable them, setup dhcp, view link status etc. Thanks for the replies. I've actually tried every option available from connmanctl, and even all the python test scripts. None of them will show my ethernet interfaces until I plug in a cable and connman detects a carrier. -Justin ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
RE: Pre-configuring an ethernet interface
Hi Justin, Thanks for the replies. I've actually tried every option available from connmanctl, and even all the python test scripts. None of them will show my ethernet interfaces until I plug in a cable and connman detects a carrier. I searched doc and found following sentence in overview-api.txt: The interfaces of Connection Manager will always export all services that are currently known. The Ethernet devices with no cable plugged are actually not included in this list. They will only show up once a carrier is detected. Bests Jeff ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
Re: Pre-configuring an ethernet interface
On Wed, Jan 9, 2013 at 5:48 PM, Zheng, Jeff jeff.zh...@intel.com wrote: Thanks for the replies. I've actually tried every option available from connmanctl, and even all the python test scripts. None of them will show my ethernet interfaces until I plug in a cable and connman detects a carrier. I searched doc and found following sentence in overview-api.txt: The interfaces of Connection Manager will always export all services that are currently known. The Ethernet devices with no cable plugged are actually not included in this list. They will only show up once a carrier is detected. Thanks for pointing that out. I did see that statement, but it seems to conflict with other information in other docs, and even within that same doc, in the Service order section. Perhaps I'm just misunderstanding, but here are some examples: For Ethernet the plugging of a cable makes it a favorite. ... Ethernet is special here since the unplugging of the network cable will remove the favorite selection. ... and other similar statements. Personally, it doesn't matter to me if it's in the service list, or in some other list. All I really want to do is find which interfaces connman is controlling (connected or disconnected), and configure them whether or not I have the cable plugged in. It seems to me that there should be a way to do this, but I can't find a way currently. -Justin ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
RE: Pre-configuring an ethernet interface
-Original Message- From: connman-boun...@connman.net [mailto:connman-boun...@connman.net] On Behalf Of Justin Maggard Sent: Thursday, January 10, 2013 10:07 AM To: connman@connman.net Subject: Re: Pre-configuring an ethernet interface On Wed, Jan 9, 2013 at 5:48 PM, Zheng, Jeff jeff.zh...@intel.com wrote: Thanks for the replies. I've actually tried every option available from connmanctl, and even all the python test scripts. None of them will show my ethernet interfaces until I plug in a cable and connman detects a carrier. I searched doc and found following sentence in overview-api.txt: The interfaces of Connection Manager will always export all services that are currently known. The Ethernet devices with no cable plugged are actually not included in this list. They will only show up once a carrier is detected. Thanks for pointing that out. I did see that statement, but it seems to conflict with other information in other docs, and even within that same doc, in the Service order section. Perhaps I'm just misunderstanding, but here are some examples: For Ethernet the plugging of a cable makes it a favorite. ... Ethernet is special here since the unplugging of the network cable will remove the favorite selection. ... and other similar statements. Personally, it doesn't matter to me if it's in the service list, or in some other list. All I really want to do is find which interfaces connman is controlling (connected or disconnected), and configure them whether or not I have the cable plugged in. It seems to me that there should be a way to do this, but I can't find a way currently. Yes. They seem to be conflict. I will report a document bug. Thanks. Maybe you're interested in report a bug for your issue (or feature) at bug.meego.com? Bests Jeff ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman