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
+5-38Lines changed: 5 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,40 +30,7 @@ In the diagrams, you see how IP address mapping works before and after enabling
30
30
31
31
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.
32
32
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:
| 1 | FIP1:80 | FIP1:80 (in VM1 and VM2) |
53
-
| 2 | FIP2:80 | 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
-
| 1 |65.52.0.1 |TCP |80 |same as frontend (65.52.0.1) |same as frontend (80) |
60
-
| 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.
67
34
68
35
## Floating IP Guest OS configuration
69
36
@@ -92,15 +59,15 @@ netsh interface ipv4 show interface
92
59
For the VM NIC (Azure managed), type this command.
93
60
94
61
```console
95
-
netsh interface ipv4 set interface "interfacename" weakhostreceive=enabled
62
+
netsh interface ipv4 set interface <interfacename> weakhostreceive=enabled
96
63
```
97
64
(replace **"interfacename"** with the name of this interface)
98
65
99
66
For each loopback interface you added, repeat these commands:
netsh interface ipv4 set interface <loopbackinterfacename> weakhostreceive=enabled weakhostsend=enabled
104
71
```
105
72
(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)
106
73
@@ -131,7 +98,7 @@ ip addr
131
98
For each loopback interface, repeat these commands, which assign the floating IP to the loopback alias:
132
99
133
100
```console
134
-
sudo ip addr add floatingip/floatingipnetmask dev lo:0
101
+
sudo ip addr add <floatingip>/<floatingipnetmask> dev lo:0
135
102
```
136
103
(replace **floatingip** and **floatingipnetmask** with the appropriate values that correspond to the load balancer frontend IP)
0 commit comments