Got it

VPC Communication

Created: Nov 29, 2021 08:58:11Latest reply: Nov 29, 2021 09:14:18 402 5 1 0 0
  HiCoins as reward: 0 (problem unresolved)

Hello @feifei_xin


We need to develop a cost-efficient in the cloud.
We created three VPCs(VPC A, VPC B, VPC C), peered VPC A to VPC B, and VPC B to VPC C, 
created a NAT gateway in VPC B, and would like to use the same NAT Gateway for resources within VPC A and VPC C. However, the resources within VPC A and VPC C cannot communicate to the internet through NAT Gateway, but resources in VPC B can communicate. 


please support.

  • x
  • convention:

Featured Answers
feifei_xin
Created Nov 29, 2021 09:14:18

hello, thanks for your question. please check the detail as follows.

In response to your question, we first need to clarify a few concepts.

VPC is a virtual machine private cloud, which is traditionally a data center. There can be multiple subnets in the data center for isolation.
The design of the NAT gateway is to realize that the elastic cloud server in the virtual private cloud (VPC) provides network address translation, so that multiple elastic cloud servers can share the scene of using elastic IP to access the network; (the purpose is to save elastic IP)
The purpose of VPC peering is to enable isolated VPCs to be routed and interoperable to meet the needs of users for the interoperability of different VPC services; (for the interconnection of subnets under the VPC)

According to your description, your scenario requires 3 different VPCs to use the same NAT gateway to access the Internet; according to the characteristics of the 3 functions, it is not applicable.

Recommendation: Create their own NAT gateway for unconnected VPCs.
View more
  • x
  • convention:

vagkaefer
vagkaefer Created Nov 29, 2021 13:49:34 (0) (0)
@feifei_xin, we can configure mupliple SNAT Rules in the same Nat gateway, including different VPCs (need multiples EIPs), can you explain why is not possible to use the 3 VPCs in the same Nat gateway?  
user_4396693
user_4396693 Created Nov 30, 2021 02:35:48 (0) (0)
 
feifei_xin
feifei_xin Reply vagkaefer  Created Nov 30, 2021 06:23:41 (0) (0)
If it is implemented, then the subnet before the VPC is not isolated, which will cause communication abnormalities  
All Answers
olive.zhao
olive.zhao Admin Created Nov 29, 2021 09:02:34

Hello, dear!
It's nice to meet you in the community.
We're working on your problem. Please be patient.
View more
  • x
  • convention:

feifei_xin
feifei_xin Created Nov 29, 2021 09:14:18

hello, thanks for your question. please check the detail as follows.

In response to your question, we first need to clarify a few concepts.

VPC is a virtual machine private cloud, which is traditionally a data center. There can be multiple subnets in the data center for isolation.
The design of the NAT gateway is to realize that the elastic cloud server in the virtual private cloud (VPC) provides network address translation, so that multiple elastic cloud servers can share the scene of using elastic IP to access the network; (the purpose is to save elastic IP)
The purpose of VPC peering is to enable isolated VPCs to be routed and interoperable to meet the needs of users for the interoperability of different VPC services; (for the interconnection of subnets under the VPC)

According to your description, your scenario requires 3 different VPCs to use the same NAT gateway to access the Internet; according to the characteristics of the 3 functions, it is not applicable.

Recommendation: Create their own NAT gateway for unconnected VPCs.
View more
  • x
  • convention:

vagkaefer
vagkaefer Created Nov 29, 2021 13:49:34 (0) (0)
@feifei_xin, we can configure mupliple SNAT Rules in the same Nat gateway, including different VPCs (need multiples EIPs), can you explain why is not possible to use the 3 VPCs in the same Nat gateway?  
user_4396693
user_4396693 Created Nov 30, 2021 02:35:48 (0) (0)
 
feifei_xin
feifei_xin Reply vagkaefer  Created Nov 30, 2021 06:23:41 (0) (0)
If it is implemented, then the subnet before the VPC is not isolated, which will cause communication abnormalities  

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.