question

Wimatwork-3081 avatar image
0 Votes"
Wimatwork-3081 asked ChaitanyaNaykodiMSFT-9638 commented

Getting "Multiple address prefixes not supported for GatewaySubnet" when provisioning a VirtualNetworkGateway

I'm configuring a dualstack Virtual Network Gateway for an expressroute setup. (the expressroute peering is already setup and works fine over ipv4/ipv6)

First a created a dual stack Virtual Network, containing an ipv4 /24 and /19 and an ipv6 /48 and /64 range
I've created a "Gateway Subnet" in it, following the instructions, used a /24 for the "subnet address range" and a /64 for the ipv6 range


145760-image.png

Then I try to create the virtual network gateway, using the virtual network containing the GatewaySubnet I created above.

145914-image.png

And it now fails with the MultipleAddressPrefixesNotSupportedForGateWaySubnet message

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"MultipleAddressPrefixesNotSupportedForGateWaySubnet","message":"Multiple address prefixes not supported for GatewaySubnet /subscriptions/9d8df981-xxxx-yyyy-zzzz-17c72dcf9bba/resourceGroups/ExpressRoutePOC-rg/providers/Microsoft.Network/virtualNetworks/ExpressRoutePOC-Prod/subnets/GatewaySubnet."}]}

I can't find any references to this error on google, anyone an idea what and if I'm doing something wrong?

Thanks

azure-vpn-gatewayazure-expressroute
image.png (46.2 KiB)
image.png (54.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

msrini-MSFT avatar image
0 Votes"
msrini-MSFT answered Wimatwork-3081 commented

Hi @Wimatwork-3081 ,

Can you delete the Gateway Subnet and recreate it with IPv4 address only and try again ?

Is there any use case for you to have both IPv4 and IPv6 address space for Gateway Subnet ?

If you still need both stack, then I need to take a deeper look as why this happened for which I need your Subscription ID and the time when you made this call. You can send that info to msrini@microsoft.com.

Let me know if the above suggestion works.

Regards,
Msrini

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @msrini-MSFT, the idea was to do dual-stack everywhere.

But I did already try your suggestion and it doesn't allow me to go further without IPv6 enabled.

It complains with "has IPv6 address" when I have a GatewaySubnet that's IPv4 only ..

146085-image.png

If I go further anyway, the validation fails:

146110-image.png

I will send you a mail with creation time and subscription ID


0 Votes 0 ·
msrini-MSFT avatar image
0 Votes"
msrini-MSFT answered ChaitanyaNaykodiMSFT-9638 commented

@Wimatwork-3081 ,

I see that you have 2 IPv6 address space which caused this issue.

  1. Delete the gateway subnet.

  2. Delete the /64 address space that you created for the Gateway Subnet.

  3. Create a new subnet with the existing IPv6 address space

  4. Create Gateway.

Regards,
Karthik Srinivas



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, but unfortunately, this doesn't work.
Same error
(I also tried this yesterday, I think tried al possible permutations ;-)

0 Votes 0 ·

Hello @Wimatwork-3081, I have made a private comment to your question above. Please have a look.

0 Votes 0 ·