Help Center> Virtual Private Network> FAQ> Related Operations on the Console> What Are the Precautions for Configuring the Local and Remote Subnets of a VPN Connection?

What Are the Precautions for Configuring the Local and Remote Subnets of a VPN Connection?

  • You can configure up to 5 local subnets. The product of the number of local subnets and the number of remote subnets cannot exceed 255. If 255 is exceeded, consider supernetting the local or remote subnets.
  • The local subnet cannot include the CIDR block of the remote subnet.
  • There are routes pointing to the local subnet in the VPC where the VPN gateway resides.
  • If there are two connections (connection A and connection B) created for a VPN gateway, and the remote subnet of connection A is within that of connection B, when the destination network to be accessed belongs to the overlapped network segment, the connection created first is matched first, regardless of the connection status. (Mask length match is not used for the policy-based VPN.)