Bug #14756
closed
Link loss causes interfaces configured as Track Interface for IPv6 to lose their IPv4 addresses
Added by Steve Wheeler 12 months ago.
Updated 9 months ago.
Plus Target Version:
23.09
Affected Architecture:
All
Description
An interface configured as 'Track Interface' for IPv6 will lose it's static IPv4 address if the NIC link is brought down.
This means that services configured to run on it will fail.
This prevents service restarts when the link is bounced in particular package restarts by rc.newwanip. In many cases this is actually the preferred behaviour since these are not WAN interfaces.
Sine this is the default LAN config it hides issues due to service restarts in that situation.
Whether or not the behaviour is preferred should not happen, the interface should not lose it's v4 address.
- Assignee set to Jim Pingle
- Plus Target Version changed from 23.09 to 24.01
In rc.linkup if either IPv4 or IPv6 is dynamic it hits the path with interface_bring_down()
even if one is static.
I think we should take the time to fix this up better by teaching interface_bring_down()
to selectively act on IPv4 or IPv6 (or both) as needed. Then in rc.linkup it could pass only the family to act on as needed.
That kind of change is going to need a lot more soak time left for testing/shakedown than we have left for this release, so let's nudge this back.
- Plus Target Version changed from 24.01 to 24.03
- Status changed from New to In Progress
- Plus Target Version changed from 24.03 to 23.09
Looking more at interface_bring_down() it doesn't seem like it could be readily adapted this way since it wants to work on the interface as a whole and has some operations that are not specific to an address family.
So for now we should just exclude the static IPv4+track6 scenario from calling this function.
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
- Subject changed from Interfaces configured as trackv6 lose v4 addresses to Link loss causes interfaces configured as Track Interface for IPv6 to lose their IPv4 addresses
- Status changed from Feedback to Resolved
Tested on 23.05_1
I was able to reproduce this bug.
After applying 49d0874fb4524e05a802eaeabbf6bf152860f3d4 and then 5cd87ac533d2b7666d1ff5e1ab5a3fdf2a78f9ea I didn't see this issue any more.
If LAN interface which has Track Interface for IPv6 goes down, it still has IPv4 and IPv6 (which it has just before going Down) addresses on a Dashboard, in /Status/Interfaces and in 'ifconfig -a' output.
I marked this Bug as resolved.
- Target version changed from 2.8.0 to 2.7.1
Also available in: Atom
PDF