Hi,
I have a requirement to automatically swap IPs between two Windows 2012 R2 Servers, based on an event. The servers are in same domain.
For example:
Let say, Server A has static IP: 192.168.1.10 and
Server B has static IP: 192.168.1.20.
Event is: When the SQL Server DB on Server A goes down.
Requirement is: When the event occurs, the static IP of Server A should changed to 192.168.1.20 and Static IP of Server B should changed to 192.168.1.10.
I understand, we can achieve this by simple powershell scripting, but I want to know how we can swap the IPs on Active directory ?
Can anyone put light on this ?