You are not logged in.

#1 2014-09-10 15:14:13

usharf
Member
Registered: 2014-09-10
Posts: 1

Route table messed up (might be related to Docker)

My network seems to get disconnected often, and seems to have started happening after I've installed Docker.

What I was able to find out, after trying to restart connman, was that the route table stays either empty, or it might contains some of Docker's veth's.

Not sure how to start checking, any help will be appriciated.

Right now, while connected using a cable and everything seems to be working, and I have couple of containers up, I see this:

→ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.1.1     0.0.0.0         UG    0      0        0 enp2s0
172.17.0.0      *               255.255.0.0     U     0      0        0 docker0
192.168.1.0     *               255.255.255.0   U     0      0        0 enp2s0
192.168.1.1     *               255.255.255.255 UH    0      0        0 enp2s0
 → ifconfig 
enp2s0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.105  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a02:120b:c3fa:90a0:5ab0:35ff:fef3:f611  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::5ab0:35ff:fef3:f611  prefixlen 64  scopeid 0x20<link>
        ether 58:b0:35:f3:f6:11  txqueuelen 1000  (Ethernet)
        RX packets 61451  bytes 68192382 (65.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 39102  bytes 5542897 (5.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 213019  bytes 133245366 (127.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 213019  bytes 133245366 (127.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth097f: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
        inet6 fe80::6c11:aeff:fe5d:f78f  prefixlen 64  scopeid 0x20<link>
        ether 6e:11:ae:5d:f7:8f  txqueuelen 1000  (Ethernet)
        RX packets 8  bytes 648 (648.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7  bytes 558 (558.0 B)
        TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0

veth9e0b: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
        inet6 fe80::f05e:3cff:fe51:55e3  prefixlen 64  scopeid 0x20<link>
        ether f2:5e:3c:51:55:e3  txqueuelen 1000  (Ethernet)
        RX packets 8  bytes 648 (648.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7  bytes 558 (558.0 B)
        TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether be:85:e9:cd:00:e2  txqueuelen 1000  (Ethernet)
        RX packets 22  bytes 3208 (3.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 26  bytes 4283 (4.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

At some stage, sometime, but not only, after my laptop wakes up, the route table is empty.

Sometimes restarting connman helps, but not always. Also, pluging and un-pluging the ethernet cable, does not always respond. Same problems oocur also when using WiFi.

Journal for connman, few minutes after I've recovered from a messed up route table (by shutting down two *linked* Docker containers) shows this:

→ journalctl -u connman -r
-- Logs begin at Wed 2014-07-23 10:59:58 CEST, end at Wed 2014-09-10 17:09:17 CEST. --
Sep 10 17:09:17 mbp connmand[912]: Network SSID not set
Sep 10 17:09:17 mbp connmand[912]: Network SSID not set
Sep 10 17:09:17 mbp connmand[912]: Network SSID not set
Sep 10 17:09:17 mbp connmand[912]: Network SSID not set
Sep 10 17:09:17 mbp connmand[912]: Network SSID not set
Sep 10 17:09:17 mbp connmand[912]: Network SSID not set
Sep 10 17:07:49 mbp connmand[912]: (null) {remove} index 166
Sep 10 17:07:49 mbp connmand[912]: (null) {TX} 7 packets 558 bytes
Sep 10 17:07:49 mbp connmand[912]: (null) {RX} 0 packets 0 bytes
Sep 10 17:07:49 mbp connmand[912]: veth097f {dellink} index 166 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: docker0 {newlink} index 4 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: docker0 {newlink} index 4 address 56:84:7A:FE:97:99
Sep 10 17:07:49 mbp connmand[912]: docker0 {TX} 12131 packets 15893482 bytes
Sep 10 17:07:49 mbp connmand[912]: docker0 {RX} 8044 packets 1352846 bytes
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 address 6E:11:AE:5D:F7
Sep 10 17:07:49 mbp connmand[912]: (null) {update} flags 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: (null) {TX} 7 packets 558 bytes
Sep 10 17:07:49 mbp connmand[912]: (null) {RX} 0 packets 0 bytes
Sep 10 17:07:49 mbp connmand[912]: (null) {create} index 166 type 1 <ETHER>
Sep 10 17:07:49 mbp connmand[912]: Remove interface (null) [ ethernet ]
Sep 10 17:07:49 mbp connmand[912]: (null) {remove} index 166
Sep 10 17:07:49 mbp connmand[912]: veth097f {dellink} index 166 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 address 6E:11:AE:5D:F7
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 address 6E:11:AE:5D:F7
Sep 10 17:07:49 mbp connmand[912]: (null) {TX} 7 packets 558 bytes
Sep 10 17:07:49 mbp connmand[912]: (null) {RX} 0 packets 0 bytes
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 address 6E:11:AE:5D:F7
Sep 10 17:07:49 mbp connmand[912]: (null) {del} route fe80:: gw :: scope 0 <UNIVERSE>
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 operstate 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: veth097f {newlink} index 166 address 6E:11:AE:5D:F7
Sep 10 17:07:49 mbp connmand[912]: (null) {update} flags 2 <DOWN>
Sep 10 17:07:49 mbp connmand[912]: (null) {TX} 7 packets 558 bytes
Sep 10 17:07:49 mbp connmand[912]: (null) {RX} 0 packets 0 bytes
Sep 10 17:07:46 mbp connmand[912]: (null) {remove} index 170
Sep 10 17:07:46 mbp connmand[912]: (null) {TX} 7 packets 558 bytes
Sep 10 17:07:46 mbp connmand[912]: (null) {RX} 0 packets 0 bytes
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {dellink} index 170 operstate 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 operstate 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 address F2:5E:3C:51:55
Sep 10 17:07:46 mbp connmand[912]: (null) {update} flags 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: (null) {TX} 7 packets 558 bytes
Sep 10 17:07:46 mbp connmand[912]: (null) {RX} 0 packets 0 bytes
Sep 10 17:07:46 mbp connmand[912]: (null) {create} index 170 type 1 <ETHER>
Sep 10 17:07:46 mbp connmand[912]: Remove interface (null) [ ethernet ]
Sep 10 17:07:46 mbp connmand[912]: (null) {remove} index 170
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {dellink} index 170 operstate 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 operstate 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 address F2:5E:3C:51:55
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 operstate 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 address F2:5E:3C:51:55
Sep 10 17:07:46 mbp connmand[912]: (null) {TX} 7 packets 558 bytes
Sep 10 17:07:46 mbp connmand[912]: (null) {RX} 0 packets 0 bytes
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 operstate 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 address F2:5E:3C:51:55
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {del} route fe80:: gw :: scope 0 <UNIVERSE
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 operstate 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {newlink} index 170 address F2:5E:3C:51:55
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {update} flags 2 <DOWN>
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {TX} 7 packets 558 bytes
Sep 10 17:07:46 mbp connmand[912]: veth9e0b {RX} 0 packets 0 bytes

Last edited by usharf (2014-09-10 16:01:53)

Offline

Board footer

Powered by FluxBB