Issues creating a local network gateway

Joel Zemanek 21 Reputation points
2020-11-25T15:15:27.937+00:00

I am trying to create a local network gateway for a VPN. However, when I enter my personal computer's LAN IP Subnet I get an error that says "the prefix must be between 1 and max prefix" What am I doing wrong? Please let me know if you need any more information. 42636-ip-issues.jpg

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,543 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,616 Reputation points Microsoft Employee
    2020-11-25T15:31:27.627+00:00

    Hello @Joel Zemanek ,

    The address space option in the Local Network gateway resource refers to the address ranges for the network that this local network represents and you want to connect to. This should be in in CIDR (Classless inter-domain routing) notation. For example: 192.168.0.0/16.

    The error "the prefix must be between 1 and max prefix" is regarding the CIDR notation where a subnet is identified by a prefix of minimum 1 and maximum 32.

    So in order to create the local network gateway, you need to define the address space in CIDR notation which identifies your local network/subnet as below:
    42628-address-space.jpg

    Please refer below article for more information:
    https://zcusa.951200.xyz/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal#LocalNetworkGateway

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.