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
| Windows Server | Mellanox Cx3, Cx4, Cx5| 3900 </br> **When setting the MTU value with `Set-NetAdapterAdvancedProperty`, use the value `4088`. The value used when setting the MTU with `netsh` is 3900.**|
30
-
| Windows Server | (Preview) Microsoft Azure Network Adapter MANA | 9000 </br> **When setting the MTU value with `Set-NetAdapterAdvancedProperty`, use the value `9014`. The value used when setting the MTU with `netsh` is 9000.**|
31
-
| Linux | Mellanox Cx3, Cx4, Cx5| 3900 |
29
+
| Windows Server | Mellanox Cx-3, Cx-4, Cx-5| 3900 </br> **When setting the MTU value with `Set-NetAdapterAdvancedProperty`, use the value `4088`.**. **To persist reboots, the value returned by `Test-Connection` must also be set with `Set-NetIPInterface`.**|
30
+
| Windows Server | (Preview) Microsoft Azure Network Adapter MANA | 9000 </br> **When setting the MTU value with `Set-NetAdapterAdvancedProperty`, use the value `9014`.****To persist reboots, the value returned by `Test-Connection` must also be set with `Set-NetIPInterface`.**|
31
+
| Linux | Mellanox Cx-3, Cx-4, Cx-5| 3900 |
32
32
| Linux | (Preview) Microsoft Azure Network Adapter | 9000 |
33
33
34
34
## Prerequisites
@@ -64,7 +64,7 @@ The following resources are used as examples in this article. Replace these valu
64
64
65
65
## Precautions
66
66
67
-
- Virtual machines in Azure can support a larger MTU than the 1,500-byte default only for traffic that stays within the virtual network. A larger MTU isn't supported for scenarios outside of inter-virtual network VM-to-VM traffic. Traffic traversing through gateways, peering’s, or to the internet might not be supported. Configuration of a larger MTU can result in fragmentation and reduction in performance. For traffic utilizing these scenarios, utilize the default 1,500 byte MTU for testing to ensure that a larger MTU is supported across the entire network path.
67
+
- Virtual machines in Azure can support a larger MTU than the 1,500-byte default only for traffic that stays within the virtual network. A larger MTU isn't supported for scenarios outside of intra-virtual network VM-to-VM traffic. Traffic traversing through gateways, peering’s, or to the internet might not be supported. Configuration of a larger MTU can result in fragmentation and reduction in performance. For traffic utilizing these scenarios, utilize the default 1,500 byte MTU for testing to ensure that a larger MTU is supported across the entire network path.
68
68
69
69
- Optimal MTU is operating system, network, and application specific. The maximal supported MTU might not be optimal for your use case.
70
70
@@ -88,7 +88,7 @@ Use the following steps to change the MTU size on a Linux virtual machine:
88
88
89
89
1. Sign-in to **vm-1**
90
90
91
-
1. Use the `ip` command to show the current network interfaces and their MTU settings, Record the IP address for the subsequent steps. In this example, the IP address is **10.0.0.4**.
91
+
1. Use the `ip` command to show the current network interfaces and their MTU settings, Record the IP address for the subsequent steps. In this example, the IP address is **10.0.0.4** and the ethernet interface is **eth0**.
92
92
93
93
```bash
94
94
ip address show
@@ -115,7 +115,7 @@ Use the following steps to change the MTU size on a Linux virtual machine:
115
115
valid_lft forever preferred_lft forever
116
116
```
117
117
118
-
1. Set the MTU value on **vm-1** to the highest value supported by the network interface.
118
+
1. Set the MTU value on **vm-1** to the highest value supported by the network interface. In this example, the name of the network interface is **eth0**. Replace this value with your value.
119
119
120
120
* For the Mellanox adapter, use the following example to set the MTU value to **3900**:
121
121
@@ -428,20 +428,20 @@ Use the following steps to change the MTU size on a Windows Server virtual machi
428
428
vm-1 10.0.0.5 1 Success 3892
429
429
```
430
430
431
-
1. Verify the MTU size on the network interface using `PING`. For Windows, use -f and -l. The -f option instructs ping to NOT fragment and -l sets the packet size. To determine the packet size, subtract 28 from the MTU setting of 3900.
431
+
1. Verify the MTU size on the network interface using `PING`. For Windows, use -f and -l. The -f option instructs ping to NOT fragment and -l sets the packet size. Use the value returned by the `Test-Connection`commandforthe MtuSize property. In this example, it's **3892**.
432
432
433
433
```powershell
434
-
ping 10.0.0.5 -f -l 3872
434
+
ping 10.0.0.5 -f -l 3892
435
435
```
436
436
437
437
```output
438
-
PS C:\Users\azureuser> ping 10.0.0.5 -f -l 3872
438
+
PS C:\Users\azureuser> ping 10.0.0.5 -f -l 3892
439
439
440
-
Pinging 10.0.0.5 with 3872 bytes of data:
441
-
Reply from 10.0.0.5: bytes=3872 time=1ms TTL=128
442
-
Reply from 10.0.0.5: bytes=3872 time<1ms TTL=128
443
-
Reply from 10.0.0.5: bytes=3872 time=1ms TTL=128
444
-
Reply from 10.0.0.5: bytes=3872 time=1ms TTL=128
440
+
Pinging 10.0.0.5 with 3892 bytes of data:
441
+
Reply from 10.0.0.5: bytes=3892 time=1ms TTL=128
442
+
Reply from 10.0.0.5: bytes=3892 time<1ms TTL=128
443
+
Reply from 10.0.0.5: bytes=3892 time=1ms TTL=128
444
+
Reply from 10.0.0.5: bytes=3892 time=1ms TTL=128
445
445
446
446
Ping statistics for 10.0.0.5:
447
447
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
@@ -452,9 +452,9 @@ Use the following steps to change the MTU size on a Windows Server virtual machi
452
452
An indication that there is a mismatch in settings between the source and destination displays as an error message in the output. In this case, the MTU isn't set on the source network interface.
453
453
454
454
```output
455
-
PS C:\Users\azureuser> ping 10.0.0.5 -f -l 3872
455
+
PS C:\Users\azureuser> ping 10.0.0.5 -f -l 3892
456
456
457
-
Pinging 10.0.0.5 with 3872 bytes of data:
457
+
Pinging 10.0.0.5 with 3892 bytes of data:
458
458
Packet needs to be fragmented but DF set.
459
459
Packet needs to be fragmented but DF set.
460
460
Packet needs to be fragmented but DF set.
@@ -464,33 +464,27 @@ Use the following steps to change the MTU size on a Windows Server virtual machi
464
464
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
465
465
```
466
466
467
-
1. Use `netsh` to determine the subinterface name for the subsequent commands.
467
+
1. Use `Get-NetIPInterface` to determine the current MTU value. The interface alias used inthe following example is **Ethernet 2**. Replace this value with your value.
468
468
469
469
```powershell
470
-
netsh interface ipv4 show subinterface
470
+
Get-NetIPInterface -InterfaceAlias "Ethernet 2"
471
471
```
472
472
473
473
```output
474
-
C:\Users\azureuser>netsh interface ipv4 show subinterface
1. Use `netsh` to set the MTU value for **vm-1** to persist reboots.
476
+
1. Use `Set-NetIPInterface` to set the MTU value for**vm-1** to persist reboots. For the MTU value, **3892** is usedin this example. Replace this value with your value returned by the `Test-Connection` command.
483
477
484
478
* Mellanox interface:
485
479
486
480
```powershell
487
-
netsh interface ipv4 set subinterface "Ethernet 2" mtu=3900 store=persistent
@@ -552,33 +546,27 @@ Use the following steps to change the MTU size on a Windows Server virtual machi
552
546
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
553
547
```
554
548
555
-
1. Use `netsh` to determine the subinterface name for the subsequent commands.
549
+
1. Use `Get-NetIPInterface` to determine the current MTU value. The interface alias used inthe following example is **Ethernet 2**. Replace this value with your value.
556
550
557
551
```powershell
558
-
netsh interface ipv4 show subinterface
552
+
Get-NetIPInterface -InterfaceAlias "Ethernet 2"
559
553
```
560
554
561
555
```output
562
-
C:\Users\azureuser>netsh interface ipv4 show subinterface
1. Use the following steps on **vm-2** to set the MTU value for **vm-2** to persist reboots.
558
+
1. Use `Set-NetIPInterface` to setthe MTU value for**vm-2** to persist reboots. For the MTU value, **3892** is usedin this example. Replace this value with your value returned by the `Test-Connection` command.
571
559
572
-
* Mellanox interface:
560
+
* Mellanox interface:
573
561
574
562
```powershell
575
-
netsh interface ipv4 set subinterface "Ethernet 2" mtu=3900 store=persistent
0 commit comments