Overview

This section describes how to use a private NAT gateway to enable communication between cloud and on-premises networks.

The following diagram shows how ECSs in a VPC communicate with an on-premises IDC using Direct Connect and a private NAT gateway.

Figure 1 Networking diagram

The following configuration is used as an example.

In the example shown here, the CIDR block of the IDC is 10.0.0.0/24 and the subnet of the transit VPC in the region CN North-Beijing4 is 10.1.0.0/24.

Implementation methods:

  1. Connect the transit VPC to the IDC using Direct Connect (VPC Peering is used in a test environment where Direct Connect is unavailable).
  2. Create a private NAT gateway to connect the service VPC to the transit VPC.

This following figure shows the procedure.

Figure 2 Procedure