summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2026-02-04 14:55:34 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2026-03-19 18:07:08 +0200
commit2a6a63391173e8cef9354a696e188e90f43def74 (patch)
tree34f034c54421a7c3b4560fc728af96fccbe70757 /interface-definitions/include/interface
parent7957857e6b5d6572d2c9831e0e66dac80e7a415e (diff)
downloadvyos-1x-2a6a63391173e8cef9354a696e188e90f43def74.tar.gz
vyos-1x-2a6a63391173e8cef9354a696e188e90f43def74.zip
T8188: Preserve static IPv4 addresses flushed by dhclient
When dhclient renews/rebinds a lease, it calls "ip -4 addr flush dev <interface>". This removes ALL IPv4 addresses, including static addresses configured via VyOS (e.g., "set interfaces ethernet eth0 address 192.168.1.1/24"). The updated hook logic now intercepts the "ip -4 addr flush" command and replaces it with a selective flush that only removes addresses marked as "dynamic" by the kernel. DHCP-assigned addresses have the "dynamic" flag set automatically.
Diffstat (limited to 'interface-definitions/include/interface')
0 files changed, 0 insertions, 0 deletions