简体   繁体   English

Amazon AWS / EC2-如何将服务器置于同一“专用网络”上

[英]Amazon AWS/EC2 - How to put to servers on same “private network”

I'm new at Amazon AWS/EC2. 我是Amazon AWS / EC2的新手。 Basically, I have two EC2 instances set up and running - 2x t2.medium, Windows 2012 servers, etc. 基本上,我已经设置并运行了两个EC2实例-2x t2.medium,W​​indows 2012服务器等。

Each server has it's own public and private ip addresses from different subnets: 每个服务器都有来自不同子网的自己的公用和专用IP地址:

Server 1: 53.171.139.195/171.30.51.181
Server 2: 53.164.26.68/171.30.59.198

I simply need these servers to be able to communicate with one another on the same private network. 我只需要这些服务器就可以在同一专用网络上相互通信。

I see things like elastic ip's, vpc's. 我看到诸如弹性IP,VPC之类的东西。 Still researching, but I'm not sure what I need. 仍在研究中,但我不确定我需要什么。 Can this be done and what do I need to configure? 可以做到吗,我需要配置什么?

Update: Based on @Bram's response below, I looked at VPC's. 更新:根据下面的@Bram响应,我查看了VPC。 Apparently, a default VPC was created when I started my instances. 显然,启动实例时会创建一个默认的VPC。

171.30.0.0/16

So... Are the on the same subnet by default??? 所以...默认情况下是在同一子网上吗???

You need a Virtual Private Cloud, a VPC. 您需要一个虚拟私有云,一个VPC。 In a VPC you can create private and public subnets and your instances can be added to those subnets as you like. 在VPC中,您可以创建专用和公用子网,并且可以根据需要将实例添加到这些子网中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM