Why does File and Print Sharing Fail after creating Hyper-V External Virtual Switch?












2















I'm running a couple of VMs under Hyper-V that I use for testing. I created an "External" Virtual Switch using my NIC so that the VMs would have access to the Internet along with the host PC--the VMs and the host could all access the Internet after creating the switch. However, File and Print Sharing to the host from other PCs in my network quit working; the host in this case is also used as a file server.



I went through the Network troubleshooting from the another box trying to connect to the host and got, "file and print sharing resource is online but isn't responding to connection attempts."



I did find this article, which says:




[When] you create an External virtual network switch with the name
"ExtSwitch" and map this virtual switch to a physical network adapter
named "Intel(R) 82576 Gigabit Dual Port Network." When you click the
Apply button, the following changes are processed in the property of
the physical network adapter:




  • Unbinds the following services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4, TCP/IP Protocol IPv6, any other service, client
    or protocol listed in the physical network adapter property.

  • Bind the "Microsoft Virtual Network Switch Protocol"


In addition, the changes below are done in the property of the
External virtual network switch, in this case ExtSwitch:




  • Bind the following Services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4 and TCP/IP Protocol IPv6.

  • Unbind the "Microsoft Virtual Network Switch Protocol."




It looks like, "File and Print Sharing for Microsoft Networks" should get re-bound to the new external switch.



I should note that I have recently applied the Creators update to all of my machines.



What is it about using a NIC for a Hyper-V External Virtual Switch that breaks File and Print Sharing over that same connection?










share|improve this question

























  • did you find a way to solve this? I tried enabling File and Print Sharing for Microsoft Networks on the bridge interface, but checkbox gets removed after saving

    – Nazar554
    Dec 18 '18 at 16:08











  • See my answer. Disabling IPv6 in my router resolved the problem for me. I was disabling/re-enabling File & Print sharing on each network adapter that supported it before this. Hope this helps.

    – Ray Megal
    Jan 15 at 2:20
















2















I'm running a couple of VMs under Hyper-V that I use for testing. I created an "External" Virtual Switch using my NIC so that the VMs would have access to the Internet along with the host PC--the VMs and the host could all access the Internet after creating the switch. However, File and Print Sharing to the host from other PCs in my network quit working; the host in this case is also used as a file server.



I went through the Network troubleshooting from the another box trying to connect to the host and got, "file and print sharing resource is online but isn't responding to connection attempts."



I did find this article, which says:




[When] you create an External virtual network switch with the name
"ExtSwitch" and map this virtual switch to a physical network adapter
named "Intel(R) 82576 Gigabit Dual Port Network." When you click the
Apply button, the following changes are processed in the property of
the physical network adapter:




  • Unbinds the following services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4, TCP/IP Protocol IPv6, any other service, client
    or protocol listed in the physical network adapter property.

  • Bind the "Microsoft Virtual Network Switch Protocol"


In addition, the changes below are done in the property of the
External virtual network switch, in this case ExtSwitch:




  • Bind the following Services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4 and TCP/IP Protocol IPv6.

  • Unbind the "Microsoft Virtual Network Switch Protocol."




It looks like, "File and Print Sharing for Microsoft Networks" should get re-bound to the new external switch.



I should note that I have recently applied the Creators update to all of my machines.



What is it about using a NIC for a Hyper-V External Virtual Switch that breaks File and Print Sharing over that same connection?










share|improve this question

























  • did you find a way to solve this? I tried enabling File and Print Sharing for Microsoft Networks on the bridge interface, but checkbox gets removed after saving

    – Nazar554
    Dec 18 '18 at 16:08











  • See my answer. Disabling IPv6 in my router resolved the problem for me. I was disabling/re-enabling File & Print sharing on each network adapter that supported it before this. Hope this helps.

    – Ray Megal
    Jan 15 at 2:20














2












2








2








I'm running a couple of VMs under Hyper-V that I use for testing. I created an "External" Virtual Switch using my NIC so that the VMs would have access to the Internet along with the host PC--the VMs and the host could all access the Internet after creating the switch. However, File and Print Sharing to the host from other PCs in my network quit working; the host in this case is also used as a file server.



