Changing IP address

tino

Verified User
Joined
Jan 8, 2004
Messages
92
Hi,

I want to change the IP addresses my DirectAdmin server uses. I've read http://www.directadmin.com/change_ip.txt

But I want to be able to run the old ip's as well as the new ip's on the server for a few weeks...

So now I'm using the "old" ip's, and want to ADD the new ip's. After a few weeks, I want to delete the old ip's.

Is there any easy way this can be done? The server uses 5 different IP's at this moment.

Tino
 
Whether or not you can just add the IP# through the DA control panel depends on whether or not it uses similar network settings; you may need to add it to your serer's network files and restart the server.

Then contact DA to have the new license issued.

Then install the new license on the new IP# and turn off the old IP#.

Jeff
 
OK, I think I have something similar to this.

I have to move a DirectAdmin server from one IP range to another. I can apparently add the new IP range to the server now, but the server is also going to moved to a different location where the old IP range cannot be used.
Is the ipswap.sh file intended for this kind of use as well?

I do know that the license will have to be altered either by some sort of update or a new one completely. I just need to figure out exactly how this is going to go ;)
 
I know this is an old thread, but I thought I would add my solution to help people who are searching in the future.

I recently had to change IP's and I wanted to run both the new IP's and the old IP's while the DNS records were propagating.

My solution is to use iptables to direct all requests to the old IP address to the new IP address via IPTABLES. It is very simple and takes only a second.

Execute:

# iptables -t nat -A PREROUTING -d $OLD_IP -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination $NEW_IP

If you want to save it execute:

# iptables-save > /etc/sysconfig/iptables

This also works if you want to redirect a new IP to the old IP so you can make sure everything works before you run ipswap.sh. Just switch $OLD_IP with $NEW_IP.
 
Back
Top