question

SudeshSharma-8729 avatar image
0 Votes"
SudeshSharma-8729 asked GitaraniSharmaMSFT-4262 commented

how to define address range (CIDR) for azure subnet?

Hello Guys, I have created azure virtual network. Now I want to create a VPN connection between azure vnet and azure vm. when I am tring to create subnet under virtual network, its asking for IP range unforeunately whenever I am entering any IP its not accepting.I am from india so which range should i used for vpn ponit of site.

azure-virtual-networkazure-vpn-gateway
· 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.

@SudeshSharma-8729

Is the issue resolved or are you still seeing it? Let us know if you need help.

0 Votes 0 ·
sakaldeep avatar image
0 Votes"
sakaldeep answered sakaldeep commented

Hi, you have mentioned, "Now I want to create a VPN connection between azure vnet and azure vm". I am assuming you want to setup VPN to access Azure VM from an on-prem network? Your subnet must be overlapping.

You can try like this.

Address space :10.0.0.0/16
Subnet1: 10.0.1.0/24
Subnet1: 10.0.2.0/24

I hope this will help. It does not help then provide me more details.

· 4
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 for reply. I have tried your suggestion. Unforeunately its giving error. Please Help13403-2020-07-23-6.png


0 Votes 0 ·
2020-07-23-6.png (64.3 KiB)

You are using the wrong CIDR.

If you are using 10.0.0.0/24 address space then use below for subnet.
10.0.0.0/26
10.0.0.64/26
10.0.0.128/26

Let me know if it works for you.

Cheers
Sakaldeep

0 Votes 0 ·

I have tried above address range but again got error.

0 Votes 0 ·
Show more comments
LasanthaCallCeylonUKLtd-8287 avatar image
0 Votes"
LasanthaCallCeylonUKLtd-8287 answered GitaraniSharmaMSFT-4262 commented

I have the same problem. I'm trying to create a VPN gateway and I have the below configuration.

Subnet space is 10.0.0.0/24 Default

When I try to add 10.1.255.0/27 as gateway subnet range ( as per your doc available at https://docs.microsoft.com/en-us/azure/vpn-gateway/tutorial-create-gateway-portal )
It says The specified address space overlaps with subnet 'default' which has a range of '10.0.0.0/24'.

I even tried


10.0.0.0/26
10.0.0.64/26
10.0.0.128/26

But I get the same error

Please let me know you can specify this gateway subnet

Thanks

· 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.

Hello @LasanthaCallCeylonUKLtd-8287 ,

You should be able to create a GatewaySubnet with address range "10.1.255.0/27" when your default subnet is 10.0.0.0/24.
I tried the same config in my lab and it works in both case - if I try to create the GatewaySubnet directly or add the gateway subnet range while creating the VPN gateway:

176778-image.png

176841-image.png

You can also use the below subnet ranges:
10.0.1.0/27 or 10.0.1.0/24
10.0.2.0/24
10.0.3.0/24 and so on..

If you still face issues, could you please let me know your Vnet address range?

Regards,
Gita

0 Votes 0 ·
image.png (69.4 KiB)
image.png (52.5 KiB)
ManuelPfeiferEDVTechniktirol-8518 avatar image
0 Votes"
ManuelPfeiferEDVTechniktirol-8518 answered GitaraniSharmaMSFT-4262 commented

Hello.

I have the same problem. I'm trying to create a VPN gateway and I have the below configuration.

Subnet space is 10.0.0.0/16 - I tried every possible configuration.

Error: The specified address space overlaps with subnet 'subnet1' which has a range of '10.0.0.0/16'

Please let me know what subnet I should use.

Thanks

· 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.

Hello @ManuelPfeiferEDVTechniktirol-8518 ,

Apologies for the delay in response.

Could you please share your Vnet address range and the existing subnet ranges?

Regards,
Gita

0 Votes 0 ·