Thanks for our reply. You have confirmed what I learned since reading the code.
I have not done any testing yet, but my concern is how fast connections failover to WiFi
when ethernet is disconnected. My assumption was that having a route present would improve
the user experience.
What is the preferred configuration when a user has configured WiFi and then connects
ethernet? Is there a better way than using SingleConnectedTechnology=true?
From: Daniel Wagner [wagi(a)monom.org]
Sent: Wednesday, June 05, 2019 2:20 AM
To: David Weidenkopf
Subject: Re: connman installs duplicate routes?
On Thu, May 23, 2019 at 11:23:19PM +0000, David Weidenkopf wrote:
Hi, I am using connman 1.35. If I enable both a ethernet and wifi
service, the default route is selected as you would expect. However,
multiple routes will be created for the LAN.
For every Service which is in either in online or ready state ConnMan
will add a route to the routing table.
~# ip route show
default via 192.168.16.1 dev eth0
22.214.171.124 via 192.168.16.1 dev eth0
126.96.36.199 via 192.168.16.1 dev wifi0
188.8.131.52 via 192.168.16.1 dev eth0
184.108.40.206 via 192.168.16.1 dev wifi0
192.168.16.0/24 dev wifi0 proto kernel scope link src 192.168.16.40
192.168.16.0/24 dev eth0 proto kernel scope link src 192.168.16.29
192.168.16.1 dev eth0 scope link
192.168.16.1 dev wifi0 scope link
This output is after ethernet has been disconnected and been
reconnected. The default route is eth0 as expected. However, there
are two LAN routes with the wifi0 route being first and being
selected. It seems that connman should either remove the wifi0 route
or set a metric on it.
The routes are added by the kernel and not by ConnMan. It seems it is
not possible to change the metric of an existing route , instead
ConnMan would need to delete the route set by the kernel and set a new
one with a metric.
The impact is that LAN traffic is sent over wifi0 instead of eth0.
in the configuration works around this but seems to be a discouraged
setting. Also, it means that wifi is not connected when ethernet is.
Yes, that's correct. Though I haven't really understood why
you want to have the Ethernet and WiFi link into the same network up
What is the best way to configure/use connman when ethernet and wifi
As usual this depends on what you want to achieve.
Is this a defect?
Yes and no. I agree it would be good to add the metric to the
links. But then it is only important if you have two links to the same
This e-mail and any files transmitted with it are the property of Arthrex, Inc. and/or its
affiliates, are confidential, and are intended solely for the use of the individual or
entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or
otherwise have reason to believe that you have received this message in error, please
notify the sender at 239-643-5553 and delete this message immediately from your computer.
Any other use, retention, dissemination forwarding, printing or copying of this e-mail is
strictly prohibited. Please note that any views or opinions presented in this email are
solely those of the author and do not necessarily represent those of the company. Finally,
while Arthrex uses virus protection, the recipient should check this email and any
attachments for the presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.