Skip to content

Commit 599319b

Browse files
authored
Merge pull request #294551 from brianlehr/patch-79
Update load-balancer-floating-ip.md
2 parents 955bb53 + 4849f70 commit 599319b

File tree

1 file changed

+5
-38
lines changed

1 file changed

+5
-38
lines changed

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

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -30,40 +30,7 @@ In the diagrams, you see how IP address mapping works before and after enabling
3030

3131
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.
3232

33-
:::image type="content" source="media/load-balancer-floating-ip/load-balancer-multivip-dsr.png" alt-text="Diagram of load balancer traffic for multiple frontend IPs with floating IP.":::
34-
35-
For this scenario, every VM in the backend pool has three network interfaces:
36-
37-
* Backend IP: a Virtual NIC associated with the VM (IP configuration of Azure's NIC resource).
38-
* Frontend 1 (FIP1): a loopback interface within guest OS that is configured with IP address of FIP1.
39-
* Frontend 2 (FIP2): a loopback interface within guest OS that is configured with IP address of FIP2.
40-
41-
Let's assume the same frontend configuration as in the previous scenario:
42-
43-
| Frontend | IP address | protocol | port |
44-
| --- | --- | --- | --- |
45-
| ![green frontend](./media/load-balancer-multivip-overview/load-balancer-rule-green.png) 1 |65.52.0.1 |TCP |80 |
46-
| ![purple frontend](./media/load-balancer-multivip-overview/load-balancer-rule-purple.png) 2 |*65.52.0.2* |TCP |80 |
47-
48-
We define two floating IP rules:
49-
50-
| Rule | Frontend | Map to backend pool |
51-
| --- | --- | --- |
52-
| 1 |![green rule](./media/load-balancer-multivip-overview/load-balancer-rule-green.png) FIP1:80 |![green backend](./media/load-balancer-multivip-overview/load-balancer-rule-green.png) FIP1:80 (in VM1 and VM2) |
53-
| 2 |![purple rule](./media/load-balancer-multivip-overview/load-balancer-rule-purple.png) FIP2:80 |![purple backend](./media/load-balancer-multivip-overview/load-balancer-rule-purple.png) FIP2:80 (in VM1 and VM2) |
54-
55-
The following table shows the complete mapping in the load balancer:
56-
57-
| Rule | Frontend IP address | protocol | port | Destination | port |
58-
| --- | --- | --- | --- | --- | --- |
59-
| ![green rule](./media/load-balancer-multivip-overview/load-balancer-rule-green.png) 1 |65.52.0.1 |TCP |80 |same as frontend (65.52.0.1) |same as frontend (80) |
60-
| ![purple rule](./media/load-balancer-multivip-overview/load-balancer-rule-purple.png) 2 |65.52.0.2 |TCP |80 |same as frontend (65.52.0.2) |same as frontend (80) |
61-
62-
The destination of the inbound flow is now the frontend IP address on the loopback interface in the VM. Each rule must produce a flow with a unique combination of destination IP address and destination port. Port reuse is possible on the same VM by varying the destination IP address to the frontend IP address of the flow. Your service is exposed to the load balancer by binding it to the frontend’s IP address and port of the respective loopback interface.
63-
64-
You notice the destination port doesn't change in the example. In floating IP scenarios, Azure Load Balancer also supports defining a load balancing rule to change the backend destination port and to make it different from the frontend destination port.
65-
66-
The Floating IP rule type is the foundation of several load balancer configuration patterns. One example that is currently available is the [Configure one or more Always On availability group listeners](/azure/azure-sql/virtual-machines/windows/availability-group-listener-powershell-configure) configuration. Over time, we'll document more of these scenarios. For more detailed information on the specific Guest OS configurations required to enable Floating IP, please refer to [Azure Load Balancer Floating IP configuration](load-balancer-floating-ip.md) in the next section.
33+
The Floating IP rule type is the foundation of several load balancer configuration patterns. One example that is currently available is the [Configure one or more Always On availability group listeners](/azure/azure-sql/virtual-machines/windows/availability-group-listener-powershell-configure) configuration. Over time, we'll document more of these scenarios.
6734

6835
## Floating IP Guest OS configuration
6936

@@ -92,15 +59,15 @@ netsh interface ipv4 show interface
9259
For the VM NIC (Azure managed), type this command.
9360

9461
```console
95-
netsh interface ipv4 set interface "interfacename" weakhostreceive=enabled
62+
netsh interface ipv4 set interface <interfacename> weakhostreceive=enabled
9663
```
9764
(replace **"interfacename"** with the name of this interface)
9865

9966
For each loopback interface you added, repeat these commands:
10067

10168
```console
102-
netsh interface ipv4 add addr "loopbackinterfacename" floatingip floatingipnetmask
103-
netsh interface ipv4 set interface "loopbackinterfacename" weakhostreceive=enabled weakhostsend=enabled
69+
netsh interface ipv4 add addr <loopbackinterfacename> floatingip floatingipnetmask
70+
netsh interface ipv4 set interface <loopbackinterfacename> weakhostreceive=enabled weakhostsend=enabled
10471
```
10572
(replace **loopbackinterfacename** with the name of this loopback interface and **floatingip** and **floatingipnetmask** with the appropriate values that correspond to the load balancer frontend IP)
10673

@@ -131,7 +98,7 @@ ip addr
13198
For each loopback interface, repeat these commands, which assign the floating IP to the loopback alias:
13299

133100
```console
134-
sudo ip addr add floatingip/floatingipnetmask dev lo:0
101+
sudo ip addr add <floatingip>/<floatingipnetmask> dev lo:0
135102
```
136103
(replace **floatingip** and **floatingipnetmask** with the appropriate values that correspond to the load balancer frontend IP)
137104

0 commit comments

Comments
 (0)