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: includes/virtual-network-multiple-ip-addresses-os-config.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Connect and sign in to a VM you created with multiple private IP addresses. You
21
21
22
22
1. Open a command prompt or PowerShell.
23
23
24
-
2. Enter **`ipconfig /all`** at the command line. You'll see the **Primary** private IP address that was assigned through DHCP.
24
+
2. Enter **`ipconfig /all`** at the command line. You see the **Primary** private IP address that was assigned through DHCP.
25
25
26
26
3. Enter **`ncpa.cpl`** at the command line to open the **Network Connections** configuration.
27
27
@@ -49,7 +49,7 @@ Connect and sign in to a VM you created with multiple private IP addresses. You
49
49
50
50
10. Enter the private **IP address** you added to the Azure network interface. Enter the corresponding **Subnet mask**. Select **Add**.
51
51
52
-
11. Repeat the previous steps to add any additional private IP addresses that you added to the Azure network interface.
52
+
11. Repeat the previous steps to add any more private IP addresses that you added to the Azure network interface.
53
53
54
54
> [!IMPORTANT]
55
55
> You should never manually assign the public IP address assigned to an Azure virtual machine within the virtual machine's operating system. When you manually set the IP address within the operating system, ensure that it's the same address as the private IP address assigned to the Azure network interface. Failure to assign the address correctly can cause loss of connectivity to the virtual machine. For more information, see [Change IP address settings](../articles/virtual-network/ip-services/virtual-network-network-interface-addresses.md#change-ip-address-settings).
@@ -58,13 +58,13 @@ For more information about private IP addresses, see [Private IP address](../art
58
58
59
59
12. Select **OK** to close the secondary IP address settings.
60
60
61
-
13. Select **OK** to close the adapter settings. Your RDP connection will re-establish.
61
+
13. Select **OK** to close the adapter settings. Your RDP connection re-establishes.
62
62
63
63
14. Open a command prompt or PowerShell.
64
64
65
65
15. Enter **`ipconfig /all`** at the command line.
66
66
67
-
16. Verify the primary and secondary private IP addresses have been added to the configuration.
67
+
16. Verify the primary and secondary private IP addresses are present in the configuration.
68
68
69
69
```powershell
70
70
PS C:\Users\azureuser> ipconfig /all
@@ -118,7 +118,7 @@ ping -S 10.1.0.5 outlook.com
118
118
<details>
119
119
<summary>Expand</summary>
120
120
121
-
SUSE-based distributions use the <code>cloud-netconfig</code> plugin from the <code>cloud-netconfig-azure</code> package to manage additional IP addresses. No manual configuration is required on the part of the administrator. The first IP address of an interface set on the platform is assigned via DHCP. The cloud-netconfig plugin then probes the Azure Instance Metadata Service API continuously (once per minute) for additional IP addresses assigned to the interface and adds/removes them as secondary IP addresses automatically.
121
+
SUSE-based distributions use the <code>cloud-netconfig</code> plugin from the <code>cloud-netconfig-azure</code> package to manage the IP configuration. No manual steps are required on the part of the administrator. The first IP address of an interface set on the platform is assigned via DHCP. The cloud-netconfig plugin then probes the Azure Instance Metadata Service API continuously (once per minute) for more IP addresses assigned to the interface and adds/removes them as secondary IP addresses automatically.
122
122
123
123
This plugin should be installed and enabled on new images by default. Configuration steps for old workloads can be found here: https://www.suse.com/c/multi-nic-cloud-netconfig-ec2-azure/.
124
124
@@ -143,7 +143,7 @@ We recommend looking at the latest documentation for your Linux distribution.
143
143
144
144
* Keep the existing line item for dhcp. The primary IP address remains configured as it was previously.
145
145
146
-
* Add a configuration for an additional static IP address with the following commands:
146
+
* Add a configuration for an other static IP address with the following commands:
147
147
148
148
```bash
149
149
cd /etc/network/interfaces.d/
@@ -167,7 +167,7 @@ We recommend looking at the latest documentation for your Linux distribution.
167
167
netmask 255.255.255.0
168
168
```
169
169
170
-
To add additional private IP addresses, edit the file and add the new private IP addresses on subsequent lines:
170
+
To add other private IP addresses, edit the file and add the new private IP addresses on subsequent lines:
171
171
172
172
```bash
173
173
iface eth0 inet static
@@ -226,7 +226,7 @@ ping -I 10.1.0.5 outlook.com
226
226
> [!NOTE]
227
227
> For secondary IP configurations, you can only ping to the Internet if the configuration has a public IP address associated with it. For primary IP configurations, a public IP address is not required to ping to the Internet.
228
228
229
-
For Linux VMs, when attempting to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. See appropriate documentation for your Linux distribution. The following is one method to accomplish this:
229
+
For Linux VMs, when attempting to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. See appropriate documentation for your Linux distribution. The following method to accomplish this goal:
230
230
231
231
```bash
232
232
echo 150 custom >> /etc/iproute2/rt_tables
@@ -250,7 +250,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
250
250
<details>
251
251
<summary>Expand</summary>
252
252
253
-
Ubuntu 18.04 and above have changed to **`netplan`** for OS network management. We recommend looking at the latest documentation for your Linux distribution.
253
+
Starting on 18.04, **`netplan`** is used in Ubuntu for network management. We recommend looking at the latest documentation for your Linux distribution.
254
254
255
255
1. Open a terminal window.
256
256
@@ -276,7 +276,7 @@ Ubuntu 18.04 and above have changed to **`netplan`** for OS network management.
276
276
addresses:
277
277
- 10.1.0.5/24
278
278
```
279
-
To add additional private IP addresses, edit the file and add the new private IP addresses on subsequent lines:
279
+
To add private IP addresses, edit the file and add the new private IP addresses on subsequent lines:
280
280
281
281
```bash
282
282
network:
@@ -301,7 +301,7 @@ Ubuntu 18.04 and above have changed to **`netplan`** for OS network management.
301
301
```
302
302
303
303
> [!NOTE]
304
-
>`netplan try` will apply the changes temporarily and roll the changes back after 120 seconds. If there is a loss of connectivity, please wait120 seconds, and then reconnect. At that time, the changes will have been rolled back.
304
+
>`netplan try` will apply the changes temporarily and roll back the changes after 120 seconds. If there is a loss of connectivity, wait2 minutes, and then reconnect. At that time, the changes will have been rolled back.
305
305
306
306
7. Assuming no issues with **`netplan try`**, apply the configuration changes:
307
307
@@ -341,7 +341,7 @@ ping -I 10.1.0.5 outlook.com
341
341
>[!NOTE]
342
342
>For secondary IP configurations, you can only ping to the Internet if the configuration has a public IP address associated with it. For primary IP configurations, a public IP address isn't required to ping to the Internet.
343
343
344
-
For Linux VMs, when trying to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. There are many ways to do this. Please see appropriate documentation for your Linux distribution. The following is one method to accomplish this:
344
+
For Linux VMs, when trying to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. Follow the appropriate documentation for your Linux distribution. The following method is one way to accomplish this:
345
345
346
346
```bash
347
347
echo 150 custom >> /etc/iproute2/rt_tables
@@ -366,7 +366,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
366
366
<summary>Expand</summary>
367
367
368
368
>[!NOTE]
369
-
>To configure the additional IP addresses in RHEL10.x it's enough to restart NetworkManger with: `systemctl restart NetworkManger.service`. No additional steps are required.
369
+
>To configure the extra IP addresses in RHEL10.x it's enough to restart NetworkManger with: `systemctl restart NetworkManger.service` or reboot the system. No other steps are required.
370
370
371
371
1. Open a terminal window.
372
372
@@ -390,7 +390,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
390
390
391
391
You should see **ifcfg-eth0** as one of the files.
392
392
393
-
5. To add an IP address, create a configuration file forit as shown below. Note that one file must be created for each IP configuration.
393
+
5. Create a new configuration file foreach IP added to the system.
394
394
395
395
```bash
396
396
touch ifcfg-eth0:0
@@ -402,7 +402,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
402
402
vi ifcfg-eth0:0
403
403
```
404
404
405
-
7. Add content to the file, **eth0:0**in this case, with the following command. Replace **`10.1.0.5`** with your additional private IP address and subnet mask.
405
+
7. Add content to the file, **eth0:0**in this case, with the following command. Replace **`10.1.0.5`** with your new private IP address and subnet mask.
406
406
407
407
```bash
408
408
DEVICE=eth0:0
@@ -418,7 +418,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
418
418
:wq
419
419
```
420
420
421
-
9. To add additional private IP addresses to the network configuration, create additional config files and add the IP information into the file.
421
+
9. Create a config file per IP address to add with their corresponding values:
422
422
423
423
```bash
424
424
touch ifcfg-eth0:1
@@ -479,7 +479,7 @@ ping -I 10.0.0.5 outlook.com
479
479
>[!NOTE]
480
480
>For secondary IP configurations, you can only ping to the Internet if the configuration has a public IP address associated with it. For primary IP configurations, a public IP address is not required to ping to the Internet.
481
481
482
-
For Linux VMs, when attempting to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. Please see appropriate documentation for your Linux distribution. The following is one method to accomplish this:
482
+
For Linux VMs, when attempting to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. Please see appropriate documentation for your Linux distribution. The following method to accomplish this goal:
483
483
484
484
```bash
485
485
echo 150 custom >> /etc/iproute2/rt_tables
@@ -518,7 +518,7 @@ We recommend looking at the latest documentation for your Linux distribution.
518
518
519
519
* Keep the existing line item for dhcp. The primary IP address remains configured as it was previously.
520
520
521
-
* Add a configuration for an additional static IP address with the following commands:
521
+
* Add a configuration for each static IP address using the following commands:
522
522
523
523
```bash
524
524
cd /etc/network/interfaces.d/
@@ -542,7 +542,7 @@ We recommend looking at the latest documentation for your Linux distribution.
542
542
netmask 255.255.255.0
543
543
```
544
544
545
-
To add additional private IP addresses, edit the file and add the new private IP addresses on subsequent lines:
545
+
Add the new IP addresses information in the configuration file:
546
546
547
547
```bash
548
548
iface eth0 inet static
@@ -602,7 +602,7 @@ ping -I 10.1.0.5 outlook.com
602
602
> [!NOTE]
603
603
> For secondary IP configurations, you can only ping to the Internet if the configuration has a public IP address associated with it. For primary IP configurations, a public IP address is not required to ping to the Internet.
604
604
605
-
For Linux VMs, when attempting to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. See appropriate documentation for your Linux distribution. The following is one method to accomplish this:
605
+
For Linux VMs, when attempting to validate outbound connectivity from a secondary NIC, you may need to add appropriate routes. See appropriate documentation for your Linux distribution. The following method to accomplish this goal:
0 commit comments