I went through the Network troubleshooting from the another box trying to connect to the host and got, "file and print sharing resource is online but isn't responding to connection attempts."



I did find this article, which says:




[When] you create an External virtual network switch with the name
"ExtSwitch" and map this virtual switch to a physical network adapter
named "Intel(R) 82576 Gigabit Dual Port Network." When you click the
Apply button, the following changes are processed in the property of
the physical network adapter:




  • Unbinds the following services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4, TCP/IP Protocol IPv6, any other service, client
    or protocol listed in the physical network adapter property.

  • Bind the "Microsoft Virtual Network Switch Protocol"


In addition, the changes below are done in the property of the
External virtual network switch, in this case ExtSwitch:




  • Bind the following Services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4 and TCP/IP Protocol IPv6.

  • Unbind the "Microsoft Virtual Network Switch Protocol."




It looks like, "File and Print Sharing for Microsoft Networks" should get re-bound to the new external switch.



I should note that I have recently applied the Creators update to all of my machines.



What is it about using a NIC for a Hyper-V External Virtual Switch that breaks File and Print Sharing over that same connection?










share|improve this question
















I'm running a couple of VMs under Hyper-V that I use for testing. I created an "External" Virtual Switch using my NIC so that the VMs would have access to the Internet along with the host PC--the VMs and the host could all access the Internet after creating the switch. However, File and Print Sharing to the host from other PCs in my network quit working; the host in this case is also used as a file server.



I went through the Network troubleshooting from the another box trying to connect to the host and got, "file and print sharing resource is online but isn't responding to connection attempts."



I did find this article, which says:




[When] you create an External virtual network switch with the name
"ExtSwitch" and map this virtual switch to a physical network adapter
named "Intel(R) 82576 Gigabit Dual Port Network." When you click the
Apply button, the following changes are processed in the property of
the physical network adapter:




  • Unbinds the following services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4, TCP/IP Protocol IPv6, any other service, client
    or protocol listed in the physical network adapter property.

  • Bind the "Microsoft Virtual Network Switch Protocol"


In addition, the changes below are done in the property of the
External virtual network switch, in this case ExtSwitch:




  • Bind the following Services, protocols, and clients: Client for Microsoft Networks, File and Print Sharing for Microsoft Networks,
    TCP/IP Protocol IPv4 and TCP/IP Protocol IPv6.

  • Unbind the "Microsoft Virtual Network Switch Protocol."




It looks like, "File and Print Sharing for Microsoft Networks" should get re-bound to the new external switch.



I should note that I have recently applied the Creators update to all of my machines.



What is it about using a NIC for a Hyper-V External Virtual Switch that breaks File and Print Sharing over that same connection?







hyper-v file-sharing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 15 '17 at 16:26







Ray Megal

















asked Aug 8 '17 at 17:54









Ray MegalRay Megal

416




416













  • did you find a way to solve this? I tried enabling File and Print Sharing for Microsoft Networks on the bridge interface, but checkbox gets removed after saving

    – Nazar554
    Dec 18 '18 at 16:08











  • See my answer. Disabling IPv6 in my router resolved the problem for me. I was disabling/re-enabling File & Print sharing on each network adapter that supported it before this. Hope this helps.

    – Ray Megal
    Jan 15 at 2:20



















  • did you find a way to solve this? I tried enabling File and Print Sharing for Microsoft Networks on the bridge interface, but checkbox gets removed after saving

    – Nazar554
    Dec 18 '18 at 16:08











  • See my answer. Disabling IPv6 in my router resolved the problem for me. I was disabling/re-enabling File & Print sharing on each network adapter that supported it before this. Hope this helps.

    – Ray Megal
    Jan 15 at 2:20

















did you find a way to solve this? I tried enabling File and Print Sharing for Microsoft Networks on the bridge interface, but checkbox gets removed after saving

– Nazar554
Dec 18 '18 at 16:08





