DirectAdmin Main IP Change

Do please make a backup of all the files mentioned here, so that if anything go 

wrong on the process we could safely undo the changes.


1: edit  /etc/sysconfig/network-scripts/ifcfg-eth0  and replace the old main IP with  new IP.  // assuming eth0 as the primary Device

2: connect the server  through LAN IP or via KVM and then restart the eth0 device

>> ifdown eth0

>> ifup eth0

3: Restart IP service

>> /etc/init.d/startips restart


4: execute IPswap command

/usr/local/directadmin/scripts/ old IP new IP          //This will replace all the old IP entries with new1


5: Update Licence

>>  /usr/local/directadmin/scripts/ uid lid//uid and lid can be found in “/usr/local/directadmin/scripts/setup.txt”


And restart all the services in server.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s