https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162018-08-20T13:01:59ZpfSense bugtrackerpfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=378822018-08-20T13:01:59ZSteve Wheeler
<ul></ul><p>I have replicated this in em(4) and re(4) (on an APU) but not on mvneta(4). <br />All on the latest 2.4.4 snapshot.</p> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=380822018-08-27T13:43:18ZAnonymous
<ul><li><strong>Assignee</strong> set to <i>Luiz Souza</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=382942018-09-10T13:21:32ZAnonymous
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>13</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=382952018-09-10T13:21:37ZAnonymous
<ul><li><strong>Status</strong> changed from <i>13</i> to <i>In Progress</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=383242018-09-11T14:33:48ZAnonymous
<ul><li><strong>Target version</strong> changed from <i>2.4.4</i> to <i>2.4.4-GS</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=383252018-09-11T14:37:45ZLuiz Souzaluiz@netgate.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>13</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=383262018-09-11T14:37:49ZLuiz Souzaluiz@netgate.com
<ul><li><strong>Status</strong> changed from <i>13</i> to <i>New</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=387492018-10-03T08:39:34ZAnonymous
<ul><li><strong>Target version</strong> changed from <i>2.4.4-GS</i> to <i>2.4.4-p1</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=393202018-11-20T11:32:21ZAnonymous
<ul><li><strong>Target version</strong> changed from <i>2.4.4-p1</i> to <i>48</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=401432019-03-12T10:54:59ZJim Pingle
<ul><li><strong>Target version</strong> changed from <i>48</i> to <i>2.5.0</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=492152020-11-05T07:29:30ZAnonymous
<ul><li><strong>Target version</strong> changed from <i>2.5.0</i> to <i>CE-Next</i></li></ul> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=551722021-07-20T18:18:23ZSteve Wheeler
<ul></ul><p>This appears to be coupled to the IPv6 setting on the interface that is disconnected.</p>
<p>Testing here against 2.5.2, with the LAN set to 'Track Interface' and tracking WAN which is DHCPv6 the IP addresses on the interface are lost when it is disconnected.</p>
<p>With it set to None or as a valid Static IPv6 address all IP addresses are retained.</p> pfSense - Bug #8815: IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamichttps://redmine.pfsense.org/issues/8815?journal_id=551792021-07-21T07:49:38ZJim Pingle
<ul><li><strong>Subject</strong> changed from <i>IPv4 addresses disappear from interfaces when link is lost</i> to <i>IP addresses are removed from interfaces when link is lost and either IPv4 or IPv6 is dynamic</i></li><li><strong>Priority</strong> changed from <i>Very High</i> to <i>Normal</i></li><li><strong>Plus Target Version</strong> set to <i>Plus-Next</i></li></ul><p>This appears to be due to an interface having <strong>either</strong> IPv4 or IPv6 set to a dynamic type (read: Not static, not 'none'). If both are static or one is static and the other set to 'none' this doesn't happen.</p>
<p>In the case where either type of address is dynamic a link loss triggers a different code path which runs <code>interface_bring_down()</code> on the interface which lost link. That function in turn runs <code>ifconfig <name> delete</code> which clears the IPv4 addresses and other functions which have similar effects, the end result being that all addresses are cleared from the interface when it goes down.</p>
<p>For typical cases this is fairly low impact since the addresses come back when the interface regains link. However, if a system is part of an HA cluster using CARP VIPs, this can be a problem. When the CARP VIP is removed, rather than kept in place, it causes problems with demotion and preemption so failover won't function.</p>
<p>Dynamic addresses are not compatible with HA, so HA nodes should not be configured in this way. If IPv6 is not going to be used, then all interfaces should have IPv6 set to "None" rather than leaving DHCPv6 or Track Interface selected.</p>
<p>That said, it might be nice to detect such cases and not be so harsh. For example, maybe when link is lost, only addresses of the dynamic type (IPv4 or IPv6) are cleared when mixing static and dynamic on an interface.</p>
<p>Updating subject and lowering priority to reflect what we've found so far.</p>