简体   繁体   English

为 AWS EC2 实例执行 DNAT

[英]Performing DNAT for AWS EC2 instance

Is there any way to perform DNAT for AWS EC2 instances?有没有办法为 AWS EC2 实例执行 DNAT? I am trying to allocate one public ip and then associate this ip with any instance under my public su.net.我正在尝试分配一个公共 ip,然后将此 ip 与我的公共 su.net 下的任何实例相关联。 We can perform similar action in VMware's NSX using DNAT rules but don't find it's equivalent in AWS.我们可以使用 DNAT 规则在 VMware 的 NSX 中执行类似的操作,但在 AWS 中找不到它的等价物。

An AWS Elastic IP is a static public IP address that can be moved between any of your EC2 instances. AWS Elastic IP是一个 static 公共 IP 地址,可以在您的任何 EC2 实例之间移动。 AWS is using NAT behind the scenes to make that work. AWS 在幕后使用 NAT 来完成这项工作。

If you want an AWS Elastic IP to point to more than one of your EC2 instances at the same time, you can assign it to an AWS Network Load Balancer .如果您希望 AWS Elastic IP 同时指向多个 EC2 实例,您可以将其分配给AWS Network Load Balancer

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

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