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/network-watcher/diagnose-communication-problem-between-networks.md
+9-13Lines changed: 9 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: halkazwini
7
7
ms.service: network-watcher
8
8
ms.topic: tutorial
9
9
ms.workload: infrastructure-services
10
-
ms.date: 02/23/2023
10
+
ms.date: 02/28/2023
11
11
ms.author: halkazwini
12
12
ms.custom: template-tutorial, engagement-fy23
13
13
# Customer intent: I need to determine why resources in a virtual network can't communicate with resources in a different virtual network over a VPN connection.
Azure VPN gateway is a type of virtual network gateway that you can use to send encrypted traffic between an Azure virtual network and your on-premises locations over the public internet. You can also use VPN gateway to send encrypted traffic between Azure virtual networks over the Microsoft network. A VPN gateway allows you to create multiple connections to on-premises VPN devices and Azure VPN gateways. For more information about the number of connections that you can create with each VPN gateway SKU, see [Gateway SKUs](../../articles/vpn-gateway/vpn-gateway-about-vpngateways.md#gwsku). Whenever you need to troubleshoot an issue with a VPN gateway or one of its connections, you can use Azure Network Watcher VPN troubleshoot to help you checking the VPN gateway or its connections to find and resolve the problem in easy and simple steps.
19
19
20
-
This tutorial helps you connect two virtual networks via VPN gateways using VNet-to-VNet connections and use Network Watcher VPN troubleshoot capability to diagnose and troubleshoot a connectivity issue that's preventing the two virtual networks from communicating with each other. Once you find the issue and resolve it, you check the connectivity between the two virtual networks to verify the problem was resolved.
20
+
This tutorial helps you use Azure Network Watcher [VPN troubleshoot](network-watcher-troubleshoot-overview.md) capability to diagnose and troubleshoot a connectivity issue that's preventing two virtual networks from communicating with each other. These two virtual networks are connected via VPN gateways using VNet-to-VNet connections.
21
21
22
-
In this tutorial, you learn how to:
22
+
You learn how to:
23
23
24
24
> [!div class="checklist"]
25
25
> * Create virtual networks
@@ -31,7 +31,7 @@ In this tutorial, you learn how to:
31
31
32
32
## Prerequisites
33
33
34
-
- An Azure account with an active subscription. create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
34
+
- An Azure account with an active subscription. If you don't have one, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
35
35
36
36
## Sign in to Azure
37
37
@@ -43,7 +43,7 @@ In this section, you create two virtual networks that you connect later using vi
43
43
44
44
### Create first virtual network
45
45
46
-
1. In the search box at the top of the portal, enter *virtual network*. Select **Virtual networks** in the search results.
46
+
1. In the search box at the top of the portal, enter *virtual networks*. Select **Virtual networks** in the search results.
47
47
48
48
:::image type="content" source="./media/diagnose-communication-problem-between-networks/virtual-network-azure-portal.png" alt-text="Screenshot shows searching for virtual networks in the Azure portal.":::
49
49
@@ -89,7 +89,7 @@ In this section, you create a storage account, then you create a container in it
89
89
90
90
If you have a storage account that you want to use, you can skip the following steps and go to [Create VPN gateways](#create-vpn-gateways).
91
91
92
-
1. In the search box at the top of the portal, enter *storage account*. Select **Storage accounts** in the search results.
92
+
1. In the search box at the top of the portal, enter *storage accounts*. Select **Storage accounts** in the search results.
93
93
94
94
1. Select **+ Create**. In **Create a storage account**, enter or select the following values in the **Basics** tab:
95
95
@@ -104,15 +104,11 @@ If you have a storage account that you want to use, you can skip the following s
# Customer intent: I want to diagnose virtual machine (VM) network routing problem that prevents communication to different destinations.
13
13
---
14
14
15
15
# Tutorial: Diagnose a virtual machine network routing problem using the Azure portal
16
16
17
-
When you deploy a virtual machine (VM), Azure creates several [system default routes](/articles/virtual-network/virtual-networks-udr-overview.md#system-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) for it. You can create [custom routes](/articles/virtual-network/virtual-networks-udr-overview.md#custom-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) to override some of Azure's system routes. Sometimes, a custom route can result in a VM not being able to communicate with the intended destination. You can use Azure Network Watcher to troubleshoot and diagnose the VM routing problem that's preventing it from correctly communicating with other resources.
17
+
When you deploy a virtual machine (VM), Azure creates several [system default routes](/articles/virtual-network/virtual-networks-udr-overview.md#system-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) for it. You can create [custom routes](/articles/virtual-network/virtual-networks-udr-overview.md#custom-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) to override some of Azure's system routes. Sometimes, a custom route can result in a VM not being able to communicate with the intended destination. You can use Azure Network Watcher [next hop](network-watcher-next-hop-overview.md) capability to troubleshoot and diagnose the VM routing problem that's preventing it from correctly communicating with other resources.
18
18
19
19
In this tutorial, you learn how to:
20
20
21
21
> [!div class="checklist"]
22
-
> * Create a virtual network and deploy two virtual machines in it
22
+
> * Create a virtual network and a Bastion host
23
+
> * Create two virtual machines
23
24
> * Test communication to different IPs using the next hop capability of Azure Network Watcher
24
25
> * View the effective routes
25
26
> * Create a custom route
26
27
> * Diagnose a routing problem
27
28
28
29
If you prefer, you can diagnose a virtual machine network routing problem using the [Azure CLI](diagnose-vm-network-routing-problem-cli.md) or [Azure PowerShell](diagnose-vm-network-routing-problem-powershell.md) tutorials.
29
30
30
-
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
31
-
32
-
33
31
## Prerequisites
34
32
35
-
- An Azure subscription
36
-
33
+
- An Azure account with an active subscription. If you don't have one, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
37
34
38
35
## Sign in to Azure
39
36
40
37
Sign in to the [Azure portal](https://portal.azure.com).
41
38
42
-
43
39
## Create a virtual network
44
40
45
41
In this section, you create a virtual network.
46
42
47
-
1. In the search box at the top of the portal, enter *virtual network*. Select **Virtual networks** in the search results.
43
+
1. In the search box at the top of the portal, enter *virtual networks*. Select **Virtual networks** in the search results.
48
44
49
-
1. Select **+ Create**. In **Create virtual network**, enter or select the following in the **Basics** tab:
45
+
:::image type="content" source="./media/diagnose-vm-network-routing-problem/virtual-network-azure-portal.png" alt-text="Screenshot shows searching for virtual networks in the Azure portal.":::
46
+
47
+
1. Select **+ Create**. In **Create virtual network**, enter or select the following values in the **Basics** tab:
50
48
51
49
| Setting | Value |
52
50
| --- | --- |
@@ -59,7 +57,7 @@ In this section, you create a virtual network.
59
57
60
58
1. Select the **IP Addresses** tab, or select **Next: IP Addresses** button at the bottom of the page.
61
59
62
-
1. Enter the following in the **IP Addresses** tab:
60
+
1. Enter the following values in the **IP Addresses** tab:
63
61
64
62
| Setting | Value |
65
63
| --- | --- |
@@ -69,7 +67,7 @@ In this section, you create a virtual network.
69
67
70
68
1. Select the **Security** tab, or select the **Next: Security** button at the bottom of the page.
71
69
72
-
1. Under **BastionHost**, select **Enable** and enter the following:
70
+
1. Under **BastionHost**, select **Enable** and enter the following values:
73
71
74
72
| Setting | Value |
75
73
| --- | --- |
@@ -81,19 +79,17 @@ In this section, you create a virtual network.
81
79
82
80
1. Review the settings, and then select **Create**.
83
81
84
-
85
82
## Create virtual machines
86
83
87
84
In this section, you create two virtual machines: **myVM** and **myNVA**. You use **myVM** virtual machine to test the communication from. **myNVA** virtual machine is used as a network virtual appliance in the scenario.
88
85
89
-
90
86
### Create first virtual machine
91
87
92
-
1. In the search box at the top of the portal, enter *virtual machine*. Select **Virtual machines** in the search results.
88
+
1. In the search box at the top of the portal, enter *virtual machines*. Select **Virtual machines** in the search results.
93
89
94
90
2. Select **+ Create** and then select **Azure virtual machine**.
95
91
96
-
3. In **Create a virtual machine**, enter or select the following in the **Basics** tab:
92
+
3. In **Create a virtual machine**, enter or select the following values in the **Basics** tab:
97
93
98
94
| Setting | Value |
99
95
| --- | --- |
@@ -114,22 +110,22 @@ In this section, you create two virtual machines: **myVM** and **myNVA**. You us
114
110
115
111
4. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
116
112
117
-
5. In the Networking tab, enter or select the following information:
113
+
5. In the Networking tab, enter or select the following values:
118
114
119
115
| Setting | Value |
120
116
| --- | --- |
121
117
|**Network interface**||
122
118
| Virtual network | Select **myVNet**. |
123
119
| Subnet | Select **mySubnet**. |
124
-
| Public IP |Leave the default. |
120
+
| Public IP |Select **None**. |
125
121
| NIC network security group | Select **Basic**. |
126
122
| Public inbound ports | Select **None**. |
127
123
128
124
6. Select **Review + create**.
129
125
130
126
7. Review the settings, and then select **Create**.
131
127
132
-
8.Select**Go to resource** to go to the **Overview** page of **myVM**.
128
+
8.Once the deployment is complete, select**Go to resource** to go to the **Overview** page of **myVM**.
133
129
134
130
9. Select **Connect**, then select **Bastion**.
135
131
@@ -141,19 +137,17 @@ In this section, you create two virtual machines: **myVM** and **myNVA**. You us
141
137
142
138
:::image type="content" source="./media/diagnose-vm-network-routing-problem/bing-allowed.png" alt-text="Screenshot showing Bing page in a web browser.":::
143
139
144
-
145
140
### Create second virtual machine
146
141
147
142
Follow the previous steps that you used to create **myVM** virtual machine and enter *myNVA* for the virtual machine name.
148
143
149
-
150
144
## Test network communication using Network Watcher next hop
151
145
152
146
Use the next hop capability of Network Watcher to determine which route Azure is using to route traffic from **myVM**, which has one network interface with one IP configuration
153
147
154
148
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher** in the search results.
155
149
156
-
1. Under **Network diagnostic tools**, select **Next hop**. Enter or select the following information:
150
+
1. Under **Network diagnostic tools**, select **Next hop**. Enter or select the following values:
157
151
158
152
| Setting | Value |
159
153
| ------- | ------ |
@@ -176,12 +170,11 @@ Use the next hop capability of Network Watcher to determine which route Azure is
176
170
177
171
:::image type="content" source="./media/diagnose-vm-network-routing-problem/next-hop-none-system-route.png" alt-text="Screenshot showing Network Watcher next hop result when testing with a private IP outside the address space of the virtual network.":::
178
172
179
-
180
173
## View details of a route
181
174
182
175
To further analyze routing, review the effective routes for **myVM** network interface.
183
176
184
-
1. In the search box at the top of the portal, enter *virtual machine*. Select **Virtual machines** in the search results.
177
+
1. In the search box at the top of the portal, enter *virtual machines*. Select **Virtual machines** in the search results.
185
178
186
179
1. Under **Settings**, select **Networking**, then select the network interface.
187
180
@@ -197,19 +190,17 @@ To further analyze routing, review the effective routes for **myVM** network int
197
190
198
191
However, when you ran the test using **10.1.0.5**, the result was **None** for the next hop type because this IP address is in the 10.0.0.0/8 address space. Azure default route for 10.0.0.0/8 address prefix has next hope type as **None**. If you add an address prefix that contains 10.1.0.5 to the virtual network address space, then the next hop type for 10.1.0.5 will change from **None** to **VirtualNetwork**.
199
192
200
-
201
193
## Test a routing problem due to custom routes
202
194
203
-
Next, you'll create a static custom route to override Azure default system routes and cause a routing problem to **myVM** virtual machine that prevents it from directly communicating with `www.bing.com`. Then, you'll use Network Watcher next hop to troubleshoot and diagnose the problem.
204
-
195
+
Next, you create a static custom route to override Azure default system routes and cause a routing problem to **myVM** virtual machine that prevents it from directly communicating with `www.bing.com`. Then, you'll use Network Watcher next hop to troubleshoot and diagnose the problem.
205
196
206
197
### Create a custom route
207
198
208
199
In this section, you create a static custom route (user-defined route) in a route table that forces all traffic destined outside the virtual network to a specific IP address. Forcing traffic to a virtual network appliance is a common scenario.
209
200
210
-
1. In the search box at the top of the portal, enter *route table*. Select **Route tables** in the search results.
201
+
1. In the search box at the top of the portal, enter *route tables*. Select **Route tables** in the search results.
211
202
212
-
1. Select **+ Create** to create a new route table. In the **Create Route table** page, enter or select the following:
203
+
1. Select **+ Create** to create a new route table. In the **Create Route table** page, enter or select the following values:
213
204
214
205
| Setting | Value |
215
206
| ------- | ------ |
@@ -225,11 +216,11 @@ In this section, you create a static custom route (user-defined route) in a rout
225
216
226
217
1. Review the settings, and then select **Create**.
227
218
228
-
1.Select **Go to resource**.
219
+
1.Once the deployment is complete, select **Go to resource** to go to the **Overview** page of **myRouteTable**.
229
220
230
221
1. Under **Settings**, select **Routes**, and then select **+ Add** to add a custom route.
231
222
232
-
1. In the **Add route** page, enter or select the following:
223
+
1. In the **Add route** page, enter or select the following values:
233
224
234
225
| Setting | Value |
235
226
| ------- | ------ |
@@ -241,14 +232,13 @@ In this section, you create a static custom route (user-defined route) in a rout
241
232
242
233
1. Select **Add**.
243
234
244
-
245
235
### Associate the route table with the subnet
246
236
247
237
In this section, you associate the route table that you created in the previous section with **mySubnet** subnet.
248
238
249
239
1. Under **Settings**, select **Subnets**, and then select **+ Associate** to associate **myRouteTable** with **mySubnet** subnet.
250
240
251
-
1. In the **Associate subnet** page, select the following:
241
+
1. In the **Associate subnet** page, select the following values:
252
242
253
243
| Setting | Value |
254
244
| ------- | ------ |
@@ -257,14 +247,12 @@ In this section, you associate the route table that you created in the previous
257
247
258
248
1. Select **OK**.
259
249
260
-
261
250
### Go to `www.bing.com`
262
251
263
252
In **myVM**, open the web browser and go to `www.bing.com` to verify if it's still reachable. The custom route that you created and associated with subnet of **myVM** forces the traffic to go to **myNVA**. The traffic is dropped as **myNVA** isn't set up to forward the traffic for the purposes of this tutorial to demonstrate a routing problem.
264
253
265
254
:::image type="content" source="./media/diagnose-vm-network-routing-problem/bing-blocked.png" alt-text="Screenshot showing Bing page isn't reachable in a web browser.":::
266
255
267
-
268
256
### Test network communication using next hop
269
257
270
258
Repeat the steps you used in [Test network communication using Network Watcher next hop](#test-network-communication-using-network-watcher-next-hop) section using **13.107.21.200** to test the communication to `www.bing.com`.
@@ -282,20 +270,19 @@ The custom route with prefix 0.0.0.0/0 overrode Azure default route and caused a
282
270
> [!NOTE]
283
271
> In this tutorial, traffic to `www.bing.com` was dropped because **myNVA** was not set up to forward traffic. To learn how to set up a virtual machine to forward traffic, see [Turn on IP forwarding](/articles/virtual-network/tutorial-create-route-table-portal.md#turn-on-ip-forwarding).
284
272
285
-
286
273
## Clean up resources
287
274
288
275
When no longer needed, delete the resource group and all of the resources it contains:
289
276
290
-
1. Enter *Resource groups* in the **Search** box at the top of the portal, and then select**myResourceGroup**.
277
+
1. Enter *myResourceGroup* in the **Search** box at the top of the portal. When you see**myResourceGroup** in the search results, select it.
291
278
2. Select **Delete resource group**.
292
279
3. Enter *myResourceGroup* for **TYPE THE RESOURCE GROUP NAME:** and select **Delete**.
293
280
294
281
## Next steps
295
282
296
283
In this tutorial, you created a virtual machine and used Network Watcher next hop to diagnose routing to different destinations. To learn more about routing in Azure, see [Virtual network traffic routing](../virtual-network/virtual-networks-udr-overview.md?toc=%2fazure%2fnetwork-watcher%2ftoc.json).
297
284
298
-
For outbound VM connections, you can also determine the latency, allowed and denied network traffic between the VM and an endpoint, and the route used to an endpoint, using Network Watcher [connection troubleshoot](network-watcher-connectivity-portal.md) capability.
285
+
For outbound VM connections, you can use Network Watcher [connection troubleshoot](network-watcher-connectivity-portal.md) capability to determine the latency, allowed and denied network traffic between the VM and an endpoint, and the route to an endpoint.
299
286
300
287
To learn how to monitor communication between two virtual machines, advance to the next tutorial.
0 commit comments