Skip to content
  • Beniamino Galvani's avatar
    device: unconditionally reapply IP configuration on link up · 249c802e
    Beniamino Galvani authored and Lubomir Rintel's avatar Lubomir Rintel committed
    Consider the situation in which ipv4.method=auto and there is an
    address configured. Also, the DHCP timeout is long and there is no
    DHCP server. If the link is brought down temporarily, the prefix route
    for the static address is lost and not restored by NM because we
    reapply the IP configuration only when the IP state is DONE.
    
    The same can happen also for IPv6, but in that case also static IPv6
    addresses are lost.
    
    We should always reapply the IP configuration when the link goes up.
    
    (cherry picked from commit d0b16b92)
    (cherry picked from commit 4482ca64)
    249c802e