Re: Missing default route after boot
Hi Jukka, On 07/24/2014 10:55 PM, Jukka Rissanen wrote: Hi Tobias, On 24 July 2014 12:44, Tobias Henkel tobias.hen...@oss.bmw-carit.de wrote: Hi, I have both ethernet and WIFI connection configured as autoconnect. Further connman is configured with SingleConnectedTechnology = true. The use of SingleConnectedTechnology should be avoided if possible. It just works too strongly and disconnects the other service even if someone is using the connection. Have you tried just to set PreferredTechnologies=ethernet? At least that setting works in my laptop and only ethernet is normally connected. I can still manually connect other wifi services and the ethernet connection would not be disconnected in this case (because I have SingleConnectedTechnology=false in my conf file). Just tried that and it ends up with ethernet and wifi configured with the default route set on the ethernet. This may happen because connecting to the wifi here is in most cases much faster than connecting to the ethernet (both DHCP). But I think I can live with that. Today after boot the ethernet connection was setup with a correct IP address (DHCP) but a missing default route. After a restart of connman it was ok again. I wasn't able to reproduce this behaviour a second time by rebooting or restarting connman. I have not really seen this behaviour. On my machine this was just a one time issue. I couldn't reproduce this a second time so far. Could there be a timing issue when ethernet and WIFI come up at the same time when SingleConnectedTechnology is enabled? Are your ethernet and wifi in the same subnet i.e., are they both in 192.168.0.0/16? If so, that might explain this behaviour. Ethernet is on 192.168.0.0/16, wifi is on 10.0.201.0/24. Looking at the logs setting up ethernet and wifi seem to be intermingled and wifi minimal faster in this case. I'm using the current master (c1b9fc4) of connman. Best regards Tobias My /etc/connman/main.conf: [General] PreferredTechnologies = ethernet,wifi SingleConnectedTechnology = true Routing table: Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 192.168.0.254 0.0.0.0 255.255.255.255 UH0 0 0 eth0 Routing table after connman restart: Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface default 192.168.0.254 0.0.0.0 UG0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 192.168.0.254 0.0.0.0 255.255.255.255 UH0 0 0 eth0 Connman log: Jul 24 08:14:50 duffman.bmw-carit.intra connmand[851]: Connection Manager version 1.24 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Checking loopback interface settings Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: System hostname is Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: lo {newlink} index 1 operstate 0 UNKNOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {create} index 2 type 1 ETHER Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {update} flags 4098 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 address 10:60:4B:49:47:2E mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 operstate 2 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Adding interface eth0 [ ethernet ] Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {create} index 3 type 1 ETHER Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {update} flags 4098 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 address 6C:88:14:6E:65:60 mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 operstate 2 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Adding interface wlo1 [ wifi ] Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {update} flags 36867 UP Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 address 10:60:4B:49:47:2E mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 operstate 2 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Method ListAdapters with signature on interface org.bluez.Manager doesn't exist Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {update} flags 4163 UP,RUNNING Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 address 6C:88:14:6E:65:60 mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 operstate 0 UNKNOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {update} flags 4099 UP Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1
Missing default route after boot
Hi, I have both ethernet and WIFI connection configured as autoconnect. Further connman is configured with SingleConnectedTechnology = true. Today after boot the ethernet connection was setup with a correct IP address (DHCP) but a missing default route. After a restart of connman it was ok again. I wasn't able to reproduce this behaviour a second time by rebooting or restarting connman. Could there be a timing issue when ethernet and WIFI come up at the same time when SingleConnectedTechnology is enabled? I'm using the current master (c1b9fc4) of connman. Best regards Tobias My /etc/connman/main.conf: [General] PreferredTechnologies = ethernet,wifi SingleConnectedTechnology = true Routing table: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 192.168.0.254 0.0.0.0 255.255.255.255 UH0 0 0 eth0 Routing table after connman restart: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.0.254 0.0.0.0 UG0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 192.168.0.254 0.0.0.0 255.255.255.255 UH0 0 0 eth0 Connman log: Jul 24 08:14:50 duffman.bmw-carit.intra connmand[851]: Connection Manager version 1.24 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Checking loopback interface settings Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: System hostname is Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: lo {newlink} index 1 operstate 0 UNKNOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {create} index 2 type 1 ETHER Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {update} flags 4098 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 address 10:60:4B:49:47:2E mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 operstate 2 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Adding interface eth0 [ ethernet ] Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {create} index 3 type 1 ETHER Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {update} flags 4098 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 address 6C:88:14:6E:65:60 mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 operstate 2 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Adding interface wlo1 [ wifi ] Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {update} flags 36867 UP Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 address 10:60:4B:49:47:2E mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 operstate 2 DOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: Method ListAdapters with signature on interface org.bluez.Manager doesn't exist Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {update} flags 4163 UP,RUNNING Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 address 6C:88:14:6E:65:60 mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 operstate 0 UNKNOWN Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {update} flags 4099 UP Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 address 6C:88:14:6E:65:60 mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 operstate 5 DORMANT Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 address 6C:88:14:6E:65:60 mtu 1500 Jul 24 08:14:51 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 operstate 2 DOWN Jul 24 08:14:52 duffman.bmw-carit.intra connmand[851]: Skipping disconnect of 4349543032_managed_psk, network is connecting. Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: eth0 {add} route fe80:: gw :: scope 0 UNIVERSE Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: eth0 {update} flags 102467 UP,RUNNING,LOWER_UP Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 address 10:60:4B:49:47:2E mtu 1500 Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: eth0 {newlink} index 2 operstate 6 UP Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: wlo1 {add} route fe80:: gw :: scope 0 UNIVERSE Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: wlo1 {update} flags 69635 UP,LOWER_UP Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 address 6C:88:14:6E:65:60 mtu 1500 Jul 24 08:14:54 duffman.bmw-carit.intra connmand[851]: wlo1 {newlink} index 3 operstate 5 DORMANT Jul 24 08:14:54