Enable secondary IP promotion

From Wiki
Revision as of 16:48, 16 December 2016 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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