Help Center/ Cloud Application Engine/ Best Practices/ Connecting the Network Through Enterprise Routes
Updated on 2025-06-30 GMT+08:00

Connecting the Network Through Enterprise Routes

CAE allows the CAE environment to access the VPC on the tenant side. This section describes how to use enterprise routes to connect the network after the public network is disabled.

Step 1: Create an Enterprise Route and an Attachment

Create an enterprise router and an attachment to the enterprise router. In this example, vpc-wc is the VPC (network segment: 192.168.0.0/16) to which the CAE environment belongs, and vpc-10 is the VPC on the tenant side (network segment: 10.0.0.0/16).

  1. Go to the Enterprise Router console.
  2. Click Create Enterprise Router. On the displayed page, set the parameters as follows. For details, see Creating an Enterprise Router.

    Table 1 Parameters for creating an enterprise router

    Parameter

    Example Value

    Region

    AP-Singapore

    AZ

    AZ3

    Enterprise Project

    default

    Name

    er-878b

    ASN

    64513

    Default Route Table Association

    Enable

    Default Route Table Propagation

    Enable

    Auto Accept Shared Attachments

    Disable

    Tag

    -

    Description

    -

  3. Click Create Now > Submit.
  4. On the enterprise router page, click er-878b, and click the Attachments tab.
  5. On the Attachments tab, click Create Attachment. On the displayed page, set parameters by referring to Table 2 and Table 3. For details, see Creating a VPC Attachment.

    Table 2 Creating a VPC attachment on the tenant side

    Parameter

    Example Value

    Name

    er-attach-374d

    Attachment Type

    VPC

    Attached Resource

    • VPC: vpc-10
    • Subnet: wtr-test(10.0.1.0/24)

    Auto Add Routes

    Enable

    Advanced Settings-Description

    -

    Advanced Settings-Tag

    -

    Table 3 Creating a VPC attachment in the CAE environment

    Parameter

    Example Value

    Name

    er-attach-f855

    Attachment Type

    VPC

    Attached Resource

    • VPC: vpc-wc
    • Subnet: wtr-test(10.0.1.0/24)

    Auto Add Routes

    Enable

    Advanced Settings-Description

    -

    Advanced Settings-Tag

    -

  6. Click Create Now.

Step 2: Create a NAT Gateway

Buy a public NAT gateway. The VPC is the VPC to which the CAE environment belongs. In this example, it is vpc-wc.

  1. Go to the NAT Gateway console.
  2. Click Buy Public NAT Gateway. On the displayed page, set the parameters as follows. For details, see Buying a Public NAT Gateway.

    Table 4 Parameters for buying a public NAT gateway

    Parameter

    Example Value

    Region

    CN North-Beijing4

    Billing Mode

    Select a billing mode.

    Specifications

    Select public NAT gateway specifications.

    Name

    nat-7a60

    VPC

    vpc-wc

    Subnet

    cae-subnet

    Enterprise Project

    default

    Advanced Settings-Description

    -

    Advanced Settings-Tag

    -

    Required Duration

    Select a duration.

  3. Click Next > Pay Now. After the payment is complete, the public NAT gateway is created.

  4. In the public NAT gateway list, locate the created gateway nat-7a60 and click Configure Rules in the Operation column.
  5. On the SNAT Rules tab, click Add SNAT Rule. In the displayed dialog box, set the parameters as follows. For details, see Adding an SNAT Rule.

    Table 5 Parameters for adding an SNAT rule

    Parameter

    Example Value

    Public NAT Gateway Name

    nat-7a60

    Scenario

    VPC

    CIDR Block

    cae-subnet (192.168.0.0/24)

    Public IP Address Type

    100.95.154.131

    Monitoring

    -

    Description

    -

  6. Click OK.

Step 3: Create an ECS Node on the Tenant Side

The ECS node created on the tenant side belongs to vpc-10. The EIP of the node is 100.93.0.237, and the private IP address is 10.0.0.80.

  1. Go to the ECS console.
  2. Click Buy ECS. On the displayed page, set parameters. For details, see Purchasing an ECS.

    In the Network area, set VPC to the tenant VPC. In this example, the tenant VPC is vpc-10, the EIP of the node is 100.93.0.237, and the private IP address is 10.0.0.80.

  3. Click Submit.

Step 4: Create a Route Table and Routes

Add routes to the route table of the VPC (vpc-wc) to which CAE belongs. 10.0.0.0/16 is the private network segment, and 100.93.0.0/16 is the public network segment.

  1. Go to the Enterprise Router console.
  2. Click the created enterprise router er-878b and click the Route Tables tab.
  3. Click Create Route Table and set the following parameters. For details, see Creating a Route Table.

    Table 6 Parameters for creating a route table

    Parameter

    Example Value

    Name

    rtb-vpc-wc

    Description

    -

    Tag

    -

  4. Click OK.
  5. On the Route Tables page, select the created route table rtb-vpc-wc. On the Routes tab, click Create Route. Set the parameters by referring to Table 7 and Table 8. For details, see Creating a Static Route.

    Table 7 Parameters for creating a route (with an enterprise router as the next hop)

    Parameter

    Example Value

    Destination

    10.0.0.0/16

    Blackhole Route

    Disable

    Attachment Type

    VPC

    Next Hop

    er-878b

    Description

    -

    Table 8 Parameters for creating a route (with a NAT gateway as the next hop)

    Parameter

    Example Value

    Destination

    100.93.0.0/16

    Blackhole Route

    Disable

    Attachment Type

    VPC

    Next Hop

    nat-7a60

    Description

    -

  6. Click OK.

Step 5: Add the Destination Network Address to the CAE Environment

  1. Go to the CAE console.
  2. Choose System Settings.
  3. Find System Networks and click Edit.
  4. Click Add Destination Network Address, select the destination network address with the NAT gateway as the next hop, and click OK to complete the public network route configuration.
  5. Click Add Destination Network Address, select the destination network address with the enterprise router as the next hop, and click OK to complete the private network route configuration.