Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
3.6 KiB
Step 2: Access OBS
Scenarios
This section describes how to access OBS using a VPN or Direct Connect connection.
Prerequisites
- The VPC subnet associated with the VPN gateway contains the OBS CIDR block.
For details about how to create a VPN connection, see Creating a VPN in the Virtual Private Network User Guide.
- The VPC subnet associated with the Direct Connect gateway contains the OBS CIDR block.
For details about how to enable Direct Connect, see Getting Started in the Direct Connect User Guide.
Procedure
Configure an OBS route from the on-premises data center to the VPN or Direct Connect gateway.
The CIDR block of the VPC endpoint for accessing OBS is a public CIDR block. To access OBS over a VPN or Direct Connect connection, ensure that traffic from your on-premises data center to OBS is directed to the VPN gateway or Direct Connect gateway.
Configure a permanent route at your on-premises data center and specify the Direct Connect or VPN gateway as the next hop for accessing OBS. The following is the example command for configuring such a route:
route -p add Public IP address xxx.xxx.xxx.xxx