Hi Wang, Thank for your answer. May you explain how to do that? I think this should work.
2016-07-04 12:16 GMT+02:00 Wang Linetkux <china...@gmail.com>: > Hi, > I think you can setup two default route with different/proper metric > value. Which means you use one of them as the backup line, and the > other as the main line. > > > > Thanks, > Rujun > > 2016-07-04 16:14 GMT+08:00 Baptiste Clenet <bapcle...@gmail.com>: >> Hi, >> >> On my board, I've got a wifi and an ethernet interfaces on the same >> subnet (192.168.0.0/24). Problem is if ethernet cable is unplugged I >> can't use wifi anymore, see >> >> root@eisox:/# ip route >> default via 192.168.0.50 dev eth0 proto static >> 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.85 >> 192.168.0.0/24 dev apcli0 proto kernel scope link src 192.168.0.80 >> Here, ethernet is unplugged and wifi connected to other router so I >> can't use the wifi (ping failed in both direction). >> >> If I delete eth route, it works. >> root@eisox:/# ip route del 192.168.0.0/24 dev eth0 >> root@eisox:/# ip route >> default via 192.168.0.50 dev eth0 proto static >> 192.168.0.0/24 dev apcli0 proto kernel scope link src 192.168.0.80 >> root@eisox:/# >> >> How can I can solve the problem? >> I won't know the status of Wifi and Ethernet so I would like that both >> can work if they are plugged. >> >> Or how to disable one interface is the other one is connected (like if >> ethernet is plugged, allow only ethernet to work, if it is unplugged, >> allow only wifi) >> >> Cheers, >> >> -- >> Baptiste >> >> _______________________________________________ >> Lede-dev mailing list >> Lede-dev@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/lede-dev -- Baptiste _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev