You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ricardo Pertuz <ri...@kuasar.co> on 2022/01/23 16:25:11 UTC

Connect 2 VPC with private gateway

Hi,

Is there a tutorial or doc with the steps to connect VPCs from different accounts using private gateways?

Regards

Re: Connect 2 VPC with private gateway

Posted by Ricardo Pertuz <ri...@kuasar.co>.
Thanks Wei

I will try it

Regards

________________________________
From: Wei ZHOU <us...@gmail.com>
Sent: Monday, January 24, 2022 3:50:08 AM
To: users <us...@cloudstack.apache.org>
Subject: Re: Connect 2 VPC with private gateway

Hi Ricardo,

You can use site-to-site VPN as Hari suggested. It depends on the StrongVPN
service on both VPC VRs.

Private gateway is another way to connect 2 VPCs. You can do it by
following steps
(1) create 2 VPCs with different cidr
(2) Allocate a vlan and two Ips for the private gateways. for example
10.0.0.1 and 10.0.0.2
(3) Add private gateway on both VPCs (ACL: default_allow)
in VPC 1: 10.0.0.1 with gw 10.0.0.2
in VPC 2: 10.0.0.2 with gw 10.0.0.1
(4) Add static routes in private gateways
in VPC 1: cidr of VPC 2
in VPC 2: cidr of VPC 1

When all are configured, the vms in a VPC should be able to connect to vms
in another VPC.

-Wei

On Sun, 23 Jan 2022 at 17:25, Ricardo Pertuz <ri...@kuasar.co>
wrote:

> Hi,
>
> Is there a tutorial or doc with the steps to connect VPCs from different
> accounts using private gateways?
>
> Regards
>

Re: Connect 2 VPC with private gateway

Posted by Wei ZHOU <us...@gmail.com>.
Hi Ricardo,

You can use site-to-site VPN as Hari suggested. It depends on the StrongVPN
service on both VPC VRs.

Private gateway is another way to connect 2 VPCs. You can do it by
following steps
(1) create 2 VPCs with different cidr
(2) Allocate a vlan and two Ips for the private gateways. for example
10.0.0.1 and 10.0.0.2
(3) Add private gateway on both VPCs (ACL: default_allow)
in VPC 1: 10.0.0.1 with gw 10.0.0.2
in VPC 2: 10.0.0.2 with gw 10.0.0.1
(4) Add static routes in private gateways
in VPC 1: cidr of VPC 2
in VPC 2: cidr of VPC 1

When all are configured, the vms in a VPC should be able to connect to vms
in another VPC.

-Wei

On Sun, 23 Jan 2022 at 17:25, Ricardo Pertuz <ri...@kuasar.co>
wrote:

> Hi,
>
> Is there a tutorial or doc with the steps to connect VPCs from different
> accounts using private gateways?
>
> Regards
>

Re: Connect 2 VPC with private gateway

Posted by Ricardo Pertuz <ri...@kuasar.co>.
Working well, thanks

BR,
________________________________
From: Alireza Eskandari <as...@gmail.com>
Sent: Wednesday, January 26, 2022 12:54:16 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Connect 2 VPC with private gateway

Yes,
You can create a private gateway for each of the VPCs on the same vlan and
same subnet. Set the IP address of the peer private gateway as the gateway
address of the current private gateway and vice versa.

On Mon, Jan 24, 2022 at 11:48 AM Ricardo Pertuz <ri...@kuasar.co>
wrote:

> Thanks for replying Harikrishna 😃.
>
> However I'd like to do it privately using private gateway instead. Is it
> possible?
>
> Regards,
> Ricardo
> ________________________________
> From: Harikrishna Patnala <Ha...@shapeblue.com>
> Sent: Monday, January 24, 2022 1:37:20 AM
> To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: Re: Connect 2 VPC with private gateway
>
> Hi,
>
> You can use the site to site VPN connection, in this case, please check
> this document
> http://docs.cloudstack.apache.org/projects/archived-cloudstack-administration/en/latest/networking/site_to_site_vpn.html
>
> or https://www.shapeblue.com/vpc-to-vpc-vpn-configuration-in-cloudstack/
>
>
> Regards,
> Harikrishna
> ________________________________
> From: Ricardo Pertuz <ri...@kuasar.co>
> Sent: Sunday, January 23, 2022 9:55 PM
> To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: Connect 2 VPC with private gateway
>
> Hi,
>
> Is there a tutorial or doc with the steps to connect VPCs from different
> accounts using private gateways?
>
> Regards
>
>
>
>

Re: Connect 2 VPC with private gateway

Posted by Alireza Eskandari <as...@gmail.com>.
Yes,
You can create a private gateway for each of the VPCs on the same vlan and
same subnet. Set the IP address of the peer private gateway as the gateway
address of the current private gateway and vice versa.

On Mon, Jan 24, 2022 at 11:48 AM Ricardo Pertuz <ri...@kuasar.co>
wrote:

> Thanks for replying Harikrishna 😃.
>
> However I'd like to do it privately using private gateway instead. Is it
> possible?
>
> Regards,
> Ricardo
> ________________________________
> From: Harikrishna Patnala <Ha...@shapeblue.com>
> Sent: Monday, January 24, 2022 1:37:20 AM
> To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: Re: Connect 2 VPC with private gateway
>
> Hi,
>
> You can use the site to site VPN connection, in this case, please check
> this document
> http://docs.cloudstack.apache.org/projects/archived-cloudstack-administration/en/latest/networking/site_to_site_vpn.html
>
> or https://www.shapeblue.com/vpc-to-vpc-vpn-configuration-in-cloudstack/
>
>
> Regards,
> Harikrishna
> ________________________________
> From: Ricardo Pertuz <ri...@kuasar.co>
> Sent: Sunday, January 23, 2022 9:55 PM
> To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: Connect 2 VPC with private gateway
>
> Hi,
>
> Is there a tutorial or doc with the steps to connect VPCs from different
> accounts using private gateways?
>
> Regards
>
>
>
>

Re: Connect 2 VPC with private gateway

Posted by Ricardo Pertuz <ri...@kuasar.co>.
Thanks for replying Harikrishna 😃.

However I'd like to do it privately using private gateway instead. Is it possible?

Regards,
Ricardo
________________________________
From: Harikrishna Patnala <Ha...@shapeblue.com>
Sent: Monday, January 24, 2022 1:37:20 AM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Connect 2 VPC with private gateway

Hi,

You can use the site to site VPN connection, in this case, please check this document http://docs.cloudstack.apache.org/projects/archived-cloudstack-administration/en/latest/networking/site_to_site_vpn.html

or https://www.shapeblue.com/vpc-to-vpc-vpn-configuration-in-cloudstack/


Regards,
Harikrishna
________________________________
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: Sunday, January 23, 2022 9:55 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Connect 2 VPC with private gateway

Hi,

Is there a tutorial or doc with the steps to connect VPCs from different accounts using private gateways?

Regards




Re: Connect 2 VPC with private gateway

Posted by Harikrishna Patnala <Ha...@shapeblue.com>.
Hi,

You can use the site to site VPN connection, in this case, please check this document http://docs.cloudstack.apache.org/projects/archived-cloudstack-administration/en/latest/networking/site_to_site_vpn.html

or https://www.shapeblue.com/vpc-to-vpc-vpn-configuration-in-cloudstack/


Regards,
Harikrishna
________________________________
From: Ricardo Pertuz <ri...@kuasar.co>
Sent: Sunday, January 23, 2022 9:55 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Connect 2 VPC with private gateway

Hi,

Is there a tutorial or doc with the steps to connect VPCs from different accounts using private gateways?

Regards