[systemd-devel] Persistent address on "Lost carrier"
anon.amish at gmail.com
Tue Jun 13 16:14:09 UTC 2017
I have the following in /etc/systemd/network/25-eth0.network
Now I have few "dynamic" routes where destination IP keeps changing.
/usr/bin/ip route add to 126.96.36.199 via 192.168.1.2 (Different gateway)
Many more routes are added by one script which keeps adding / deleting
routes based on certain algorithms.
Since destination IP keeps changing, I can not put it in [Route] section.
Now my problem is, if for any reason the interface loses carrier (cable
fault / switch / router reboot), the IP associated with it is removed
and hence all the routes added by script gets lost.
My question is how to stop this?
How do I tell systemd to not to delete IP address on "Lost carrier"?
I tried with:
But none worked.
Any idea / suggestions? Something similar to - CriticalConnection for DHCP?
Or may be we can have Persistent=true in "[Network]" OR "[Address]" section?
Thanks in advance,
More information about the systemd-devel