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

Sudesh Sharma 46 Reputation points
2020-07-22T06:01:14.15+00:00

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 VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,361 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,122 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sakaldeep Yadav 161 Reputation points MVP
    2020-07-22T11:13:53.233+00:00

    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.


  2. Lasantha - CallCeylon UK Ltd 1 Reputation point
    2022-02-07T11:02:41.577+00:00

    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://learn.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


  3. 2022-05-13T11:14:39.673+00:00

    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