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/nat-gateway/tutorial-hub-spoke-route-nat.md
+73-57Lines changed: 73 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: asudbring
6
6
ms.author: allensu
7
7
ms.service: nat-gateway
8
8
ms.topic: tutorial
9
-
ms.date: 07/13/2023
9
+
ms.date: 07/30/2024
10
10
ms.custom: template-tutorial
11
11
---
12
12
@@ -89,7 +89,7 @@ The hub virtual network is the central network of the solution. The hub network
89
89
90
90
1. Select **Next** to proceed to the **Security** tab.
91
91
92
-
1. Select **Enable Bastion** in the **Azure Bastion** section of the **Security** tab.
92
+
1. Select **Enable Azure Bastion** in the **Azure Bastion** section of the **Security** tab.
93
93
94
94
Azure Bastion uses your browser to connect to VMs in your virtual network over secure shell (SSH) or remote desktop protocol (RDP) by using their private IP addresses. The VMs don't need public IP addresses, client software, or special configuration. For more information about Azure Bastion, see [Azure Bastion](/azure/bastion/bastion-overview)
95
95
@@ -101,7 +101,7 @@ The hub virtual network is the central network of the solution. The hub network
101
101
| Setting | Value |
102
102
|---|---|
103
103
| Azure Bastion host name | Enter **bastion**. |
104
-
| Azure Bastion public IP address | Select **Create a public IP address**. </br> Enter **public-ip** in Name. </br> Select **OK**. |
104
+
| Azure Bastion public IP address | Select **Create a public IP address**. </br> Enter **public-ip-bastion** in Name. </br> Select **OK**. |
105
105
106
106
1. Select **Next** to proceed to the **IP Addresses** tab.
107
107
@@ -111,25 +111,27 @@ The hub virtual network is the central network of the solution. The hub network
111
111
112
112
| Setting | Value |
113
113
|---|---|
114
-
|**Subnet details**||
115
-
| Subnet template | Leave the default **Default**. |
114
+
| Subnet purpose | Leave the default **Default**. |
116
115
| Name | Enter **subnet-private**. |
116
+
|**IPv4**||
117
+
| IPv4 address range | Leave the default of **10.0.0.0/16**. |
117
118
| Starting address | Leave the default of **10.0.0.0**. |
118
-
|Subnet size| Leave the default of **/24(256 addresses)**. |
119
+
|Size| Leave the default of **/24(256 addresses)**. |
119
120
120
121
1. Select **Save**.
121
122
122
-
1. Select **+ Add subnet**.
123
+
1. Select **+ Add a subnet**.
123
124
124
125
1. In **Add subnet**, enter or select the following information:
125
126
126
127
| Setting | Value |
127
128
|---|---|
128
-
|**Subnet details**||
129
-
| Subnet template | Leave the default **Default**. |
129
+
| Subnet purpose | Leave the default **Default**. |
130
130
| Name | Enter **subnet-public**. |
131
+
|**IPv4**||
132
+
| IPv4 address range | Leave the default of **10.0.0.0/16**. |
131
133
| Starting address | Enter **10.0.253.0**. |
132
-
|Subnet size| Select **/28(16 addresses)**. |
134
+
|Size| Select **/28(16 addresses)**. |
133
135
|**Security**||
134
136
| NAT gateway | Select **nat-gateway**. |
135
137
@@ -161,7 +163,7 @@ The simulated NVA acts as a virtual appliance to route all traffic between the s
1. In **Networking** select the network interface name next to **Network Interface:**. The interface name is the virtual machine name and random numbers and letters. In this example, the interface name is **vm-nva271**.
206
+
1. In **Network settings** select the network interface name next to **Network Interface:**. The interface name is the virtual machine name and random numbers and letters. In this example, the interface name is **vm-nva271**.
205
207
206
208
1. In the network interface properties, select **IP configurations** in **Settings**.
207
209
@@ -211,15 +213,15 @@ The IP configuration of the primary network interface of the virtual machine is
211
213
212
214
1. When the apply action completes, select **ipconfig1**.
213
215
214
-
1. In **Assignment** in **ipconfig1** select **Static**.
216
+
1. In **Private IP address settings** in **ipconfig1** select **Static**.
215
217
216
218
1. In **Private IP address** enter **10.0.253.10**.
217
219
218
220
1. Select **Save**.
219
221
220
222
1. When the save action completes, return to the networking configuration for **vm-nva**.
221
223
222
-
1. In **Networking** of **vm-nva** select **Attach network interface**.
224
+
1. In **Network settings** of **vm-nva** select **Attach network interface**.
223
225
224
226
1. Select **Create and attach network interface**.
225
227
@@ -251,7 +253,7 @@ The routing for the simulated NVA uses IP tables and internal NAT in the Ubuntu
251
253
252
254
1. When the virtual machine is completed booting, continue with the next steps.
253
255
254
-
1. In **Operations**, select **Bastion**.
256
+
1. In the **Overview** section, select **Connect**, then select **Connect via Bastion**.
255
257
256
258
1. Enter the username and password you entered when the virtual machine was created.
257
259
@@ -344,7 +346,7 @@ Route tables are used to overwrite Azure's default routing. Create a route table
344
346
345
347
1. Select **route-table-nat-hub**.
346
348
347
-
1. In **Settings** select **Routes**.
349
+
1. Expand **Settings** then select **Routes**.
348
350
349
351
1. Select **+ Add** in **Routes**.
350
352
@@ -396,7 +398,9 @@ Create another virtual network in a different region for the first spoke of the
396
398
397
399
1. Select **Next** to proceed to the **IP addresses** tab.
398
400
399
-
1. In the **IP Addresses** tab in **IPv4 address space**, select the trash can to delete the address space that is auto populated.
401
+
1. In the **IP Addresses** tab in **IPv4 address space**, select **Delete address space** to delete the address space that is auto populated.
402
+
403
+
1. Select **Add IPv4 address space**.
400
404
401
405
1. In **IPv4 address space** enter **10.1.0.0**. Leave the default of **/16 (65,536 addresses)** in the mask selection.
402
406
@@ -406,11 +410,12 @@ Create another virtual network in a different region for the first spoke of the
406
410
407
411
| Setting | Value |
408
412
| ------- | ----- |
409
-
| **Subnet details** | |
410
-
| Subnet template | Leave the default **Default**. |
413
+
| Subnet purpose | Leave the default **Default**. |
411
414
| Name | Enter **subnet-private**. |
412
-
| Starting address | Enter **10.1.0.0**. |
413
-
| Subnet size | Leave the default of **/24(256 addresses)**. |
415
+
| **IPv4** | |
416
+
| IPv4 address range| Leave the default of **10.1.0.0/16**. |
417
+
| Starting address | Leave the default of **10.1.0.0**. |
418
+
| Size | Leave the default of **/24(256 addresses)**. |
414
419
415
420
1. Select **Add**.
416
421
@@ -433,22 +438,24 @@ A virtual network peering is used to connect the hub to spoke one and spoke one
433
438
1. Enter or select the following information in **Add peering**:
434
439
435
440
| Setting | Value |
436
-
| ------- | ----- |
437
-
| **This virtual network** | |
438
-
| Peering link name | Enter **vnet-hub-to-vnet-spoke-1**. |
439
-
| Allow 'vnet-hub' to access 'vnet-spoke-1' | Leave the default of **Selected**. |
440
-
| Allow 'vnet-hub' to receive forwarded traffic from 'vnet-spoke-1' | **Select** the checkbox. |
441
-
| Allow gateway in 'vnet-hub' to forward traffic to 'vnet-spoke-1' | Leave the default of **Unselected**. |
442
-
| Enable 'vnet-hub' to use 'vnet-spoke-1's' remote gateway | Leave the default of **Unselected**. |
443
-
|**Remote virtual network**||
441
+
| ------- | -----
442
+
| **Remote virtual network summary** | |
444
443
| Peering link name | Enter **vnet-spoke-1-to-vnet-hub**. |
445
444
| Virtual network deployment model | Leave the default of **Resource manager**. |
| Allow 'vnet-spoke-1' to access 'vnet-hub' | Leave the default of **Selected**. |
449
-
| Allow 'vnet-spoke-1' to receive forwarded traffic from 'vnet-hub'|**Select** the checkbox. |
450
-
| Allow gateway in'vnet-spoke-1' to forward traffic to 'vnet-hub'| Leave the default of **Unselected**. |
451
-
| Enable 'vnet-spoke-1' to use 'vnet-hub's' remote gateway | Leave the default of **Unselected**. |
449
+
| Allow 'vnet-spoke-1' to receive forwarded traffic from 'vnet-hub' | Select the checkbox. |
450
+
| Allow gateway or route server in 'vnet-spoke-1' to forward traffic to 'vnet-hub' | Leave the default of **Unselected**. |
451
+
| Enable 'vnet-spoke-1' to use 'vnet-hub's' remote gateway or route server | Leave the default of **Unselected**. |
452
+
|**Local virtual network summary**||
453
+
| Peering link name | Enter **vnet-hub-to-vnet-spoke-1**. |
454
+
|**Local virtual network peering settings**||
455
+
| Allow 'vnet-hub' to access 'vnet-spoke-1'| Leave the default of **Selected**. |
456
+
| Allow 'vnet-hub' to receive forwarded traffic from 'vnet-spoke-1'| Select the checkbox. |
457
+
| Allow gateway or route server in'vnet-hub' to forward traffic to 'vnet-spoke-1'| Leave the default of **Unselected**. |
458
+
| Enable 'vnet-hub' to use 'vnet-spoke-1's' remote gateway or route server | Leave the default of **Unselected**. |
452
459
453
460
1. Select **Add**.
454
461
@@ -562,6 +569,8 @@ A Windows Server 2022 virtual machine is used to test the outbound internet traf
562
569
563
570
1. Select **Create**.
564
571
572
+
Wait for the virtual machine to finishing deploying before continuing to the next steps.
573
+
565
574
## Install IIS on spoke one test virtual machine
566
575
567
576
IIS is installed on the Windows Server 2022 virtual machine to test outbound internet traffic through the NAT gateway and inter-spoke traffic in the hub and spoke network.
@@ -570,7 +579,7 @@ IIS is installed on the Windows Server 2022 virtual machine to test outbound int
570
579
571
580
1. Select **vm-spoke-1**.
572
581
573
-
1. In **Operations**, select **Run command**.
582
+
1. Expand **Operations** then select **Run command**.
574
583
575
584
1. Select **RunPowerShellScript**.
576
585
@@ -591,7 +600,7 @@ IIS is installed on the Windows Server 2022 virtual machine to test outbound int
591
600
592
601
1. Wait for the script to complete before continuing to the next step. It can take a few minutes for the script to complete.
593
602
594
-
1. When the script completes, the **Output*** displays the following:
603
+
1. When the script completes, the **Output** displays the following:
595
604
596
605
```output
597
606
Success Restart Needed Exit Code Feature Result
@@ -622,7 +631,9 @@ Create the second virtual network for the second spoke of the hub and spoke netw
622
631
623
632
1. Select **Next** to proceed to the **IP addresses** tab.
624
633
625
-
1. In the **IP Addresses** tab in **IPv4 address space**, select the trash can to delete the address space that is auto populated.
634
+
1. In the **IP Addresses** tab in **IPv4 address space**, select **Delete address space** to delete the address space that is auto populated.
635
+
636
+
1. Select **Add IPv4 address space**.
626
637
627
638
1. In **IPv4 address space** enter **10.2.0.0**. Leave the default of **/16 (65,536 addresses)** in the mask selection.
628
639
@@ -632,11 +643,12 @@ Create the second virtual network for the second spoke of the hub and spoke netw
632
643
633
644
| Setting | Value |
634
645
| ------- | ----- |
635
-
| **Subnet details** | |
636
-
| Subnet template | Leave the default **Default**. |
646
+
| Subnet purpose | Leave the default **Default**. |
637
647
| Name | Enter **subnet-private**. |
638
-
| Starting address | Enter **10.2.0.0**. |
639
-
| Subnet size | Leave the default of **/24(256 addresses)**. |
648
+
| **IPv4** | |
649
+
| IPv4 address range | Leave the default of **10.2.0.0/16**. |
650
+
| Starting address | Leave the default of **10.2.0.0**. |
651
+
| Size | Leave the default of **/24(256 addresses)**. |
640
652
641
653
1. Select **Add**.
642
654
@@ -667,23 +679,25 @@ Create a two-way virtual network peer between the hub and spoke two.
667
679
1. Enter or select the following information in **Add peering**:
668
680
669
681
| Setting | Value |
670
-
| ------- | ----- |
671
-
| **This virtual network** | |
672
-
| Peering link name | Enter **vnet-hub-to-vnet-spoke-2**. |
673
-
| Allow 'vnet-hub' to access 'vnet-spoke-2' | Leave the default of **Selected**. |
674
-
| Allow 'vnet-hub' to receive forwarded traffic from 'vnet-spoke-2' | **Select** the checkbox. |
675
-
| Allow gateway in 'vnet-hub' to forward traffic to 'vnet-spoke-2' | Leave the default of **Unselected**. |
676
-
| Enable 'vnet-hub' to use 'vnet-spoke-2's' remote gateway | Leave the default of **Unselected**. |
677
-
|**Remote virtual network**||
682
+
| ------- | -----
683
+
| **Remote virtual network summary** | |
678
684
| Peering link name | Enter **vnet-spoke-2-to-vnet-hub**. |
679
685
| Virtual network deployment model | Leave the default of **Resource manager**. |
680
686
| Subscription | Select your subscription. |
681
-
| Virtual network | Select **vnet-spoke-2**. |
682
-
| Allow 'vnet-spoke-1' to access 'vnet-hub'| Leave the default of **Selected**. |
683
-
| Allow 'vnet-spoke-1' to receive forwarded traffic from 'vnet-hub'|**Select** the checkbox. |
684
-
| Allow gateway in'vnet-spoke-1' to forward traffic to 'vnet-hub'| Leave the default of **Unselected**. |
685
-
| Enable 'vnet-spoke-1' to use 'vnet-hub's' remote gateway | Leave the default of **Unselected**. |
| Allow 'vnet-spoke-2' to access 'vnet-hub' | Leave the default of **Selected**. |
690
+
| Allow 'vnet-spoke-2' to receive forwarded traffic from 'vnet-hub' | Select the checkbox. |
691
+
| Allow gateway or route server in 'vnet-spoke-2' to forward traffic to 'vnet-hub' | Leave the default of **Unselected**. |
692
+
| Enable 'vnet-spoke-2' to use 'vnet-hub's' remote gateway or route server | Leave the default of **Unselected**. |
693
+
|**Local virtual network summary**||
694
+
| Peering link name | Enter **vnet-hub-to-vnet-spoke-2**. |
695
+
|**Local virtual network peering settings**||
696
+
| Allow 'vnet-hub' to access 'vnet-spoke-2'| Leave the default of **Selected**. |
697
+
| Allow 'vnet-hub' to receive forwarded traffic from 'vnet-spoke-2'| Select the checkbox. |
698
+
| Allow gateway or route server in'vnet-hub' to forward traffic to 'vnet-spoke-2'| Leave the default of **Unselected**. |
699
+
| Enable 'vnet-hub' to use 'vnet-spoke-2's' remote gateway or route server | Leave the default of **Unselected**. |
700
+
687
701
1. Select **Add**.
688
702
689
703
1. Select **Refresh** and verify **Peering status** is **Connected**.
@@ -794,6 +808,8 @@ Create a Windows Server 2022 virtual machine for the test virtual machine in spo
794
808
795
809
1. Select **Create**.
796
810
811
+
Wait for the virtual machine to finish deploying before continuing to the next steps.
812
+
797
813
## Install IIS on spoke two test virtual machine
798
814
799
815
IIS is installed on the Windows Server 2022 virtual machine to test outbound internet traffic through the NAT gateway and inter-spoke traffic in the hub and spoke network.
@@ -853,7 +869,7 @@ Use Microsoft Edge on the Windows Server 2022 virtual machine to connect to http
853
869
854
870
1. Select **vm-spoke-1**.
855
871
856
-
1. In **Operations**, select **Bastion**.
872
+
1. In **Overview**, select **Connect** then **Connect via Bastion**.
857
873
858
874
1. Enter the username and password you entered when the virtual machine was created.
859
875
@@ -877,7 +893,7 @@ Use Microsoft Edge on the Windows Server 2022 virtual machine to connect to http
877
893
878
894
1. Select **vm-spoke-2**.
879
895
880
-
1. In **Operations**, select **Bastion**.
896
+
1. In **Overview**, select **Connect** then **Connect via Bastion**.
881
897
882
898
1. Enter the username and password you entered when the virtual machine was created.
0 commit comments