This topic describes how to add a route to a virtual private cloud (VPC) or a data center.

Prerequisites

Your VPC is associated with an exclusive resource group. For more information, see Create and use an exclusive resource group for scheduling and Create and use an exclusive resource group for Data Integration.

Background information

You can add a route to connect your exclusive resource group to a data source. If a network connectivity issue still exists after you add the route, fix the issue based on the following guidelines:
  • If you use an exclusive resource group for Data Integration to access a data source in a data center or access a data source across accounts, you must associate the exclusive resource group with the VPC to which the data source is connected. For more information, see Select a network connectivity solution.
  • Check whether the data source has a whitelist or the access port is controlled by a security group. If so, make sure that the data source can be accessed from the Elastic Network Interface (ENI) IP address of the exclusive resource group.
  • Make sure that Object Storage Service (OSS) and the required service port are normal.

Add a route to a VPC

  1. Log on to the DataWorks console.
  2. In the left-side navigation pane, click Resource Groups.
  3. Find the required exclusive resource group that is associated with a VPC and click Network Settings in the Actions column.
  4. Find the VPC to which you want to add a route, click Custom Route in the Actions column.
  5. In the Custom Route panel, click Add Route.
    If the exclusive resource group is bound to a vSwitch, the system adds a route for the resource group by default. The destination of this route is the CIDR block of the VPC where the vSwitch resides. This ensures that the exclusive resource group can access all data sources in this VPC. You can delete this route in the Custom Route panel.
  6. In the Add Route dialog box, set the parameters as required.
    Add Route dialog box
    Parameter Description
    Destination Type If your data source resides in a VPC, select VPC.
    Destination VPC The region and name of the VPC where the data source is deployed.
    Note This parameter is displayed only if the Destination Type parameter is set to VPC.
    Connection Method Valid values: Switch, Fixed IP Address, and CIDR Block.
    • Switch: You can select a destination vSwitch from the Destination VSwitch drop-down list.
      Note You must set the Destination VSwitch parameter only if you set the Connection Method parameter to Switch.

      If you add a route in this mode, make sure that the required data source is bound to the specified vSwitch. If the required data source resides on multiple ECS instances that are bound to different vSwitches, add a route to each vSwitch.

    • Fixed IP Address: You can enter a fixed IP address as the destination of the route.

      You must enter the IP address of the ECS instance on which the data source resides in the destination VPC.

    • CIDR Block: You can enter a CIDR block as the destination of the route.

      You must enter a subset of the CIDR block of the destination VPC, which contains the IP address of the ECS instance on which the required data source resides.

    Routing By default, the value cannot be changed.
  7. Click Generate Route.

Add a route to a data center

  1. In the left-side navigation pane of the DataWorks console, click Resource Groups.
  2. Find the required exclusive resource group that is associated with a VPC and click Network Settings in the Actions column.
  3. Find the VPC to which you want to add a route and click Custom Route.
  4. In the Custom Route panel, click Add Route.
  5. In the Add Route dialog box, set the parameters as required.
    IDC
    Parameter Description
    Destination Type If the data source resides in a data center, select IDC.
    Connection Method Valid values: Fixed IP Address and CIDR Block.
    • Fixed IP Address: You can enter a fixed IP address as the destination of the route.

      You must enter the IP address of the host on which the required data source resides in the destination data center.

    • CIDR Block: You can enter a CIDR block as the destination of the route.

      You must enter a subset of the CIDR block of the destination data center, which contains the IP address of the host on which the required data source resides.

    Routing By default, the value cannot be changed.
  6. Click Generate Route.