-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-VMSwitch command overrides interface's MTU #84
Comments
I can confirm this behavior too. |
Ping @dineshgovindasamy |
ping @dineshgovindasamy, @viaror |
Thanks for reporting this issue. Can you give us some more details as to why you're reducing MTU size? Are you trying to account for encapsulation overhead (or something similar) in a public cloud environment? |
Yeah, you're exactly right: on Google Compute Engine the maximum guest MTU is 1460 to allow for encapsulation overhead in the cloud network. |
Following up internally. Will get back to you as soon as possible. |
This is currently "by design". Hyper-V VM Switch does not inherit MTU settings from the network adapter. You can decrease MTU after the fact. In our clouds we are accounting for this by enabling JF (or at least increasing MTU by specifying a specific value) and continue to expose 1514 MTU to the guest. |
Delayed follow-up question: when I run a netsh command like the following to set the MTU, does anyone know where the MTU value gets stored?
I expected it to end up in the registry, but I searched using regedit and could not find 1460 anywhere. Is there another location in the file system where this value gets saved when set with store=persistent? I tried to search for this information but could not find it. The reason I'm asking is that when I run a docker container its @JMesser81 @dineshgovindasamy @viaror @kallie-b if you have any information, that would be appreciated! **It turns out that if I run a container with |
@pjh - We add the add the adapter at run-time and so it is not persisted. We will look for another way to change the default MTU. Note: it is already reduced to 50B on any container interfaces connected to an overlay network. |
A note for anyone trying to work around this issue, which is still a nuisance over two years later... For some reason the
However, if I run this
|
I've been experimenting with containers on Windows Server 2016 and I ran into a problem: somewhere during the container networking setup the MTU of my interface was changed. I think I've narrowed it down to the
New-VMSwitch
command (I believe this command is executed during the default docker network setup). Executing the steps below in powershell as Administrator should reproduce the problem; I just followed them in new Windows Server 2016 VMs on Azure / EC2 / GCE.This unexpected MTU change will cause packet fragmentation and potentially other issues (in my case my RDP connection did not work until I lowered the MTU again). Is there a reason that
New-VMSwitch
overrides the MTU on the Ethernet interface? Can the command be changed to inherit the MTU from the interface?(Filing this bug here after looking at https://technet.microsoft.com/en-us/windows-server-docs/networking/sdn/contact-sdn-team - hopefully this is the right place.)
The text was updated successfully, but these errors were encountered: