|
1 | 1 | ---
|
2 | 2 | title: Map virtual networks between two regions in Azure Site Recovery
|
3 |
| -description: Learn about mapping virtual networks between two Azure regions for Azure VM disaster recovery with Azure Site Recovery. |
| 3 | +description: Learn about mapping virtual networks between two Azure regions for Azure virtual machine disaster recovery with Azure Site Recovery. |
4 | 4 | author: ankitaduttaMSFT
|
5 | 5 | ms.service: azure-site-recovery
|
6 | 6 | ms.topic: how-to
|
@@ -28,74 +28,74 @@ Map networks as follows:
|
28 | 28 |
|
29 | 29 | :::image type="content" source="./media/site-recovery-network-mapping-azure-to-azure/network-mapping1.png" alt-text="Screenshot of Create a network mapping." lightbox="./media/site-recovery-network-mapping-azure-to-azure/network-mapping1.png":::
|
30 | 30 |
|
31 |
| -3. In **Add network mapping**, select the source and target locations. In our example, the source VM is running in the East Asia region, and replicates to the Southeast Asia region. |
| 31 | +3. In **Add network mapping**, select the source and target locations. In our example, the source virtual machine is running in the East Asia region, and replicates to the Southeast Asia region. |
32 | 32 |
|
33 | 33 | :::image type="content" source="./media/site-recovery-network-mapping-azure-to-azure/network-mapping2.png" alt-text="Screenshot of Select source and target." lightbox="./media/site-recovery-network-mapping-azure-to-azure/network-mapping2.png":::
|
34 |
| -3. Now create a network mapping in the opposite direction. In our example, the source will now be Southeast Asia, and the target will be East Asia. |
| 34 | +3. Now create a network mapping in the opposite direction. In our example, the source is now Southeast Asia, and the target is East Asia. |
35 | 35 |
|
36 | 36 | :::image type="content" source="./media/site-recovery-network-mapping-azure-to-azure/network-mapping3.png" alt-text="Screenshot of Add network mapping pane - Select source and target locations for the target network." lightbox="./media/site-recovery-network-mapping-azure-to-azure/network-mapping3.png":::
|
37 | 37 |
|
38 | 38 |
|
39 | 39 | ## Map networks when you enable replication
|
40 | 40 |
|
41 |
| -If you haven't prepared network mapping before you configure disaster recovery for Azure VMs, you can specify a target network when you [set up and enable replication](azure-to-azure-how-to-enable-replication.md). When you do this the following happens: |
| 41 | +If you haven't prepared network mapping before you configure disaster recovery for Azure virtual machines, you can specify a target network when you [set up and enable replication](azure-to-azure-how-to-enable-replication.md). When you do this, the following happens: |
42 | 42 |
|
43 | 43 | - Based on the target you select, Site Recovery automatically creates network mappings from the source to target region, and from the target to source region.
|
44 | 44 | - By default, Site Recovery creates a network in the target region that's identical to the source network. Site Recovery adds **-asr** as a suffix to the name of the target network. You can customize the target network. For example, if the source network name was *contoso-vnet*, then the target network is named *contoso-vnet-asr*.
|
45 | 45 |
|
46 |
| -So, if the source network name was "contoso-vnet", then the target network name will be "contoso-vnet-asr". Source network's name will not be edited by ASR. |
47 |
| -- If network mapping has already occurred for a source network, the mapped target network will always be the default at the time of enabling replications for more VMs. You can choose to change the target virtual network by choosing other available options from the dropdown. |
| 46 | +So, if the source network name was "contoso-vnet", then the target network name is `contoso-vnet-asr`. Source network's name won't be edited by Azure Site Recovery. |
| 47 | +- If network mapping has already occurred for a source network, the mapped target network is always the default at the time of enabling replications for more virtual machines. You can choose to change the target virtual network by choosing other available options from the dropdown. |
48 | 48 | - To change the default target virtual network for new replications, you need to modify the existing network mapping.
|
49 | 49 | - If you wish to modify a network mapping from region A to region B, ensure that you first delete the network mapping from region B to region A. After reverse mapping deletion, modify the network mapping from region A to region B and then create the relevant reverse mapping.
|
50 | 50 |
|
51 | 51 | >[!NOTE]
|
52 |
| ->* Modifying the network mapping only changes the defaults for new VM replications. It does not impact the target virtual network selections for existing replications. |
| 52 | +>* Modifying the network mapping only changes the defaults for new virtual machine replications. It does not impact the target virtual network selections for existing replications. |
53 | 53 | >* If you wish to modify the target network for an existing replication, go to **Network** Settings of the replicated item.
|
54 | 54 |
|
55 | 55 | ## Specify a subnet
|
56 | 56 |
|
57 |
| -The subnet of the target VM is selected based on the name of the subnet of the source VM. |
| 57 | +The subnet of the target virtual machine is selected based on the name of the subnet of the source virtual machine. |
58 | 58 |
|
59 |
| -- If a subnet with the same name as the source VM subnet is available in the target network, that subnet is set for the target VM. |
| 59 | +- If a subnet with the same name as the source virtual machine subnet is available in the target network, that subnet is set for the target virtual machine. |
60 | 60 | - If a subnet with the same name doesn't exist in the target network, the first subnet in the alphabetical order is set as the target subnet.
|
61 |
| -- You can modify the target subnet in the **Network** settings for the VM. |
| 61 | +- You can modify the target subnet in the **Network** settings for the virtual machine. |
62 | 62 |
|
63 | 63 | :::image type="content" source="./media/site-recovery-network-mapping-azure-to-azure/modify-subnet.png" alt-text="Screenshot of Network compute properties window." lightbox="./media/site-recovery-network-mapping-azure-to-azure/modify-subnet.png":::
|
64 | 64 |
|
65 |
| -## Set up IP addressing for target VMs |
| 65 | +## Set up IP addressing for target virtual machines |
66 | 66 |
|
67 | 67 | The IP address for each NIC on a target virtual machine is configured as follows:
|
68 | 68 |
|
69 |
| -- **DHCP**: If the NIC of the source VM uses DHCP, the NIC of the target VM is also set to use DHCP. |
70 |
| -- **Static IP address**: If the NIC of the source VM uses static IP addressing, the target VM NIC will also use a static IP address. |
| 69 | +- **DHCP**: If the NIC of the source virtual machine uses DHCP, the NIC of the target virtual machine is also set to use DHCP. |
| 70 | +- **Static IP address**: If the NIC of the source virtual machine uses static IP addressing, the target virtual machine NIC is also use a static IP address. |
71 | 71 |
|
72 | 72 | The same holds for the Secondary IP Configurations as well.
|
73 | 73 |
|
74 | 74 | ## IP address assignment during failover
|
75 | 75 |
|
76 | 76 | >[!Note]
|
77 |
| ->The following approach is used to assign IP address to the target VM, irrespective of the NIC settings. |
| 77 | +>The following approach is used to assign IP address to the target virtual machine, irrespective of the NIC settings. |
78 | 78 |
|
79 | 79 | **Source and target subnets** | **Details**
|
80 | 80 | --- | ---
|
81 |
| -Same address space | IP address of the source VM NIC is set as the target VM NIC IP address.<br/><br/> If the address isn't available, the next available IP address is set as the target. |
82 |
| -Different address space | The next available IP address in the target subnet is set as the target VM NIC address. |
| 81 | +Same address space | IP address of the source virtual machine NIC is set as the target virtual machine NIC IP address.<br/><br/> If the address isn't available, the next available IP address is set as the target. |
| 82 | +Different address space | The next available IP address in the target subnet is set as the target virtual machine NIC address. |
83 | 83 |
|
84 | 84 |
|
85 | 85 |
|
86 | 86 | ## IP address assignment during test failover
|
87 | 87 |
|
88 | 88 | **Target network** | **Details**
|
89 | 89 | --- | ---
|
90 |
| -Target network is the failover VNet | - Target IP address will be static with the same IP address. <br/><br/> - If the same IP address is already assigned, then the IP address is the next one available at the end of the subnet range. For example: If the source IP address is 10.0.0.19 and failover network uses range 10.0.0.0/24, then the next IP address assigned to the target VM is 10.0.0.254. |
91 |
| -Target network isn't the failover VNet | - Target IP address will be static with the same IP address, only if it is available in the target virtual network. <br/><br/> - If the same IP address is already assigned, then the IP address is the next one available at the end of the subnet range.<br/><br/> For example: If the source static IP address is 10.0.0.19 and failover is on a network that isn't the failover network, with the range 10.0.0.0/24, then the target static IP address will be 10.0.0.19 if available, and otherwise it will be 10.0.0.254. |
| 90 | +Target network is the failover VNet | - Target IP address is static with the same IP address. <br/><br/> - If the same IP address is already assigned, then the IP address is the next one available at the end of the subnet range. For example: If the source IP address is `10.0.0.19` and failover network uses range `10.0.0.0/24`, then the next IP address assigned to the target virtual machine is `10.0.0.254`. |
| 91 | +Target network isn't the failover VNet | - Target IP address is static with the same IP address, only if it's available in the target virtual network. <br/><br/> - If the same IP address is already assigned, then the IP address is the next one available at the end of the subnet range.<br/><br/> For example: If the source static IP address is `10.0.0.19` and failover is on a network that isn't the failover network, with the range `10.0.0.0/24`, then the target static IP address is `10.0.0.19` if available. Otherwise it is `10.0.0.254`. |
92 | 92 |
|
93 | 93 | - The failover VNet is the target network that you select when you set up disaster recovery.
|
94 |
| -- We recommend that you always use a non-production network for test failover. |
95 |
| -- You can modify the target IP address in the **Network** settings of the VM. |
| 94 | +- We recommend that you always use a nonproduction network for test failover. |
| 95 | +- You can modify the target IP address in the **Network** settings of the virtual machine. |
96 | 96 |
|
97 | 97 |
|
98 | 98 | ## Next steps
|
99 | 99 |
|
100 |
| -- Review [networking guidance](./azure-to-azure-about-networking.md) for Azure VM disaster recovery. |
| 100 | +- Review [networking guidance](./azure-to-azure-about-networking.md) for Azure virtual machine disaster recovery. |
101 | 101 | - [Learn more](site-recovery-retain-ip-azure-vm-failover.md) about retaining IP addresses after failover.
|
0 commit comments