Add a route

Updated at:
Copy as MD

This topic describes how to add a route to allow an exclusive resource group to access other Virtual Private Cloud (VPC) networks and data center (IDC) networks.

Prerequisites

Ensure that you have bound an exclusive resource group to your Virtual Private Cloud (VPC). For more information, see Use an exclusive resource group for scheduling and Use an exclusive resource group for Data Integration.

Background information

You can add a route for an exclusive resource group to connect to your data sources. If connectivity issues persist after you add the route, consider the following factors:

  • If the exclusive resource group needs to access a data source in an on-premises data center or a data source in a different Alibaba Cloud account, you must first establish a network connection as described in Network Connectivity Solutions. Then, bind the exclusive resource group to the VPC that is connected to the database network.

  • If an IP address whitelist is enabled for your data source or its security group restricts port access, add the IP addresses of the exclusive resource group's elastic network interface (ENI) to the IP address whitelist. For information about which IP addresses to add to the whitelist, see Add an IP Address Whitelist.

  • Ensure the data storage service is running and its service port is accessible.

Usage

Route to another VPC network

  1. Log on to the DataWorks console. In the target region, click Resource Group in the left-side navigation pane to open the resource group list.

  2. Click Network Settings next to the exclusive resource group for scheduling. The VPC Binding tab is displayed by default.

  3. Click Custom Route next to the target resource group.

  4. In the Custom Route dialog box, click Add Route.

    When an exclusive resource group is bound to a vSwitch, a route is automatically added for the resource group. The destination of this route is the CIDR block of the VPC containing the vSwitch. This ensures that the exclusive resource group can access all data sources within the VPC. You can delete this route in the Custom Route dialog box.

  5. In the Add Route dialog box, configure the parameters.

    Parameter

    Description

    Destination Type

    If your data source is in a Virtual Private Cloud (VPC), select VPC.

    Destination VPC

    The region and name of the VPC where the data source is located.

    Note

    This parameter appears only when Destination Type is set to VPC.

    Connection Method

    The method used to connect to the data source. Valid values are vSwitch, Fixed IP Address, and CIDR Block.

    • vSwitch: You can select a vSwitch in the VPC as the route destination, which you specify using the Destination VSwitch parameter.

      Note

      If you set Connection Method to vSwitch, you must specify Destination VSwitch.

      When you add a route by using this method, make sure that the data source you want to connect to resides in the specified vSwitch. If the target data source has multiple instances on different vSwitches, you must add a route for each vSwitch.

    • Fixed IP Address: Enter the Destination IP that the exclusive resource group needs to access.

      The IP address must be a private IP address within the VPC and must be the host address of the target data source.

    • CIDR Block: Enter the Destination CIDR Block that the exclusive resource group needs to access.

      The CIDR block must be a subnet of the VPC's CIDR block and must contain the host address of the target data source.

    Routing

    This parameter is read-only.

  6. Click Generate Route.

Route to an IDC network

  1. In the left-side navigation pane of the DataWorks console, click Resource Groups.

  2. Click Network Settings next to the exclusive resource group for scheduling. The VPC Binding tab is displayed by default.

  3. Click Custom Route next to the target resource group.

  4. In the Custom Route dialog box, click Add Route.

  5. In the Add Route dialog box, configure the parameters.

    Parameter

    Description

    Destination Type

    If your data source is in a data center (IDC) network, select IDC.

    Connection Method

    The method used to connect to the data source. Valid values are Fixed IP Address and CIDR Block.

    • Fixed IP Address: Enter the Fixed IP Address.

      The IP address must be a private IP address within the data center (IDC) and must be the host address of the target data source.

    • CIDR Block: Enter the Destination CIDR Block.

      The CIDR block must be a subnet of the data center (IDC) network and must contain the host address of the target data source.

    Routing

    This parameter is read-only.

  6. Click Generate Route.