Do you have a downtime window for this? If yes:
* If the names stay the same (hostnames) just change the ip addresses in /etc/network/interfaces and /etc/hosts on both nodes
* After that recreate the ssh-hostkeys with pvecm updatecerts.
* Change corosync.conf to the new ip-adresses
Please notice as soon as you change the ips, corosync wont have a working ip. If you want to do it without downtime, you should add the new ip-adresses as a Ring1 in corosync.conf (but also add another interface with linknumber 1 in the totem description of the file. With that way, you can change the host ips afterwards to the new ones, corosync switches to its fallback (which is now online) and you dont have a interruption. After that, you should remove Ring1 again an interface-totem linknumber1 after moving the ip frmo Ring1 to Ring0.
It would be best to check the docs on howto edit corosync.