Skip to content

Commit 3cafe3e

Browse files
authored
Merge pull request #227755 from mbender-ms/lb-floating-ip-freshness
Load Balancer - Freshness - floating-ip
2 parents 8e7ad60 + 42d0a4c commit 3cafe3e

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

articles/load-balancer/load-balancer-floating-ip.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ author: mbender-ms
66
ms.service: load-balancer
77
ms.topic: how-to
88
ms.workload: infrastructure-services
9-
ms.date: 12/2/2021
9+
ms.date: 02/28/2023
1010
ms.author: mbender
11-
ms.custom: template-how-to
11+
ms.custom: template-how-to, engagement-fy23
1212
---
1313

1414
# Azure Load Balancer Floating IP configuration
@@ -17,29 +17,29 @@ Load balancer provides several capabilities for both UDP and TCP applications.
1717

1818
## Floating IP
1919

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:
2121
- clustering for high availability
2222
- network virtual appliances
2323
- exposing multiple TLS endpoints without re-encryption.
2424

2525
If you want to reuse the backend port across multiple rules, you must enable Floating IP in the rule definition.
2626

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).
2828

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.":::
3131

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.":::
3333

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.
3535

3636
## Floating IP Guest OS configuration
3737

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
4040
* 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.
4343

4444
> [!NOTE]
4545
> 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
6060
For the VM NIC (Azure managed), type this command.
6161

6262
```console
63-
netsh interface ipv4 set interface interfacename weakhostreceive=enabled
63+
netsh interface ipv4 set interface "interfacename" weakhostreceive=enabled
6464
```
65-
(replace **interfacename** with the name of this interface)
65+
(replace **"interfacename"** with the name of this interface)
6666

67-
For each loopback interface you added, repeat the commands below.
67+
For each loopback interface you added, repeat these commands:
6868

6969
```console
70-
netsh interface ipv4 add addr "loopbackinterface" floatingip floatingipnetmask
71-
netsh interface ipv4 set interface "loopbackinterface" weakhostreceive=enabled weakhostsend=enabled
70+
netsh interface ipv4 add addr floatingipaddress floatingip floatingipnetmask
71+
netsh interface ipv4 set interface floatingipaddress weakhostreceive=enabled weakhostsend=enabled
7272
```
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)
7474

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.
7676

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:
7878

7979
```console
8080
netsh int ipv4 set int "Ethernet" weakhostreceive=enabled
@@ -101,11 +101,11 @@ For each loopback interface, repeat these commands, which assign the floating IP
101101
```console
102102
sudo ip addr add floatingip/floatingipnetmask dev lo:0
103103
```
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)
105105

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.
107107

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.
109109

110110
```console
111111
sudo ip addr add 1.2.3.4/24 dev lo:0
@@ -115,7 +115,7 @@ sudo ufw allow 80/tcp
115115

116116
## <a name = "limitations"></a>Limitations
117117

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.
119119

120120
## Next steps
121121

0 commit comments

Comments
 (0)