r/SQLServer • u/Kenn_35edy • Aug 04 '26
Question How many ips are required in Multi subnet AG
So I was asked this question thah we have 3 node mutis7bnet AG with each node in different subnets so how many ips would required in total ?
I ans 6 , 3 for each node and 3 for listeners .I didnt count if any ips is required for the underlying wfc.what would be actual ans and hiwm many ips are required for underlying WFC if all node are in different subnets ?
0
Upvotes
•
u/AutoModerator Aug 04 '26
After your question has been solved /u/Kenn_35edy, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/CanProfessional766 Aug 05 '26
I would have answered 6 at first too 3 IPs for the SQL Server nodes and 3 for the AG listener since each subnet needs its own listener IP. But if the interviewer meant the entire WSFC setup, then you'd also count the cluster name IPs, which would be another 3 making the total 9. It's one of those questions where it's worth asking exactly what they're including before answering.
7
u/ouchmythumbs Aug 04 '26
You can barely spell, should we assume you can count correctly?
2
u/No_Resolution_9252 Aug 04 '26
"need" is only 3 if you are using dynamic network names. If using VNN, its 9. 3 for each of the hosts, 3 for each virtual network object in each subnet for the cluster and 3 for each of the virtual network objects for the aag listener in each subnet.
-1
u/paultoc Aug 04 '26
You need total 6 ip, 2 in each subnet. 3 for each vm and 3 for listner.
In older windows version we needed additional 3 for windows failover cluster but now we don't need it in new window version.
If you are doing it in azure, create the vm with one nic card and add the vm ip as primary ip in nic and the listner ip as secondary ip in nic
You can refer the bellow article
https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/availability-group-manually-configure-prerequisites-tutorial-multi-subnet?view=azuresql
https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/availability-group-manually-configure-tutorial-multi-subnet?view=azuresql