The simplest way to accomplish this is to export the specific keys containing the values (ip and SNM) from both machines. Then edit then .reg file you have just created, it?s ASCII text. It is as simple as cut and paste. When you have completed that, type REGEDIT /S filename.REG at they c prompt or you can then import them by hand.
Be sure you have a backup copy and a copy for editing.
I understand your need for simplifying this process to use time and time again, however, creating a script to add these values will be not only convoluted but time consuming. Writing and maintaining it would involve maintaining a text file of IP addresses a step you will have accomplished in the previous paragraph. If you were to create a script, you will need to specify each Hkey string and value. I believe export/import is a less time consuming safer solution to your problem.
You will not have any problem with MACs.