Enable secondary IP promotion

From Wiki
Jump to: navigation, search
echo 1 > /proc/sys/net/ipv4/conf/eth0/promote_secondaries

or

sysctl net.ipv4.conf.eth0.promote_secondaries=1

This will allow you to delete the primary IP without losing connectivity.

ip addr del 10.22.30.44/16 dev eth0