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
+27-24Lines changed: 27 additions & 24 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
@@ -109,7 +109,7 @@ ping -S 10.1.0.5 outlook.com
109
109
```
110
110
111
111
> [!NOTE]
112
-
> For secondary IP configurations, you can 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.
112
+
> For secondary IP configurations, you can 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.
113
113
114
114
</details>
115
115
@@ -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
@@ -224,9 +224,9 @@ ping -I 10.1.0.5 outlook.com
224
224
```
225
225
226
226
> [!NOTE]
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.
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 isn't 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's 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 goal:
345
345
346
346
```bash
347
347
echo 150 custom >> /etc/iproute2/rt_tables
@@ -365,6 +365,9 @@ ip route add default via 10.1.0.1 dev eth2 table custom
365
365
<details>
366
366
<summary>Expand</summary>
367
367
368
+
>[!NOTE]
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
+
368
371
1. Open a terminal window.
369
372
370
373
2. Ensure you're the root user. If you aren't, enter the following command:
@@ -387,7 +390,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
387
390
388
391
You should see **ifcfg-eth0** as one of the files.
389
392
390
-
5. To add an IP address, create a configuration file for it 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.
391
394
392
395
```bash
393
396
touch ifcfg-eth0:0
@@ -399,7 +402,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
399
402
vi ifcfg-eth0:0
400
403
```
401
404
402
-
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.
403
406
404
407
```bash
405
408
DEVICE=eth0:0
@@ -415,7 +418,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
415
418
:wq
416
419
```
417
420
418
-
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:
419
422
420
423
```bash
421
424
touch ifcfg-eth0:1
@@ -474,9 +477,9 @@ To ensure you're able to connect to the internet from your secondary IP configur
474
477
ping -I 10.0.0.5 outlook.com
475
478
```
476
479
>[!NOTE]
477
-
>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.
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 isn't required to ping to the Internet.
478
481
479
-
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. See the appropriate documentation for your Linux distribution. The following method to accomplish this goal:
480
483
481
484
```bash
482
485
echo 150 custom >> /etc/iproute2/rt_tables
@@ -515,7 +518,7 @@ We recommend looking at the latest documentation for your Linux distribution.
515
518
516
519
* Keep the existing line item for dhcp. The primary IP address remains configured as it was previously.
517
520
518
-
* Add a configuration foran additional static IP address with the following commands:
521
+
* Add a configuration foreach static IP address using the following commands:
519
522
520
523
```bash
521
524
cd /etc/network/interfaces.d/
@@ -539,7 +542,7 @@ We recommend looking at the latest documentation for your Linux distribution.
539
542
netmask 255.255.255.0
540
543
```
541
544
542
-
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 inthe configuration file:
543
546
544
547
```bash
545
548
iface eth0 inet static
@@ -556,7 +559,7 @@ We recommend looking at the latest documentation for your Linux distribution.
556
559
:wq
557
560
```
558
561
559
-
7. Restart networking services for the changes to take effect. For Debian 8 and above, this can be done using below command:
562
+
7. Restart networking services for the changes to take effect. For Debian 8 and above, use:
560
563
561
564
```bash
562
565
systemctl restart networking
@@ -597,9 +600,9 @@ ping -I 10.1.0.5 outlook.com
597
600
```
598
601
599
602
> [!NOTE]
600
-
> 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.
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 isn't required to ping to the Internet.
601
604
602
-
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