Direct Admin VPS Movement

iCroc

New member
Joined
Jul 3, 2011
Messages
1
Hello,
I have Direct Admin Installed on my VPS and i need to move this vps to another server but i need to change the IP can any one answer me where's the direct admin control panel configuration file which needed to change the current ip on this Files
 
Don't forget to notify DirectAdmin as they'll need to change their license so you can run your VPS under the new IP#. If the license was supplied by your VPS supplier, they'll need to do this.

Then you can find and run the ipswap.sh script in the /usr/local/directadmin/scripts directory. Look at the script first to see how to run it.

Jeff
 
Hi Jeff,

I'm currently in the same situation that I have to switch to a different IPv4 range within 2 weeks for all my DA servers.

I guess you mean ipswap.sh instead of swap.sh? I can't find a swap.sh in the /scripts/ directory.

After running this script on the main IP address which is also used in the DA license and as eth0 do I still have to change the eth0 IP address myself?

What should I do with the IP addresses used for all the DA user/reseller accounts, can this be done with the same script? I have about 5 IP addresses per server, should I run the script for each old IP with a new IP and change afterwards for example the eth0:1 IP address manually?

Thanks for your help.

Regards, Japz
 
Yes, I meant ipswap.sh. I've corrected my post.

You'll still need to reconfigure your eth0 IP# yourself, as DirectAdmin doesn't know how to manage that and it needs to be up before DirectAdmin starts.

You need to run the script for each IP# you want to change; I'm not sure what you mean by your last paragraph.

If you'e set up all your IP#s/ethernet ports using OS-specific scripts, then you should delete them before running the ipswap script; DirectAdmin doesn't look at those, and you won't want them running on the server once it's moved.

Jeff
 
@scsi:

Original poster wrote:
need to move this vps to another server
I took this to mean that the entire vps container was being moved to another server. Perhaps I'm wrong.

Jeff
 
Yes, I meant ipswap.sh. I've corrected my post.

If you'e set up all your IP#s/ethernet ports using OS-specific scripts, then you should delete them before running the ipswap script; DirectAdmin doesn't look at those, and you won't want them running on the server once it's moved.

Jeff

Ok thanks, it is almost clear to me now except what you mean with OS-specific scripts? Servers are installed with Centos 5.5 and DA with: CSF/LFD.

Regards, Japz
 
For CentOS those would be the network setup in the /etc/sysconfig/network file and the ifcfg-eth* files in the /etc/sysconfig/network-scripts directory.

Only the main IP# should be set up there and of course any private lan as well.

Jeff
 
Back
Top