You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/load-balancer/load-balancer-floating-ip.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ author: mbender-ms
6
6
ms.service: load-balancer
7
7
ms.topic: how-to
8
8
ms.workload: infrastructure-services
9
-
ms.date: 12/2/2021
9
+
ms.date: 02/28/2023
10
10
ms.author: mbender
11
-
ms.custom: template-how-to
11
+
ms.custom: template-how-to, engagement-fy23
12
12
---
13
13
14
14
# Azure Load Balancer Floating IP configuration
@@ -17,29 +17,29 @@ Load balancer provides several capabilities for both UDP and TCP applications.
17
17
18
18
## Floating IP
19
19
20
-
Some application scenarios prefer or require the same port to be used by multiple application instances on a single VM in the backend pool. Common examples of port reuse include:
20
+
Some application scenarios prefer or require the use of the same port by multiple application instances on a single VM in the backend pool. Common examples of port reuse include:
21
21
- clustering for high availability
22
22
- network virtual appliances
23
23
- exposing multiple TLS endpoints without re-encryption.
24
24
25
25
If you want to reuse the backend port across multiple rules, you must enable Floating IP in the rule definition.
26
26
27
-
When Floating IP is enabled, Azure changes the IP address mapping to the Frontend IP address of the Load Balancer frontend instead of backend instance's IP. Without Floating IP, Azure exposes the VM instances' IP. Enabling Floating IP changes the IP address mapping to the Frontend IP of the load Balancer to allow for more flexibility. Learn more [here](load-balancer-multivip-overview.md).
27
+
When you enable Floating IP, Azure changes the IP address mapping to the Frontend IP address of the Load Balancer frontend instead of backend instance's IP. Without Floating IP, Azure exposes the VM instances' IP. Enabling Floating IP changes the IP address mapping to the Frontend IP of the load Balancer to allow for more flexibility. Learn more [here](load-balancer-multivip-overview.md).
28
28
29
-
In the diagrams below, you see how IP address mapping works before and after enabling Floating IP:
30
-
:::image type="content" source="media/load-balancer-floating-ip/load-balancer-floating-ip-before.png" alt-text="This diagram shows network traffic through a load balancer before Floating IP is enabled.":::
29
+
In the diagrams, you see how IP address mapping works before and after enabling Floating IP:
30
+
:::image type="content" source="media/load-balancer-floating-ip/load-balancer-floating-ip-before.png" alt-text="This diagram shows network traffic through a load balancer before enabling Floating IP.":::
31
31
32
-
:::image type="content" source="media/load-balancer-floating-ip/load-balancer-floating-ip-after.png" alt-text="This diagram shows network traffic through a load balancer after Floating IP is enabled.":::
32
+
:::image type="content" source="media/load-balancer-floating-ip/load-balancer-floating-ip-after.png" alt-text="This diagram shows network traffic through a load balancer after enabling Floating IP.":::
33
33
34
-
Floating IP can be configured on a Load Balancer rule via the Azure portal, REST API, CLI, PowerShell, or other client. In addition to the rule configuration, you must also configure your virtual machine's Guest OS in order to use Floating IP.
34
+
You configure Floating IP on a Load Balancer rule via the Azure portal, REST API, CLI, PowerShell, or other client. In addition to the rule configuration, you must also configure your virtual machine's Guest OS in order to use Floating IP.
35
35
36
36
## Floating IP Guest OS configuration
37
37
38
-
In order to function, the Guest OS for the virtual machine needs to be configured to receive all traffic bound for the frontend IP and port of the load balancer. To accomplish this requires:
39
-
* a loopback network interface to be added
38
+
In order to function, you configure the Guest OS for the virtual machine to receive all traffic bound for the frontend IP and port of the load balancer. Configuring the VM requires:
39
+
*adding a loopback network interface
40
40
* configuring the loopback with the frontend IP address of the load balancer
41
-
*ensure the system can send/receive packets on interfaces that don't have the IP address assigned to that interface (on Windows, this requires setting interfaces to use the "weak host" model; on Linux this model is normally used by default)
42
-
The host firewall also needs to be open to receiving traffic on the frontend IP port.
41
+
*ensuring the system can send/receive packets on interfaces that don't have the IP address assigned to that interface.Windows systems require setting interfaces to use the "weak host" model. For Linux systems, this model is normally used by default.
42
+
* configuring the host firewall to allow traffic on the frontend IP port.
43
43
44
44
> [!NOTE]
45
45
> The examples below all use IPv4; to use IPv6, substitute "ipv6" for "ipv4". Also note that Floating IP for IPv6 does not work for Internal Load Balancers.
@@ -60,21 +60,21 @@ netsh interface ipv4 show interface
60
60
For the VM NIC (Azure managed), type this command.
61
61
62
62
```console
63
-
netsh interface ipv4 set interface “interfacename” weakhostreceive=enabled
63
+
netsh interface ipv4 set interface "interfacename" weakhostreceive=enabled
64
64
```
65
-
(replace **interfacename** with the name of this interface)
65
+
(replace **"interfacename"** with the name of this interface)
66
66
67
-
For each loopback interface you added, repeat the commands below.
67
+
For each loopback interface you added, repeat these commands:
netsh interface ipv4 set interface floatingipaddress weakhostreceive=enabled weakhostsend=enabled
72
72
```
73
-
(replace **loopbackinterface** with the name of this loopback interface and **floatingip** and **floatingipnetmask** with the appropriate values, e.g. that correspond to the load balancer frontend IP)
73
+
(replace **loopbackinterface** with the name of this loopback interface and **floatingip** and **floatingipnetmask** with the appropriate values that correspond to the load balancer frontend IP)
74
74
75
-
Finally, if firewall is being used on the guest host, ensure a rule set up so the traffic can reach the VM on the appropriate ports.
75
+
Finally, if the guest host uses a firewall, ensure a rule set up so the traffic can reach the VM on the appropriate ports.
76
76
77
-
A full example configuration is below (assuming a load balancer frontend IP configuration of 1.2.3.4 and a load balancing rule for port 80):
77
+
This example configuration assumes a load balancer frontend IP configuration of 1.2.3.4 and a load balancing rule for port 80:
78
78
79
79
```console
80
80
netsh int ipv4 set int "Ethernet" weakhostreceive=enabled
@@ -101,11 +101,11 @@ For each loopback interface, repeat these commands, which assign the floating IP
101
101
```console
102
102
sudo ip addr add floatingip/floatingipnetmask dev lo:0
103
103
```
104
-
(replace **floatingip** and **floatingipnetmask** with the appropriate values, e.g. that correspond to the load balancer frontend IP)
104
+
(replace **floatingip** and **floatingipnetmask** with the appropriate values that correspond to the load balancer frontend IP)
105
105
106
-
Finally, if firewall is being used on the guest host, ensure a rule set up so the traffic can reach the VM on the appropriate ports.
106
+
Finally, if the guest host uses a firewall, ensure a rule set up so the traffic can reach the VM on the appropriate ports.
107
107
108
-
A full example configuration is below (assuming a load balancer frontend IP configuration of 1.2.3.4 and a load balancing rule for port 80). This example also assumes the use of [UFW (Uncomplicated Firewall)](https://www.wikipedia.org/wiki/Uncomplicated_Firewall) in Ubuntu.
108
+
This example configuration assumes a load balancer frontend IP configuration of 1.2.3.4 and a load balancing rule for port 80. This example also assumes the use of [UFW (Uncomplicated Firewall)](https://www.wikipedia.org/wiki/Uncomplicated_Firewall) in Ubuntu.
109
109
110
110
```console
111
111
sudo ip addr add 1.2.3.4/24 dev lo:0
@@ -115,7 +115,7 @@ sudo ufw allow 80/tcp
115
115
116
116
## <aname = "limitations"></a>Limitations
117
117
118
-
-Floating IP isn't currently supported on secondary IP configurations for Load Balancing scenarios. This doesn't apply to Public load balancers with dual-stack configurations or to architectures that utilize a NAT Gateway for outbound connectivity.
118
+
-You can't use Floating IP on secondary IP configurations for Load Balancing scenarios. This limitation doesn't apply to Public load balancers with dual-stack configurations or to architectures that utilize a NAT Gateway for outbound connectivity.
0 commit comments