Change Linux Primary IP Address Without Losing Connectivity

You need to change an IP address of an interface on a Linux server without loosing connectivity, so here’s one way: First add a secondary IP address to the interface: ip addr add 192.168.1.10/24 dev eth0 ip addr show eth0 And confirm: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 44:38:39:00:11:aa brd ff:ff:ff:ff:ff:ff inet 192.168.1.5/24 scope global eth0 inet 192.168.1.10/24

Read more