ostroproject / ostro-os

Ostro OS
Other
93 stars 43 forks source link

[REG] Default gateway not changed after WiFi connected #180

Closed daweiwu closed 8 years ago

daweiwu commented 8 years ago

Steps:

  1. Connect Ethernet , default gw is Ethernet
  2. Connect WiFi , default gw still is Ethernet Expected Results: default gw should change to WiFi

See below:

enp0s20f6 Link encap:Ethernet  HWaddr 98:4F:EE:01:B1:69  
          inet addr:192.168.8.130  Bcast:192.168.8.255  Mask:255.255.255.0
          inet6 addr: fe80::9a4f:eeff:fe01:b169%2148674280/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:153291 errors:0 dropped:0 overruns:0 frame:0
          TX packets:101732 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:119446574 (113.9 MiB)  TX bytes:15852517 (15.1 MiB)
          Interrupt:48 

<some other interface info ...>

wlp1s0    Link encap:Ethernet  HWaddr FC:F8:AE:AC:D9:2E  
          inet addr:192.168.1.69  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::fef8:aeff:feac:d92e%2148673720/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:83 errors:0 dropped:0 overruns:0 frame:0
          TX packets:177 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:17211 (16.8 KiB)  TX bytes:32210 (31.4 KiB)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 enp0s20f6
default         *               0.0.0.0         U     2048   0        0 ve-app-1
default         *               0.0.0.0         U     2048   0        0 ve-app-5
10.0.0.0        *               255.255.255.252 U     0      0        0 ve-app-5
10.0.0.4        *               255.255.255.252 U     0      0        0 ve-app-1
10.0.0.8        *               255.255.255.252 U     0      0        0 ve-app-5
10.0.0.12       *               255.255.255.252 U     0      0        0 ve-app-1
169.254.0.0     *               255.255.0.0     U     0      0        0 ve-app-1
169.254.0.0     *               255.255.0.0     U     0      0        0 ve-app-5
192.168.1.0     *               255.255.255.0   U     0      0        0 wlp1s0
192.168.1.1     *               255.255.255.255 UH    0      0        0 wlp1s0
192.168.8.0     *               255.255.255.0   U     0      0        0 enp0s20f6
192.168.8.1     *               255.255.255.255 UH    0      0        0 enp0s20f6
daweiwu commented 8 years ago

Test device is Galileo Gen 2 , build is 497

ipuustin commented 8 years ago

@daweiwu : could you give the exact commands that you typed to make the switch to WiFi? Those are needed in order to reproduce the problem. What does [REG] mean in the issue title?

mythi commented 8 years ago

This looks expected based on 1.33 release notes, @pfl?

pfl commented 8 years ago

Expectation is wrong. By default ethernet has higher priority than WiFi, and therefore the default gateway stays with ethernet. See PreferredTechnologies in /etc/connman/main.conf if that is what you intend to do.

mythi commented 8 years ago

@pfl thank you

Closing as not an issue

daweiwu commented 8 years ago

@ipuustin .[REG] means it 's regression issue. And use connmactl to connect WiFi . @pfl . There is no /etc/connman/main.conf in Ostro OS . Any other possible place ? @mythi So this regression is not an issue ?

pfl commented 8 years ago

If there is no main.conf, then the defaults kick in. Defaults work as explained above.