<div dir="auto"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 3:03 PM, Amish <span dir="ltr"><<a href="mailto:anon.amish@gmail.com" target="_blank">anon.amish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Thank you. I am curious to know if this new setting:<br>
ConfigureWithoutCarrier=1 would resolve my query few months back.<br>
(Although I would not be able to try it out yet for 2-3 weeks)<br>
<br>
Subject: Persistent address on "Lost carrier"<br>
Link: <a href="https://lists.freedesktop.org/archives/systemd-devel/2017-June/039041.html" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>archives/systemd-devel/2017-Ju<wbr>ne/039041.html</a><br>
<br>
i.e. systemd-networkd should not remove IP address and routes on "Lost carrier".<br>
<br>
I looked at the code here:<br>
<a href="https://github.com/systemd/systemd/blob/master/src/network/networkd-link.c" rel="noreferrer" target="_blank">https://github.com/systemd/sys<wbr>temd/blob/master/src/network/n<wbr>etworkd-link.c</a><br>
<br>
It appears that - it is still not so.<br>
<br>
i.e. If carrier is lost (eg. cable removed / network issues) then<br>
link_update() function would go ahead and call link_carrier_lost()<br>
and unconfigure the device.<br>
<br>
i.e. it will not obey ConfigureWithoutCarrier=1 which I believe it should.<br></blockquote><div><br></div><div>No that is not intended use case for ConfigureWithoutCarrier=. It will only look during configuring the the link.</div><div> While configuring a link even if that link has no carrier it will go on set it as configured for example empty bridges.<br></div><div><a href="https://github.com/systemd/systemd/issues/6645" target="_blank">https://github.com/systemd/<wbr>systemd/issues/6645</a>. But in your case It is already configured via gained carrier not via </div><div>ConfigureWithoutCarrier even if you set it to true.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks and regards,<br>
<br>
Amish.<span class="m_8047401396789280841gmail-"><br>
<br>
<br>
On Friday 06 October 2017 01:54 PM, Lennart Poettering wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="m_8047401396789280841gmail-">
Heya!<br>
<br>
I am happy to announce systemd 235:<br>
<br></span><span class="m_8047401396789280841gmail-">
* systemd-networkd's [Address] section in .network files gained a new<br>
Scope= setting for configuring the IP address scope. The [Network]<br>
section gained a new boolean setting ConfigureWithoutCarrier= that<br>
tells systemd-networkd to ignore link sensing when configuring the<br>
device. The [DHCP] section gained a new Anonymize= boolean option for<br>
turning on a number of options suggested in RFC 7844. A new<br>
[RoutingPolicyRule] section has been added for configuring the IP<br>
routing policy. The [Route] section has gained support for a new<br>
Type= setting which permits configuring<br>
blackhole/unreachable/prohibi<wbr>t routes.<br>
</span></blockquote><div class="m_8047401396789280841gmail-HOEnZb"><div class="m_8047401396789280841gmail-h5">
______________________________<wbr>_________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedeskto<wbr>p.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/systemd-devel</a><br>
</div></div></blockquote></div><br></div></div></div>