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
# Deploy a DHCP server in Azure on a virtual machine
16
16
17
+
In this how-to, learn how to deploy a highly available DHCP server in Azure on a virtual machine. This server is used as a target for an on-premises DHCP relay agent to provide dynamic IP address allocation to on-premises clients. Broadcast packets directly from clients to a DHCP Server don't work in an Azure Virtual Network by design.
17
18
18
19
## Prerequisites
19
20
20
-
<!-- Optional: Prerequisites - H2
21
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
21
22
22
-
If included, "Prerequisites" must be the first H2 in the article.
List any items that are needed for the integration,
25
-
such as permissions or software.
25
+
## Create internal load balancer
26
26
27
-
If you need to sign in to a portal to do the quickstart,
28
-
provide instructions and a link.
27
+
In this section, you create an internal load balancer that load balances virtual machines. An internal load balancer is used to load balance traffic inside a virtual network with a private IP address.
29
28
30
-
-->
29
+
During the creation of the load balancer, you configure:
31
30
32
-
## "[verb] * [noun]"
31
+
* Frontend IP address
32
+
* Backend pool
33
+
* Inbound load-balancing rules
33
34
34
-
[Introduce the procedure.]
35
+
1. In the search box at the top of the portal, enter **Load balancer**. Select **Load balancers** in the search results.
35
36
36
-
1. Procedure step
37
-
1. Procedure step
38
-
1. Procedure step
37
+
1. In the **Load balancer** page, select **Create**.
39
38
40
-
<!-- Required: Steps to complete the task - H2
39
+
1. In the **Basics** tab of the **Create load balancer** page, enter, or select the following information:
41
40
42
-
In one or more H2 sections, organize procedures. A section
43
-
contains a major grouping of steps that help the user complete
44
-
a task.
41
+
| Setting | Value |
42
+
| --- | --- |
43
+
|**Project details**||
44
+
| Subscription | Select your subscription. |
45
+
| Resource group | Select **test-rg**. |
46
+
|**Instance details**||
47
+
| Name | Enter **load-balancer**|
48
+
| Region | Select **(US) East US 2**. |
49
+
| SKU | Leave the default **Standard**. |
50
+
| Type | Select **Internal**. |
51
+
| Tier | Leave the default **Regional**. |
45
52
46
-
Begin each section with a brief explanation for context, and
47
-
provide an ordered list of steps to complete the procedure.
53
+
1. Select **Next: Frontend IP configuration** at the bottom of the page.
48
54
49
-
If it applies, provide sections that describe alternative tasks or
50
-
procedures.
55
+
1. In **Frontend IP configuration**, select **+ Add a frontend IP configuration**.
51
56
52
-
-->
57
+
1. Enter **frontend-1** in **Name**.
53
58
54
-
## Next step -or- Related content
59
+
1. Select **subnet-1 (10.0.0.0/24)** in **Subnet**.
55
60
56
-
> [!div class="nextstepaction"]
57
-
> [Next sequential article title](link.md)
61
+
1. In **Assignment**, select **Static**.
58
62
59
-
-or-
63
+
1. In **IP address**, enter **10.0.0.100**.
60
64
61
-
*[Related article title](link.md)
62
-
*[Related article title](link.md)
63
-
*[Related article title](link.md)
65
+
1. Select **Add**.
66
+
67
+
1. Select **Next: Backend pools** at the bottom of the page.
68
+
69
+
1. In the **Backend pools** tab, select **+ Add a backend pool**.
70
+
71
+
1. Enter **backend-pool** for **Name** in **Add backend pool**.
72
+
73
+
1. Select **NIC** or **IP Address** for **Backend Pool Configuration**.
74
+
75
+
1. Select **Save**.
76
+
77
+
1. Select the blue **Review + create** button at the bottom of the page.
78
+
79
+
1. Select **Create**.
80
+
81
+
### Add second frontend to load balancer
82
+
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
+
85
+
1. In the Azure portal, search for and select **Load balancers**.
86
+
87
+
1. Select **load-balancer**.
88
+
89
+
1. In **Settings**, select **Frontend IP configuration**.
90
+
91
+
1. Select **+ Add**.
92
+
93
+
1. Enter or select the following information in **Add frontend IP configuration**:
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
+
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.**
207
+
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.
210
+
211
+
1. Run the following command to enable **weakhostreceive** and **weakhostsend** on the primary network adapter:
212
+
213
+
```cmd
214
+
netsh int ipv4 set int 6 weakhostreceive=enabled weakhostsend=enabled
215
+
```
216
+
217
+
1. Run the following command to enable **weakhostreceive** and **weakhostsend** on the loopback adapter:
218
+
219
+
```cmd
220
+
netsh int ipv4 set int 11 weakhostreceive=enabled weakhostsend=enabled
221
+
```
222
+
223
+
1. Close the bastion connection to **vm-1**.
224
+
225
+
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.
Copy file name to clipboardExpand all lines: includes/virtual-network-create-with-bastion.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ The following procedure creates a virtual network with a resource subnet, an Azu
45
45
| Setting | Value |
46
46
|---|---|
47
47
| Azure Bastion host name | Enter **bastion**. |
48
-
| Azure Bastion public IP address | Select **Create a public IP address**. </br> Enter **public-ip** in Name. </br> Select **OK**. |
48
+
| Azure Bastion public IP address | Select **Create a public IP address**. </br> Enter **public-ip-bastion** in Name. </br> Select **OK**. |
49
49
50
50
:::image type="content" source="./media/virtual-network-create-with-bastion/enable-bastion.png" alt-text="Screenshot of enable bastion host in Create virtual network in the Azure portal.":::
0 commit comments