Skip to content

Commit 29fe819

Browse files
committed
added content
1 parent fff06f7 commit 29fe819

File tree

1 file changed

+59
-25
lines changed

1 file changed

+59
-25
lines changed

articles/virtual-network/how-to-dhcp-azure.md

Lines changed: 59 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ During the creation of the load balancer, you configure:
7878

7979
1. Select **Create**.
8080

81-
### Add second frontend to load balancer
81+
## Add second frontend to load balancer
8282

8383
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.
8484

@@ -102,7 +102,43 @@ A second frontend is required for the load balancer to provide high availability
102102

103103
1. Select **Add**.
104104

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**. |
141+
| **Health probe** | Select **dhcp-health-probe**. |
106142

107143
[!INCLUDE [create-two-virtual-machines-windows-load-balancer.md](../../includes/create-two-virtual-machines-windows-load-balancer.md)]
108144

@@ -187,45 +223,43 @@ Use the following steps to enable routing between the loopback interface and the
187223
188224
1. Run the following command to list the network interfaces:
189225
190-
```cmd
191-
netsh int ipv4 show int
192-
```
226+
```cmd
227+
netsh int ipv4 show int
228+
```
193229
194-
```output
195-
C:\Users\azureuser>netsh int ipv4 show int
230+
```output
231+
C:\Users\azureuser>netsh int ipv4 show int
196232
197-
Idx Met MTU State Name
198-
--- ---------- ---------- ------------ ---------------------------
199-
1 75 4294967295 connected Loopback Pseudo-Interface 1
200-
6 5 1500 connected Ethernet
201-
11 25 1500 connected Ethernet 3
202-
```
233+
Idx Met MTU State Name
234+
--- ---------- ---------- ------------ ---------------------------
235+
1 75 4294967295 connected Loopback Pseudo-Interface 1
236+
6 5 1500 connected Ethernet
237+
11 25 1500 connected Ethernet 3
238+
```
203239
204-
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**.
205241
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.**
207243
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.
210246
211247
1. Run the following command to enable **weakhostreceive** and **weakhostsend** on the primary network adapter:
212248
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+
```
216252
217253
1. Run the following command to enable **weakhostreceive** and **weakhostsend** on the loopback adapter:
218254
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+
```
222258
223259
1. Close the bastion connection to **vm-1**.
224260
225261
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.
226262
227-
228-
```cmd
229263
## Related content
230264
231265
* [Related article title](link.md)

0 commit comments

Comments
 (0)