Control: tags -1 + unreproducible moreinfo Hello Benjamin Laib,
On Mon, Dec 19, 2016 at 06:14:40PM +0000, Benjamin Laib wrote: > Package: iproute2 > Version: 3.16.0-2 > Severity: normal > > The restore command tries to restore the default route first, and then the > one to the network. According to the code it tries to restore in a certain order: /* Restore routes in correct order: * 0. ones for local addresses, * 1. ones for local networks, * 2. others (remote networks/hosts). */ https://sources.debian.org/src/iproute2/4.14.1-1/ip/iproute.c/#L1877 (See restore_handler and iproute_restore functions....) > I'm on debian jessie in a docker environment, however this bug also occurs on > my standard debian installation. > This is the bash session: > > Steps to reproduce: > root@localmachine:/# docker run -ti debian:jessie > root@8d0984043e32:/# ip route show > default via 172.17.0.1 dev eth0 > 172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.2 > root@8d0984043e32:/# ip route save all > backup > root@8d0984043e32:/# ip route flush all > root@8d0984043e32:/# ip route show > root@8d0984043e32:/# ip route restore < backup > RTNETLINK answers: Network is unreachable > root@8d0984043e32:/# ip route show > root@8d0984043e32:/# Works for me: $ sudo ip route save > ro.save $ sudo ip route flush all $ ip ro $ sudo ip ro restore < ro.save $ ip ro default via 192.168.1.1 dev wlp3s0 proto dhcp metric 600 169.254.0.0/16 dev wlp3s0 scope link metric 1000 192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.101 metric 600 Might be something related to your usage of Docker..... or maybe the problem has just been fixed since you reported it. For the record I'm testing with: $ dpkg -l iproute2 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii iproute2 4.14.1-1 amd64 networking and traffic control to $ uname -a Linux nyera 4.14.0-2-amd64 #1 SMP Debian 4.14.7-1 (2017-12-22) x86_64 GNU/Linux Would be great if you could test and see if you can still reproduce this problem, and if so then please send us your save file so we can use that for testing. Regards, Andreas Henriksson