did you find a way to solve this? I tried enabling File and Print Sharing for Microsoft Networks on the bridge interface, but checkbox gets removed after saving

– Nazar554
Dec 18 '18 at 16:08













See my answer. Disabling IPv6 in my router resolved the problem for me. I was disabling/re-enabling File & Print sharing on each network adapter that supported it before this. Hope this helps.

– Ray Megal
Jan 15 at 2:20





See my answer. Disabling IPv6 in my router resolved the problem for me. I was disabling/re-enabling File & Print sharing on each network adapter that supported it before this. Hope this helps.

– Ray Megal
Jan 15 at 2:20










1 Answer
1






active

oldest

votes


















3














TLDR: Disabling IPv6 in my router resolved the problem.



My workaround was to run this PowerShell script whenever I restarted my PC running HyperV:



#Requires -RunAsAdministrator

# $name = "Ethernet 3"
$script:compid = "ms_server"

function Update-Binding
{
Param(
[Parameter(ValueFromPipeline = $true)]
[Microsoft.Management.Infrastructure.CimInstance]
$bindings
)
Process
{
# $bindings.Count

foreach ($binding in $bindings)
{
write-output ("Before disabling {0}" -f $binding.name)
Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

Disable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

write-output ("After disabling {0}" -f $binding.name)
Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

Start-Sleep -Seconds 3

Enable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

write-output ("After re-enabling {0}" -f $binding.name)
Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid
}
}
}

<#
# Get all ms_server bindings
#>
Update-Binding -bindings (Get-NetAdapterBinding | ? { $_.ComponentID -eq $script:compid })


File shares would work on the network after doing this.



However, I use a WRT1900AC router and read somewhere (It's been awhile and I can't find the reference.) that IPv6 was causing problems when enabled on this router. So, I disabled IPv6 in my router and everything started working again. Maybe you network gurus can explain why this would be so.



