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
+38-34Lines changed: 38 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,28 +52,30 @@ For each VM in the backend pool, run the following commands at a Windows Command
52
52
53
53
1. To get the list of interface names you have on your VM, enter this command:
54
54
55
-
```console
56
-
netsh interface ipv4 show interface
57
-
```
58
-
1. For the VM NIC (Azure managed), enter the following command after replacing **interface-name** with the name of the interface you want to use:
59
-
60
-
```console
61
-
netsh interface ipv4 set interface <interface-name> weakhostreceive=enabled
62
-
```
63
-
1. For each loopback interface you added, enter these commands after replacing **loopback-interface-name** with the name of the loopback interface and **floating-IP** and **floating-IPnetmask** with the appropriate values that correspond to the load balancer frontend IP:
netsh interface ipv4 set interface <loopback-interface-name> weakhostreceive=enabled weakhostsend=enabled
68
-
```
69
-
1. Finally, if the guest host uses a firewall, ensure a rule set up so the traffic can reach the VM on the appropriate ports. This example configuration assumes a load balancer frontend IP configuration of 1.2.3.4 and a load balancing rule for port 80:
70
-
71
-
```console
72
-
netsh int ipv4 set int "Ethernet" weakhostreceive=enabled
73
-
netsh int ipv4 add addr "Loopback Pseudo-Interface 1" 1.2.3.4 255.255.255.0
74
-
netsh int ipv4 set int "Loopback Pseudo-Interface 1" weakhostreceive=enabled weakhostsend=enabled
2. For the VM NIC (Azure managed), enter the following command after replacing **interface-name** with the name of the interface you want to use:
59
+
60
+
```console
61
+
netsh interface ipv4 set interface <interface-name> weakhostreceive=enabled
62
+
```
63
+
64
+
3. For each loopback interface you added, enter these commands after replacing **loopback-interface-name** with the name of the loopback interface and **floating-IP** and **floating-IPnetmask** with the appropriate values that correspond to the load balancer frontend IP:
netsh interface ipv4 set interface <loopback-interface-name> weakhostreceive=enabled weakhostsend=enabled
69
+
```
70
+
71
+
4. Finally, if the guest host uses a firewall, ensure a rule set up so the traffic can reach the VM on the appropriate ports. This example configuration assumes a load balancer frontend IP configuration of 1.2.3.4 and a load balancing rule for port 80:
72
+
73
+
```console
74
+
netsh int ipv4 set int "Ethernet" weakhostreceive=enabled
75
+
netsh int ipv4 add addr "Loopback Pseudo-Interface 1" 1.2.3.4 255.255.255.0
76
+
netsh int ipv4 set int "Loopback Pseudo-Interface 1" weakhostreceive=enabled weakhostsend=enabled
@@ -85,20 +87,22 @@ For each VM in the backend pool, run the following commands via an SSH session.
85
87
86
88
1. To get the list of interface names you have on your VM, type this command:
87
89
88
-
```console
89
-
ip addr
90
-
```
91
-
1. For each loopback interface you added, enter these commands after replacing **loopback-interface-name** with the name of the loopback interface and **floating-IP** and **floating-IPnetmask** with the appropriate values that correspond to the load balancer frontend IP:
90
+
```console
91
+
ip addr
92
+
```
92
93
93
-
```console
94
-
sudo ip addr add <floating-IP>/<floating-IPnetmask> dev lo:0
95
-
```
96
-
1. Finally, if the guest host uses a firewall, ensure a rule set up so the traffic can reach the VM on the appropriate ports. This example configuration assumes a load balancer frontend IP configuration of 1.2.3.4, a load balancing rule for port 80, and the use of [UFW (Uncomplicated Firewall)](https://www.wikipedia.org/wiki/Uncomplicated_Firewall) in Ubuntu.
94
+
2. For each loopback interface you added, enter these commands after replacing **loopback-interface-name** with the name of the loopback interface and **floating-IP** and **floating-IPnetmask** with the appropriate values that correspond to the load balancer frontend IP:
97
95
98
-
```console
99
-
sudo ip addr add 1.2.3.4/24 dev lo:0
100
-
sudo ufw allow 80/tcp
101
-
```
96
+
```console
97
+
sudo ip addr add <floating-IP>/<floating-IPnetmask> dev lo:0
98
+
```
99
+
100
+
3. Finally, if the guest host uses a firewall, ensure a rule set up so the traffic can reach the VM on the appropriate ports. This example configuration assumes a load balancer frontend IP configuration of 1.2.3.4, a load balancing rule for port 80, and the use of [UFW (Uncomplicated Firewall)](https://www.wikipedia.org/wiki/Uncomplicated_Firewall) in Ubuntu.
0 commit comments