[OpenWrt-Devel] Routes disappearing when ip "ip link set down ethX" and bring it up again
Philip Prindeville
philipp_subx at redfish-solutions.com
Fri May 1 14:13:49 EDT 2020
>
>
>> On May 1, 2020, at 2:08 AM, Hans Dedecker <dedeckeh at gmail.com> wrote:
>>
>>
>> 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
Okay, I figured that netifd listened for NETLINK messages about the interfaces changing state…
-Philip
>
>>
>>
>> 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
More information about the openwrt-devel
mailing list