All Products
Search
Document Center

Use ClassicLink to connect classic networks with Cloud Storage Gateway (CSG)

Last Updated: Sep 17, 2019

1、Overview

CSG is a storage service that integrates your on-premise applications, infrastructure, and data storage with Alibaba Cloud. You can deploy CSG with industry-standard storage protocols and connect the existing storage applications and workloads to CSG. This allows you to directly access the storage and computing services of Alibaba Cloud.

CSG is currently in beta testing. It supports automatic deployment and simplifies the operation process. CSG supports ECS instances in the same VPCs by default. However, a large number of ECS instances created by existing users are deployed in classic networks. This sections describes how to use ClassicLink to connect classic networks with CSG.

The ClassicLink feature provided by VPC connects ECS instances in classic networks with cloud resources in VPCs through internal networks. This feature uses a VPC to connect classic networks with CSG services. This example describes how to configure an instance deployed in a classic network to use CSG services.

2、Configurations

To use CSG in a classic network, you must use ClassicLink to connect a VPC with the classic network. Therefore, you need to specify a VPC and use it to connect the classic network with CSG. The following example uses a Windows instance and Linux instance to describe how to use NFS, SMB (CIFS), and iSCSI services provided by CSG.

2.1、VPC and gateway configuration

As described in Overview, you need to select an existing VPC network. We recommend that you choose a VPC whose CIDR block is 172.16.0.0/12. If you do not have a VPC in the current environment, see Create a VPC to create a VPC.

In the VPC console, select the specified VPC and activate ClassicLink, as shown in the following figure:

n1

After you have configured the VPC, you can configure a gateway to connect with the specified VPC. For more information, see File Gateway and Block Gateway.

After you have created the gateway, you can obtain the IP address of CSG in the CSG console: 172.16.239.102, as shown in the following figure:

n2

2.2、Configure an instance in a classic network

Select the ECS instance that you want to connect with CSG on the ECS instance page, and enable ClassicLink service. You can reference the status of ClassicLink, as shown in the following figure:

n3

You can view the status in the ECS console after configuration, as shown in the following figure:

n4

2.3、Configure security group rules

After you have established a ClassicLink connection, you need to configure a security group to complete the connection between the two networks. Select the security group corresponding to the gateway, as shown in the following figures:

n7

n5

For different protocols including NFS, SMB (CIFS), and iSCSI, you need to open the corresponding ports, as shown in the following table:

ports

The network configuration is completed after you have configured the security group.

2.4、Mount share service to a client

The ECS instance that you have configured is connected with CSG services.

1.You can use the following command to mount the NFS share service to a Linux client. For more information, see Access an NFS share from a client.

mount.nfs 172.16.239.102:/<nfs shared name><linux local folder>

After the configuration is complete, you can use the df -ah command to view the results, as shown in the following figure:

n8

The local directory/mnt/test is connected with OSS. OSS serves as a local folder.

2.You can also mount CIFS share service on a Windows client, as shown in the following figure. For more information, seeAccess an SMB share from a client.

n9

3.For configuring volumes on a Windows or Linux client, see Access volumes.