Database Availability Group (DAG) uses an IP address assigned by a DHCP server by default. Please check my previous articles about configuring DAG and points to note if you are not familiar with DAG. You can use the exchange console or the shell to configure the properties of a DAG, including the witness server and directory used by the DAG. The shell enables you to configure the DAG properties that are not available in the console. As an administrator, you can assign a static IP address for the DAG, though it is not a requirement. DAG doesn’t really care as long as it has an IP address and the name of the DAG is resolvable. The DAG name is not used by users or admins anyway. It is only used by the system for internal communication.
To find the current ip address of the DAG, run the command
Get-DatabaseAvailabilityGroup -identity "dagname" | fl *ip*
To configure a static IP address (say 192.168.1.104) for the DAG, run
Set-DatabaseAvailabilityGroup -identity "dagname" -DatabaseAvailabilityGroupIpAddress 192.168.1.104
If you have a DAG that spans multiple subnets (for high availability), you can configure multiple ip addresses for the DAG. To configure multiple ip addresses, run
Set-DatabaseAvailabilityGroup -identity "dagname" -DatabaseAvailabilityGroupIpAddress 192.168.1.104, 192.168.2.104





Manne August 22, 2012 at 9:57 pm
Hi!
Thank you for the post.
If you have servers in multiple sites (hence at least two IP-addresses) – which site should the DNS-record for the “dagname” be pointing to (since you only have one name and two IP-addresses…).
Rajith Enchiparambil September 21, 2012 at 7:02 am
Hi Manne,
Depending on which site owns the site, Exchange will automatically change the IPs back and forth. All you need to do is add both the IPs and Exchange will take care of the rest.
Luke October 17, 2012 at 9:42 am
Usefull Informations….
Rajith Enchiparambil October 18, 2012 at 8:30 am
Thanks Luke.
Devi February 3, 2013 at 9:46 am
HI Rajith,
While changing DAG IP address from dhcp to static in production, we need any downtime ?
Thanks
Devi
Rajith Enchiparambil March 6, 2013 at 8:26 pm
Hi Devi,
No downtime as such is required, although I would encourage you to do it out of hours.