Skip to content

Commit 19b9e68

Browse files
committed
FIX NUMBERING
1 parent 3e3dd84 commit 19b9e68

File tree

1 file changed

+38
-34
lines changed

1 file changed

+38
-34
lines changed

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

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,30 @@ For each VM in the backend pool, run the following commands at a Windows Command
5252

5353
1. To get the list of interface names you have on your VM, enter this command:
5454

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:
64-
65-
```console
66-
netsh interface ipv4 add addr <loopback-interface-name> <floating-IP> <floating-IPnetmask>
67-
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
75-
netsh advfirewall firewall add rule name="http" protocol=TCP localport=80 dir=in action=allow enable=yes
76-
```
55+
```console
56+
netsh interface ipv4 show interface
57+
```
58+
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:
65+
66+
```console
67+
netsh interface ipv4 add addr <loopback-interface-name> <floating-IP> <floating-IPnetmask>
68+
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
77+
netsh advfirewall firewall add rule name="http" protocol=TCP localport=80 dir=in action=allow enable=yes
78+
```
7779
</details>
7880

7981
### Ubuntu
@@ -85,20 +87,22 @@ For each VM in the backend pool, run the following commands via an SSH session.
8587

8688
1. To get the list of interface names you have on your VM, type this command:
8789

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+
```
9293

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

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.
101+
102+
```console
103+
sudo ip addr add 1.2.3.4/24 dev lo:0
104+
sudo ufw allow 80/tcp
105+
```
102106
</details>
103107

104108
## <a name = "limitations"></a>Limitations

0 commit comments

Comments
 (0)