简体   繁体   English

AWS ELB ip地址

[英]AWS ELB ip address

Is there a way to assign ipv4 address to Load Balancer in EC2 , just like we assign Elastic IP address to EC2 instances. 有没有一种方法可以将ipv4地址分配给EC2中的负载均衡器,就像我们将弹性IP地址分配给EC2实例一样。 If not, how can I get the IP address of ELB. 如果没有,我该如何获取ELB的IP地址。 I need to give the ip address of Load Balancer to an external application so that ELB can receive requests.So I don't want the IP address of ELB to be changed often. 我需要将Load Balancer的IP地址提供给外部应用程序,以便ELB可以接收请求。因此,我不希望ELB的IP地址经常更改。

An Application Load Balancer does not have a static IP address. 应用程序负载平衡器没有静态IP地址。 It should always be referenced via DNS Name. 应始终通过DNS名称进行引用。

However, a Network Load Balancer is given a static IP address for each AZ to which it is connected. 但是, 网络负载平衡器会为其连接的每个可用区分配一个静态IP地址。 If a Network Load Balancer is not suitable, then a Network Load Balancer can be placed in front of an Application Load Balancer. 如果网络负载平衡器不合适,则可以将网络负载平衡器放在应用程序负载平衡器的前面。

See: How to assign Elastic IP to Application Load Balancer in AWS? 请参阅: 如何在AWS中将Elastic IP分配给Application Load Balancer? - Stack Overflow - 堆栈溢出

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

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