Skip to content

Commit d7cf7e8

Browse files
Merge pull request #303099 from esvmicrosoft/rhel10
Added an update for RHEL10 and above
2 parents f678cb3 + fbcfc8d commit d7cf7e8

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

includes/virtual-network-multiple-ip-addresses-os-config.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Connect and sign in to a VM you created with multiple private IP addresses. You
2121

2222
1. Open a command prompt or PowerShell.
2323

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.
2525

2626
3. Enter **`ncpa.cpl`** at the command line to open the **Network Connections** configuration.
2727

@@ -49,7 +49,7 @@ Connect and sign in to a VM you created with multiple private IP addresses. You
4949

5050
10. Enter the private **IP address** you added to the Azure network interface. Enter the corresponding **Subnet mask**. Select **Add**.
5151

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.
5353

5454
> [!IMPORTANT]
5555
> 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
5858

5959
12. Select **OK** to close the secondary IP address settings.
6060

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.
6262

6363
14. Open a command prompt or PowerShell.
6464

6565
15. Enter **`ipconfig /all`** at the command line.
6666

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.
6868

6969
```powershell
7070
PS C:\Users\azureuser> ipconfig /all
@@ -109,7 +109,7 @@ ping -S 10.1.0.5 outlook.com
109109
```
110110

111111
> [!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.
113113
114114
</details>
115115

@@ -118,7 +118,7 @@ ping -S 10.1.0.5 outlook.com
118118
<details>
119119
<summary>Expand</summary>
120120

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.
122122

123123
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/.
124124

@@ -143,7 +143,7 @@ We recommend looking at the latest documentation for your Linux distribution.
143143

144144
* Keep the existing line item for dhcp. The primary IP address remains configured as it was previously.
145145

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:
147147

148148
```bash
149149
cd /etc/network/interfaces.d/
@@ -167,7 +167,7 @@ We recommend looking at the latest documentation for your Linux distribution.
167167
netmask 255.255.255.0
168168
```
169169

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:
171171

172172
```bash
173173
iface eth0 inet static
@@ -224,9 +224,9 @@ ping -I 10.1.0.5 outlook.com
224224
```
225225
226226
> [!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.
228228

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:
230230

231231
```bash
232232
echo 150 custom >> /etc/iproute2/rt_tables
@@ -250,7 +250,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
250250
<details>
251251
<summary>Expand</summary>
252252

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.
254254

255255
1. Open a terminal window.
256256

@@ -276,7 +276,7 @@ Ubuntu 18.04 and above have changed to **`netplan`** for OS network management.
276276
addresses:
277277
- 10.1.0.5/24
278278
```
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:
280280
281281
```bash
282282
network:
@@ -301,7 +301,7 @@ Ubuntu 18.04 and above have changed to **`netplan`** for OS network management.
301301
```
302302
303303
> [!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 wait 120 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, wait 2 minutes, and then reconnect. At that time, the changes will have been rolled back.
305305

306306
7. Assuming no issues with **`netplan try`**, apply the configuration changes:
307307

@@ -341,7 +341,7 @@ ping -I 10.1.0.5 outlook.com
341341
>[!NOTE]
342342
>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.
343343

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:
345345

346346
```bash
347347
echo 150 custom >> /etc/iproute2/rt_tables
@@ -365,6 +365,9 @@ ip route add default via 10.1.0.1 dev eth2 table custom
365365
<details>
366366
<summary>Expand</summary>
367367

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+
368371
1. Open a terminal window.
369372
370373
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
387390

388391
You should see **ifcfg-eth0** as one of the files.
389392

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 for each IP added to the system.
391394

392395
```bash
393396
touch ifcfg-eth0:0
@@ -399,7 +402,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
399402
vi ifcfg-eth0:0
400403
```
401404

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.
403406

404407
```bash
405408
DEVICE=eth0:0
@@ -415,7 +418,7 @@ ip route add default via 10.1.0.1 dev eth2 table custom
415418
:wq
416419
```
417420

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:
419422

420423
```bash
421424
touch ifcfg-eth0:1
@@ -474,9 +477,9 @@ To ensure you're able to connect to the internet from your secondary IP configur
474477
ping -I 10.0.0.5 outlook.com
475478
```
476479
>[!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.
478481

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:
480483

481484
```bash
482485
echo 150 custom >> /etc/iproute2/rt_tables
@@ -515,7 +518,7 @@ We recommend looking at the latest documentation for your Linux distribution.
515518

516519
* Keep the existing line item for dhcp. The primary IP address remains configured as it was previously.
517520

518-
* 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:
519522

520523
```bash
521524
cd /etc/network/interfaces.d/
@@ -539,7 +542,7 @@ We recommend looking at the latest documentation for your Linux distribution.
539542
netmask 255.255.255.0
540543
```
541544

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 in the configuration file:
543546

544547
```bash
545548
iface eth0 inet static
@@ -556,7 +559,7 @@ We recommend looking at the latest documentation for your Linux distribution.
556559
:wq
557560
```
558561

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:
560563

561564
```bash
562565
systemctl restart networking
@@ -597,9 +600,9 @@ ping -I 10.1.0.5 outlook.com
597600
```
598601
599602
> [!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.
601604

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:
603606

604607
```bash
605608
echo 150 custom >> /etc/iproute2/rt_tables

0 commit comments

Comments
 (0)