Skip to content

Commit d07d249

Browse files
committed
fixes
1 parent 812a3ef commit d07d249

File tree

1 file changed

+59
-10
lines changed

1 file changed

+59
-10
lines changed

articles/virtual-network/how-to-virtual-machine-mtu.md

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -464,27 +464,52 @@ Use the following steps to change the MTU size on a Windows Server virtual machi
464464
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
465465
```
466466

467-
1. Use `Get-NetIPInterface` to determine the current MTU value. The interface alias used in the following example is **Ethernet 2**. Replace this value with your value.
467+
1. Use `Get-NetIPInterface` to determine the interface alias and the current MTU value.
468468

469469
```powershell
470-
Get-NetIPInterface -InterfaceAlias "Ethernet 2"
470+
Get-NetIPInterface
471471
```
472472

473473
```output
474+
PS C:\Users\azureuser> Get-NetIPInterface
475+
476+
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
477+
------- -------------- ------------- ------------ --------------- ---- --------------- -----------
478+
6 Ethernet IPv6 4074 10 Enabled Connected ActiveStore
479+
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore
480+
6 Ethernet IPv4 4074 10 Enabled Connected ActiveStore
481+
1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Enabled Connected ActiveStore
474482
```
475483

476-
1. Use `Set-NetIPInterface` to set the MTU value for **vm-1** to persist reboots. For the MTU value, **3892** is used in this example. Replace this value with your value returned by the `Test-Connection` command.
484+
In the example, the interface alias is **Ethernet** and the MTU value is **4074**.
485+
486+
1. Use `Set-NetIPInterface` to set the MTU value for **vm-1** to persist reboots. For the MTU value, **3892** is used in this example. Replace this value with your value returned by the `Test-Connection` command. The interface alias is **Ethernet** in this example. Replace this value with your value.
477487

478488
* Mellanox interface:
479489

480490
```powershell
481-
Set-NetIPInterface -InterfaceAlias "Ethernet 2" -NIMtuBytes 3892
491+
Set-NetIPInterface -InterfaceAlias "Ethernet" -NIMtuBytes 3892
482492
```
483493

484494
* Microsoft Azure Network Adapter:
485495

486496
```powershell
487-
Set-NetIPInterface -InterfaceAlias "Ethernet 2" -NIMtuBytes 9000
497+
Set-NetIPInterface -InterfaceAlias "Ethernet" -NIMtuBytes 9000
498+
```
499+
500+
1. Use `Get-NetIPInterface` to verify the MTU was set with `Set-NetIPInterface`.
501+
502+
```powershell
503+
Get-NetIPInterface -InterfaceAlias "Ethernet"
504+
```
505+
506+
```output
507+
PS C:\Users\azureuser> Get-NetIPInterface -InterfaceAlias "Ethernet"
508+
509+
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
510+
------- -------------- ------------- ------------ --------------- ---- --------------- -----------
511+
6 Ethernet IPv6 3892 10 Enabled Connected ActiveStore
512+
6 Ethernet IPv4 3892 10 Enabled Connected ActiveStore
488513
```
489514

490515
1. Sign-in to **vm-2**.
@@ -546,29 +571,53 @@ Use the following steps to change the MTU size on a Windows Server virtual machi
546571
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
547572
```
548573

549-
1. Use `Get-NetIPInterface` to determine the current MTU value. The interface alias used in the following example is **Ethernet 2**. Replace this value with your value.
574+
1. Use `Get-NetIPInterface` to determine the interface alias and the current MTU value.
550575

551576
```powershell
552-
Get-NetIPInterface -InterfaceAlias "Ethernet 2"
577+
Get-NetIPInterface
553578
```
554579

555580
```output
581+
PS C:\Users\azureuser> Get-NetIPInterface
582+
583+
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
584+
------- -------------- ------------- ------------ --------------- ---- --------------- -----------
585+
6 Ethernet IPv6 4074 10 Enabled Connected ActiveStore
586+
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore
587+
6 Ethernet IPv4 4074 10 Enabled Connected ActiveStore
588+
1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Enabled Connected ActiveStore
556589
```
557590

558-
1. Use `Set-NetIPInterface` to set the MTU value for **vm-2** to persist reboots. For the MTU value, **3892** is used in this example. Replace this value with your value returned by the `Test-Connection` command.
591+
In the example, the interface alias is **Ethernet** and the MTU value is **4074**.
592+
593+
1. Use `Set-NetIPInterface` to set the MTU value for **vm-2** to persist reboots. For the MTU value, **3892** is used in this example. Replace this value with your value returned by the `Test-Connection` command. The interface alias is **Ethernet** in this example. Replace this value with your value.
559594

560595
* Mellanox interface:
561596

562597
```powershell
563-
Set-NetIPInterface -InterfaceAlias "Ethernet 2" -NIMtuBytes 3892
598+
Set-NetIPInterface -InterfaceAlias "Ethernet" -NIMtuBytes 3892
564599
```
565600

566601
* Microsoft Azure Network Adapter:
567602

568603
```powershell
569-
Set-NetIPInterface -InterfaceAlias "Ethernet 2" -NIMtuBytes 9000
604+
Set-NetIPInterface -InterfaceAlias "Ethernet" -NIMtuBytes 9000
570605
```
571606

607+
1. Use `Get-NetIPInterface` to verify the MTU was set with `Set-NetIPInterface`.
608+
609+
```powershell
610+
Get-NetIPInterface -InterfaceAlias "Ethernet"
611+
```
612+
613+
```output
614+
PS C:\Users\azureuser> Get-NetIPInterface -InterfaceAlias "Ethernet"
615+
616+
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
617+
------- -------------- ------------- ------------ --------------- ---- --------------- -----------
618+
6 Ethernet IPv6 3892 10 Enabled Connected ActiveStore
619+
6 Ethernet IPv4 3892 10 Enabled Connected ActiveStore
620+
```
572621
---
573622

574623
## Revert changes

0 commit comments

Comments
 (0)