The instructions are broadly the same as in the howto. Things to change/add:
1. In the database update, instead of
Code:
mysql> UPDATE server_ips SET ip_number = "server2-ip" WHERE ip_id = 1;
You have to run two queries, each one replacing one of your IPs:
Code:
mysql> UPDATE server_ips SET ip_number = "new_ip_1" WHERE ip_number = "old_ip_1"
mysql> UPDATE server_ips SET ip_number = "new_ip_2" WHERE ip_number = "old_ip_2"
2. When changing bind/apache IP's, you have to replace both of them, so instead of:
Code:
sed -i "s/xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy/g" /etc/apache2/sites-available/* /etc/bind/* /var/cache/bind/* /etc/ispcp/*/working/*
You have to run
Code:
sed -i "s/xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy/g" /etc/apache2/sites-available/* /etc/bind/* /var/cache/bind/* /etc/ispcp/*/working/*
sed -i "s/zzz.zzz.zzz.zzz/ttt.ttt.ttt.ttt/g" /etc/apache2/sites-available/* /etc/bind/* /var/cache/bind/* /etc/ispcp/*/working/*
where xxx.xxx.xxx.xxx = old_ip_1, yyy.yyy.yyy.yyy = new_ip_1, zzz.zzz.zzz.zzz = old_ip_2, ttt.ttt.ttt.ttt = new_ip_2
It's really that simple.