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

Prerequisites

Your VPC is bound to an exclusive resource group. For more information, see Create and use an exclusive resource group for scheduling and Exclusive resource groups for Data Integration.

Background information

You can add a route to connect your exclusive resource group to a data store. If a network connectivity issue still exists after you add the route, fix the issue based on the following guidelines:
  • Check whether the data store resides in a data center or a VPC that is not bound to the exclusive resource group. If so, connect the data store to a VPC that is bound to the exclusive resource group by using Express Connect or Cloud Enterprise Network (CEN). For more information, see Network connection overview.
  • Check whether the data store has a whitelist or the access port is controlled by a security group. If so, make sure that the data store 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 bound to a VPC and click Add VPC Binding.
  4. Find the required resource group and click Custom Route.
  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 Classless Inter-Domain Routing (CIDR) block of the VPC where the vSwitch resides. This ensures that the exclusive resource group can access all data stores 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
    Parameter Description
    Destination Type If your data store is in a VPC, select VPC.
    Destination VPC The region and VPC where the data store resides.
    Note This parameter is displayed only when 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 when you set the Connection Method parameter to Switch.

      If you add a route in this mode, make sure that the required data store is bound to the specified vSwitch. If the required data store 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 where the required data store 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 where the required data store resides.

    Routing By default, the parameter cannot be modified.
  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 bound to a VPC and click Add VPC Binding.
  3. Find the required resource group 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 store is 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 where the required data store 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 where the required data store resides.

    Routing By default, the parameter cannot be modified.
  6. Click Generate Route.