# Change Server IP Address

**URL:** <https://forum.virtualmin.com/t/change-server-ip-address/47098>\
**Category:** Webmin\
**Created:** [November 4, 2013, 10:45pm UTC](https://forum.virtualmin.com/t/change-server-ip-address/47098 "2013-11-04T22:45:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.kelly](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/p/ea5d25/32.png) [@paul.kelly](https://forum.virtualmin.com/u/paul.kelly)\
**Post date:** [November 4, 2013, 10:45pm UTC](https://forum.virtualmin.com/t/change-server-ip-address/47098/1 "2013-11-04T22:45:11Z")

</div>

My server has 5 IP addresses - one main one (eth0) and 4 other (eth0:1 etc).

I want to swap the main IP address of the server (eth0) to one of the other. Is it as simple as going to networking configuration/networking interfaces/eth0 and editing it (and that of the virtual IP address)?

---

<div class="post-metadata">

**Author:** ![paul.kelly](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/p/ea5d25/32.png) [@paul.kelly](https://forum.virtualmin.com/u/paul.kelly)\
**Post date:** [November 11, 2013, 9:46am UTC](https://forum.virtualmin.com/t/change-server-ip-address/47098/2 "2013-11-11T09:46:38Z")

</div>

Anyone with thoughts or pointers?

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [November 11, 2013, 1:34pm UTC](https://forum.virtualmin.com/t/change-server-ip-address/47098/3 "2013-11-11T13:34:37Z")

</div>

Howdy,

Unfortunately, I’m not really sure.

On one hand, I think about it and think it might work just fine.

On the other hand – eth0 is setup as the default shared IP address, and Virtualmin’s Network Settings (in System Settings -\> Virtualmin Config -\> Network Settings) looks for a particular network interface… and Virtual Servers using private IP’s are associated with a particular network interface too I believe.

I haven’t tried that before – if this is a live server, what you may want to do is test it on a test system, possibly a VirtualBox system, to see if that would work without causing any interruption.

-Eric

---

<div class="post-metadata">

**Author:** ![paul.kelly](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/p/ea5d25/32.png) [@paul.kelly](https://forum.virtualmin.com/u/paul.kelly)\
**Post date:** [November 11, 2013, 10:45pm UTC](https://forum.virtualmin.com/t/change-server-ip-address/47098/4 "2013-11-11T22:45:42Z")

</div>

It worked!

I had to change eth0:1 to a different ip address,  
change eth0 to the one eth0:1 vacated,  
then eth0:1 to the one eth0 was

This swapped the IP addresses around.

After a reboot and a painful delay of a few minutes, after a lot of sweating, all came back up.

Webmin noticed the change of IP address, asking if I wanted to move domains on the original IP (which I did not) and all seems good!

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [November 12, 2013, 4:21am UTC](https://forum.virtualmin.com/t/change-server-ip-address/47098/5 "2013-11-12T04:21:28Z")

</div>

That sounds super – thanks for letting us know how you did it!

-Eric

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 6:14am UTC](https://forum.virtualmin.com/t/change-server-ip-address/47098/6 "2020-04-30T06:14:42Z")

</div>

Closed on April 30, 2020, 6:14am UTC


