Got it

Intra VPC Communication & VPC Peering - Step by step procedure Highlighted

Latest reply: Dec 26, 2021 04:47:05 807 10 10 0 1

 Dear Fellow members,

Good Day, today I am going to share Intra VPC communication and Inter VPC (in the same region) with step by step procedure and create VPC Peering to establish communication between two VPCs with the testing procedure.  

VPC


Task List

We are going to verify the following network service functions

Task 1: Verify that two ECSs in a VPC can communicate with each other by default.
Task 2: Verify that the ECS that has an EIP bound can access the Internet.
Task 3: Create a VPC peering connection to enable communication between ECSs in different VPCs of the same region.

 VPC 1

VPC Peering

It enables two VPCs in the same region to communicate with each other using private IP.

VPCs of separate accounts in the same region can be communicated using VPC Peering

VPC 2


Intra VPC communication

Communication within IP pools of VPC is being carried out using a local routing table.


Step-by-Step Procedure

Starting with Task 1 then Task 2 & 3

Step 01: Create VPC in any region (let say Hong Kong) as VPC-1

Step 02: Select Virtual Private Network from Service List > Network


HW VPC



Step 03: Then create another VPC in the same region as VPC-02

IP VPC 

Step 04: Buy Three Linux ECSs, two ECSs in VPC-01 and one ECS in VPC-02

Step 05: Select Elastic Cloud Server from Service List > Computing

Step 06: Create ECS resources as demonstrated in the article (https://forum.huawei.com/enterprise/en/an-in-depth-guide-to-building-network-ecs-on-huawei-cloud/thread/706775-893 )

HW cloud region


Now we created 2*ECS in our first VPC

ECS


Step 07: Repeat Step 6 to buy an ECS named ecs-HK-0003 in the Second VPC

3 ecs


Testing Communication – Intra VPC

  • Start with Logging in using Remote Login option. It gives a web-based Console of Linux.

 remote

 

  •  Now we can see SUCCESSFUL Ping to ECS-2 IP in the same VPC. [Task 1 done]

cli


 

  • But NO PING to INTERNET (as ping to 8.8.8.8 is not reachable)

ping

 

Step 08: Buy an EIP (Elastic IP) and Bind it.

 eip 

  •  Now PING to INTERNET (as ping to 8.8.8.8 is reachable) [Task 2 successful]

internet


Step 09: Now make VPC Peering by clicking Create VPC Peering Connection in Network Console

VPC perr 

Step 10a: Click VPC Peering in Network Console > VPC Peering and add

Name, select Local VPC, Account, Peer Project & Peer VPC

peering


Step 10b: Add routes in Network Console


vpcc 

Step 11: Add routing entry for Peer VPC (here it is 192.168.0.0/16), by selecting Next Hop Type as VPC Peering Connection and Next Hop as VPC Peering name

peer 

Step 12: Add routing entry for other VPC (here it is 192.168.0.0/16),

ip

  

Testing Communication – Inter VPC (Same region)

-          Start with Logging in using Remote Login and Now able to PING ECS on other VPC

peer ping

Ending Remarks

This post presents communication for VPCs, including verifying that two ECSs in a Virtual Private Cloud (VPC) can communicate with each other by default enabling Internet access after binding an EIP to the ECS. Also creating a VPC peering connection to enable ECSs in different VPCs in the same region to communicate with each other by step-by-step structured procedures.

 

 

The post is synchronized to: Author groupBAZ's Author Collection

  • x
  • convention:

Sirajs
Created Nov 25, 2021 17:53:01

thanks for sharing
View more
  • x
  • convention:

BAZ
BAZ Created Nov 25, 2021 19:17:16 (0) (0)
Welcome dear  
zaheernew
MVE Author Created Nov 26, 2021 04:30:05

Highly recommended post
View more
  • x
  • convention:

faysalji
Moderator Author Created Nov 26, 2021 06:02:48

The step by step procedure guide is very useful, thank you!
View more
  • x
  • convention:

Dia0205
Created Nov 26, 2021 06:20:56

Thanks for sharing
View more
  • x
  • convention:

Saqib123
Moderator Created Nov 26, 2021 16:44:15

thanks for sharing
View more
  • x
  • convention:

VinceD
Moderator Created Nov 30, 2021 09:26:19

interesting article.
View more
  • x
  • convention:

VinceD
VinceD Created Nov 30, 2021 09:26:35 (0) (0)
 
hemin88
Moderator Author Created Dec 25, 2021 12:34:38

Interesting, thanks for sharing
View more
  • x
  • convention:

NTan33
Created Dec 26, 2021 04:47:05

Excellent walkthrough there.
View more
  • x
  • convention:

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.