[OpenWrt-Devel] Routes disappearing when ip "ip link set down ethX" and bring it up again

Hans Dedecker dedeckeh at gmail.com
Fri May 1 04:08:26 EDT 2020


On Thu, Apr 30, 2020 at 9:32 PM Philip Prindeville <
philipp_subx at redfish-solutions.com> wrote:

> Hi all,
>
> I noticed that if eth5 is my “wan” interface and I do:
>
> # ip link set down dev eth5
>
> make some firewall changes, then do:
>
> # ip link set up dev eth5
>
> then my routes don’t get repopulated.


> I thought that procd installed triggers so that if an interface flaps,
> then a helper would run (in this case the network helper).
>
Netifd is responsible for management of IP routes/addresses; so if a link
is forced down by an external command netifd will not be aware and will not
re-install IP routes/addresses
You can easily bring down an interface by using ifdown which is handled by
netifd

Hans

>
> Is this not happening?
>
> Thanks,
>
> -Philip
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200501/e5a74210/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list