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/virtual-network/how-to-dhcp-azure.md
+59-25Lines changed: 59 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ During the creation of the load balancer, you configure:
78
78
79
79
1. Select **Create**.
80
80
81
-
###Add second frontend to load balancer
81
+
## Add second frontend to load balancer
82
82
83
83
A second frontend is required for the load balancer to provide high availability for the DHCP server. Use the following steps to add a second frontend to the load balancer.
84
84
@@ -102,7 +102,43 @@ A second frontend is required for the load balancer to provide high availability
102
102
103
103
1. Select **Add**.
104
104
105
-
1. Verify that in **Frontend IP configuration**, you have **frontend-1** and **frontend-2**.
105
+
1. Verify that in **Frontend IP configuration**, you have **frontend-1** and **frontend-2**.
106
+
107
+
## Create load balancer rules
108
+
109
+
The load balancer rules are used to distribute traffic to the virtual machines. Use the following steps to create the load balancer rules.
110
+
111
+
1. In the Azure portal, search for and select **Load balancers**.
112
+
113
+
1. Select **load-balancer**.
114
+
115
+
1. In **Settings**, select **Load balancing rules**.
116
+
117
+
1. Select **+ Add**.
118
+
119
+
1. Enter or select the following information in **Add load balancing rule**:
120
+
121
+
| Setting | Value |
122
+
| --- | --- |
123
+
|**Name**| Enter **lb-rule-1**. |
124
+
|**IP version**| Select **IPv4**. |
125
+
|**Frontend IP address**| Select **frontend-1**. |
126
+
|**Backend pool**| Select **backend-pool**. |
127
+
|**Protocol**| Select **UDP**. |
128
+
|**Port**| Enter **67**. |
129
+
|**Backend port**| Enter **67**. |
130
+
|**Health probe**| Select **Create new**. </br> Enter **dhcp-health-probe** for **Name**. </br> Select **TCP** for **Protocol**. </br> Enter **3389** for **Port**. </br> Enter **67** for **Interval**. </br> Enter **5** for **Unhealthy threshold**. </br> Select **Save**. |
131
+
|**Enable Floating IP**| Select the box. |
132
+
133
+
1. Select **Save**.
134
+
135
+
1. Repeat the previous steps to create the second load balancing rule. Replace the following values with the values for the second frontend:
136
+
137
+
| Setting | Value |
138
+
| --- | --- |
139
+
|**Name**| Enter **lb-rule-2**. |
140
+
|**Frontend IP address**| Select **frontend-2**. |
In this example the network interface connected to the Azure Virtual network is **Ethernet**. The loopback interface that you installed in the previous section is **Ethernet 3**.
240
+
In this example the network interface connected to the Azure Virtual network is **Ethernet**. The loopback interface that you installed in the previous section is **Ethernet 3**.
205
241
206
-
**Make note of the `Idx` number for the primary network adapter and the loopback adapter. In this example the primary network adapter is `6` and the loopback adapter is `11`. You'll need these values for the next steps.**
242
+
**Make note of the `Idx` number for the primary network adapter and the loopback adapter. In this example the primary network adapter is `6` and the loopback adapter is `11`. You'll need these values for the next steps.**
207
243
208
-
> [!CAUTION]
209
-
> Don't confuse the **Loopback Loopback Pseudo-Interface 1** with the **Microsoft Loopback Adapter**. The **Loopback Pseudo-Interface 1** isn't used in this scenario.
244
+
> [!CAUTION]
245
+
> Don't confuse the **Loopback Loopback Pseudo-Interface 1** with the **Microsoft Loopback Adapter**. The **Loopback Pseudo-Interface 1** isn't used in this scenario.
210
246
211
247
1. Run the following command to enable **weakhostreceive** and **weakhostsend** on the primary network adapter:
212
248
213
-
```cmd
214
-
netsh int ipv4 set int 6 weakhostreceive=enabled weakhostsend=enabled
215
-
```
249
+
```cmd
250
+
netsh int ipv4 set int 6 weakhostreceive=enabled weakhostsend=enabled
251
+
```
216
252
217
253
1. Run the following command to enable **weakhostreceive** and **weakhostsend** on the loopback adapter:
218
254
219
-
```cmd
220
-
netsh int ipv4 set int 11 weakhostreceive=enabled weakhostsend=enabled
221
-
```
255
+
```cmd
256
+
netsh int ipv4 set int 11 weakhostreceive=enabled weakhostsend=enabled
257
+
```
222
258
223
259
1. Close the bastion connection to **vm-1**.
224
260
225
261
1. Repeat the previous steps to configure **vm-2**. Replace the IP address of **10.0.0.100** with **10.0.0.200** in the static IP address configuration of the loopback adapter.
0 commit comments