is there a way to change the MTU for physical NICs [vmnic] without downtime?
The issue is that MTU 9000 was enabled on vmkernel and not enabled on physical ports which is not recommended and such kind of configuration impact performance and I'm able to identify a high % of dropped packets
Afaik you can change the MTU without the need of a reboot.
Get-VMHost | Get-VMHostNetworkAdapter -VMKernel |
where{$_.Mtu -ne $mtuSize} |
Set-VMHostNetworkAdapter -Mtu $mtuSize -Confirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Afaik you can change the MTU without the need of a reboot.
Get-VMHost | Get-VMHostNetworkAdapter -VMKernel |
where{$_.Mtu -ne $mtuSize} |
Set-VMHostNetworkAdapter -Mtu $mtuSize -Confirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc but this is to change MTU on VMKernel and my question is related to physical vmnic ports
shall I try something like this:
$mtuSize = 9000
Get-VMHost | Get-VMHostNetworkAdapter -Physical |
Where-Object{$_.Mtu -ne $mtuSize} |
Set-VMHostNetworkAdapter -Mtu $mtuSize -Confirm:$false >>
can I get output for the vmnic into a file before change and got the config after change?
I'm not sure exactly what you are trying to do.
Afaik, you can set the MTU on a vmkernel or on a switch (VSS and VDS).
When done on a switch, all uplinks used by that switch will be set to that MTU.
I never set the MTU directly on a 'physical' vmnic.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I'm trying to change the MTU on physicall ports because if it's noit set like vmkernel it create a lot of dropped packets
I don't know how to do that, and I don't know if that is even possible
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
it's Ok I got it 🙂
In fact, the MTU of the physical port changes once the vmkernels are in a vDS 😊