当前位置:网站首页>[latest] how to realize hybrid cloud active / standby redundant communication through cloud networking and VPN connection?

[latest] how to realize hybrid cloud active / standby redundant communication through cloud networking and VPN connection?

2022-06-24 01:48:00 TCS-F

As cloud applications continue to expand , More and more customers adopt Cloud networking and VPN Double line redundancy mode Realize two-way communication of hybrid cloud services , The following details how to implement :

When the user business is deployed in the data center under the cloud and on the cloud respectively VPC In the middle of the day , It can be connected through the cloud or VPN Connect to realize the interworking of on cloud and off cloud services , To improve the high availability of the business , You can create cloud networking and VPN Connection service , To configure The two links are the primary and standby links , To achieve redundant communication . This article guides you on how to configure cloud networking and VPN The active and standby links are used to realize on cloud and off cloud service communication .

Business scenario

As shown in the figure below , The user is in VPC and IDC The central government has deployed business , In order to realize the business interaction between the cloud and the cloud , Users need to deploy network connection services to realize business interoperability , For high availability communication , The deployment scheme is as follows :

Prerequisite

  • User local IDC The gateway device has IPsec VPN function , It can also be used as the user side VPN Gateway device , And VPC Side VPN Equipment setup IPsec Tunnel communication .
  • user IDC The side gateway device has been configured with static IP.
  • Data preparation is as follows : Configuration item example value network configuration VPC Information subnet CIDR192.168.1.0/24VPN Gateway public network IP203.xx.xx.82IDC Information subnet CIDR10.0.1.0/24 Gateway public network IP202.xx.xx.5.

Operation process

Operation steps

Step one : To configure IDC Through the cloud network

  1. Sign in Dedicated line access console , Click... On the left navigation bar 【 Physics line 】 Create a physical line .
  2. Click... On the left navigation bar 【 Dedicated gateway 】 Create a dedicated gateway , This example selects cloud networking .
  3. Click cloud networking private line gateway ID Enter details page , stay 【IDC gateway 】 Enter the user in IDC Network segment , for example 10.0.1.0/24.
  4. Sign in Cloud networking console , single click 【 newly build 】 Create an instance of cloud networking .
  5. Sign in Dedicated channel console , single click 【 newly build 】 Create a dedicated channel to connect to the cloud networking dedicated gateway , Configure the channel name here 、 Select cloud networking as the access network , Select the created cloud networking private line gateway 、 Configure the interconnection between Tencent cloud side and user side IP、 Routing method selection BGP Routing, etc. , After the configuration is completed, download the configuration guide and click IDC The device is configured .
  6. take VPC Associate with the dedicated line gateway to the cloud networking instance , That is to say VPC and IDC Networking through the cloud 、 Cloud networking dedicated line gateway for interworking . explain : For more detailed configuration, please refer to IDC Through the cloud network .

Step two : To configure IDC adopt VPN Connect to the cloud

  1. Sign in VPN Gateway console , single click 【 newly build 】 establish VPN gateway , In this example, the associated network selects the private network .
  2. Click... On the left navigation bar 【 Peer gateway 】, Configure the peer gateway ( namely IDC Side VPN The logical object of the gateway ), Fill in IDC Side VPN The gateway's public network IP Address , for example 202.xx.xx.5.
  3. Click... On the left navigation bar 【VPN passageway 】, Please configure SPD Strategy 、IKE、IPsec Other configuration .
  4. stay IDC Configure on the local gateway device VPN Channel information , The configuration here requires and step 3 Medium VPN The channel information is consistent , otherwise VPN The tunnel cannot be connected normally .
  5. stay VPC Configure the next hop in the routing table associated with the communication subnet as VPN gateway 、 The destination is IDC Routing strategy of communication network segment . explain : For more detailed configuration, please refer to :
 If it is 1.0 and 2.0 Version of  VPN  gateway , Please refer to   establish  VPC  To  IDC  The connection of (SPD  Strategy ).
 If it is 3.0 Version of  VPN  gateway , Please refer to   establish  VPC  To  IDC  The connection of ( Routing table )

Step three : Configure network probe

explain : After the above two steps are configured ,VPC Go to IDC There are already two paths , The next hop is cloud networking 、VPN gateway , According to the route default priority : Cloud networking > VPN gateway , Cloud networking is the main path ,VPN The gateway is an alternate path .

To understand the connection quality of the active and standby paths , You need to configure network probes for two paths respectively , Real time monitoring of the delay to the network connection 、 Key indicators such as packet loss rate , To detect the availability of active and standby routes .

  1. Sign in Network probe console .
  2. single click 【 newly build 】, Create a network probe , Fill in the network probe name , Select private network 、 subnet 、 Detection purpose IP, And specify the next hop route at the source , Such as cloud networking .
  3. Please execute again step 2, Specify that the next hop route at the source end is VPN gateway . When the configuration is complete , You can view cloud networking and VPN Network detection delay and packet loss rate of connecting the active and standby paths . explain : For more detailed configuration, please refer to Network detection .

Step four : Configure alarms

In order to detect the abnormal link in time , Configurable alarm strategy for network detection , In order to detect the abnormal link , It can be done by Email and SMS And get the alarm information in time , Help you to forewarn risks in advance .

  1. Log in to... Under cloud monitoring Alarm strategy console .
  2. single click 【 newly build 】, Fill in the strategy name 、 Policy type selection 【 Private networks / Network detection 】, Select a specific network detection instance for the alarm object , Configure triggering conditions, alarm notification and other information , And click 【 complete 】 that will do .

Step five : Switch between active and standby routes

When the network detection abnormal alarm of the main path of cloud networking is received , You need to manually disable the primary route , Switch the flow to VPN Gateway backup route .

  1. Sign in Routing table console .
  2. single click VPC Communication subnet associated routing table ID, Enter the routing details page , single click
Master control

Disable the next hop as the primary route for cloud networking , here VPC Go to IDC Traffic will switch from cloud networking to VPN gateway .

value 11000 Yuan latest user voucher : Get it now

cloudy 11.11 The latest package combination of activities : Click to see


Recommended reading :

原网站

版权声明
本文为[TCS-F]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/11/20211113000546774d.html