I'd like to try another router with IPv6 enabled to see if the problem is isolated to the WRT1900AC but I haven't been able to.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1238895%2fwhy-does-file-and-print-sharing-fail-after-creating-hyper-v-external-virtual-swi%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    TLDR: Disabling IPv6 in my router resolved the problem.



    My workaround was to run this PowerShell script whenever I restarted my PC running HyperV:



    #Requires -RunAsAdministrator

    # $name = "Ethernet 3"
    $script:compid = "ms_server"

    function Update-Binding
    {
    Param(
    [Parameter(ValueFromPipeline = $true)]
    [Microsoft.Management.Infrastructure.CimInstance]
    $bindings
    )
    Process
    {
    # $bindings.Count

    foreach ($binding in $bindings)
    {
    write-output ("Before disabling {0}" -f $binding.name)
    Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

    Disable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

    write-output ("After disabling {0}" -f $binding.name)
    Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

    Start-Sleep -Seconds 3

    Enable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

    write-output ("After re-enabling {0}" -f $binding.name)
    Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid
    }
    }
    }

    <#
    # Get all ms_server bindings
    #>
    Update-Binding -bindings (Get-NetAdapterBinding | ? { $_.ComponentID -eq $script:compid })


    File shares would work on the network after doing this.



    However, I use a WRT1900AC router and read somewhere (It's been awhile and I can't find the reference.) that IPv6 was causing problems when enabled on this router. So, I disabled IPv6 in my router and everything started working again. Maybe you network gurus can explain why this would be so.



    I'd like to try another router with IPv6 enabled to see if the problem is isolated to the WRT1900AC but I haven't been able to.






    share|improve this answer




























      3














      TLDR: Disabling IPv6 in my router resolved the problem.



      My workaround was to run this PowerShell script whenever I restarted my PC running HyperV:



      #Requires -RunAsAdministrator

      # $name = "Ethernet 3"
      $script:compid = "ms_server"

      function Update-Binding
      {
      Param(
      [Parameter(ValueFromPipeline = $true)]
      [Microsoft.Management.Infrastructure.CimInstance]
      $bindings
      )
      Process
      {
      # $bindings.Count

      foreach ($binding in $bindings)
      {
      write-output ("Before disabling {0}" -f $binding.name)
      Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

      Disable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

      write-output ("After disabling {0}" -f $binding.name)
      Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

      Start-Sleep -Seconds 3

      Enable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

      write-output ("After re-enabling {0}" -f $binding.name)
      Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid
      }
      }
      }

      <#
      # Get all ms_server bindings
      #>
      Update-Binding -bindings (Get-NetAdapterBinding | ? { $_.ComponentID -eq $script:compid })


      File shares would work on the network after doing this.



      However, I use a WRT1900AC router and read somewhere (It's been awhile and I can't find the reference.) that IPv6 was causing problems when enabled on this router. So, I disabled IPv6 in my router and everything started working again. Maybe you network gurus can explain why this would be so.



      I'd like to try another router with IPv6 enabled to see if the problem is isolated to the WRT1900AC but I haven't been able to.






      share|improve this answer


























        3












        3








        3







        TLDR: Disabling IPv6 in my router resolved the problem.



        My workaround was to run this PowerShell script whenever I restarted my PC running HyperV:



        #Requires -RunAsAdministrator

        # $name = "Ethernet 3"
        $script:compid = "ms_server"

        function Update-Binding
        {
        Param(
        [Parameter(ValueFromPipeline = $true)]
        [Microsoft.Management.Infrastructure.CimInstance]
        $bindings
        )
        Process
        {
        # $bindings.Count

        foreach ($binding in $bindings)
        {
        write-output ("Before disabling {0}" -f $binding.name)
        Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        Disable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        write-output ("After disabling {0}" -f $binding.name)
        Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        Start-Sleep -Seconds 3

        Enable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        write-output ("After re-enabling {0}" -f $binding.name)
        Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid
        }
        }
        }

        <#
        # Get all ms_server bindings
        #>
        Update-Binding -bindings (Get-NetAdapterBinding | ? { $_.ComponentID -eq $script:compid })


        File shares would work on the network after doing this.



        However, I use a WRT1900AC router and read somewhere (It's been awhile and I can't find the reference.) that IPv6 was causing problems when enabled on this router. So, I disabled IPv6 in my router and everything started working again. Maybe you network gurus can explain why this would be so.



        I'd like to try another router with IPv6 enabled to see if the problem is isolated to the WRT1900AC but I haven't been able to.






        share|improve this answer













        TLDR: Disabling IPv6 in my router resolved the problem.



        My workaround was to run this PowerShell script whenever I restarted my PC running HyperV:



        #Requires -RunAsAdministrator

        # $name = "Ethernet 3"
        $script:compid = "ms_server"

        function Update-Binding
        {
        Param(
        [Parameter(ValueFromPipeline = $true)]
        [Microsoft.Management.Infrastructure.CimInstance]
        $bindings
        )
        Process
        {
        # $bindings.Count

        foreach ($binding in $bindings)
        {
        write-output ("Before disabling {0}" -f $binding.name)
        Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        Disable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        write-output ("After disabling {0}" -f $binding.name)
        Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        Start-Sleep -Seconds 3

        Enable-NetAdapterBinding -Name $binding.name -ComponentId $script:compid

        write-output ("After re-enabling {0}" -f $binding.name)
        Get-NetAdapterBinding -Name $binding.name -ComponentId $script:compid
        }
        }
        }

        <#
        # Get all ms_server bindings
        #>
        Update-Binding -bindings (Get-NetAdapterBinding | ? { $_.ComponentID -eq $script:compid })


        File shares would work on the network after doing this.



        However, I use a WRT1900AC router and read somewhere (It's been awhile and I can't find the reference.) that IPv6 was causing problems when enabled on this router. So, I disabled IPv6 in my router and everything started working again. Maybe you network gurus can explain why this would be so.



        I'd like to try another router with IPv6 enabled to see if the problem is isolated to the WRT1900AC but I haven't been able to.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 15 at 2:18









        Ray MegalRay Megal

        416




        416






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1238895%2fwhy-does-file-and-print-sharing-fail-after-creating-hyper-v-external-virtual-swi%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

            How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...