Skip to content

No interfaces in Ubuntu when using networkingMode=mirrored #11002

Closed

Description

Windows Version

10.0.22621.2861

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

20.04

Other Software

N/A

Repro Steps

%UserProfile%\.wslconfig

[wsl2]
networkingMode=mirrored
dnsTunneling=true

When I connect to our corporate network via GlobalProtect VPN client, which was recently re-configured from split-tunnel to full-tunnel VPN, I have no Internet (whereas it works fine while disconnected). When not using the above networkingMode=mirrored, connectivity to the Internet does not work due to GlobalProtect taking priority over all routes on the host workstation. Anything like "sudo apt update" or other things that will hit the Internet will fail. DNS resolution works just fine with the "dnsTunneling=true" setting set to true and all lookups work fine.

Once I set "networkingMode=mirrored" in the .wslconfig file, all interfaces within the Ubuntu VM disappear except for the "lo" interface. I and several others in our organization are seeing the same thing. We do have one individual in the organization that seems to be operating fine with "networkingMode=mirrored", but we have been unable to determine what is different about this individual's configuration.

Expected Behavior

With "networkingMode=mirrored", I would expect to see my host workstation interfaces mirrored into my Ubuntu instance.

Actual Behavior

All interfaces except "lo" get removed when "networkingMode=mirrored" is configured.

Diagnostic Logs

Have emailed to [email protected]

Activity

  1. github-actions commented on Jan 9, 2024

    @github-actions
    Contributor

    Hi I'm an AI powered bot that finds similar issues based off the issue title.

    Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

    Open similar issues:

    Closed similar issues:

    Note: You can give me feedback by thumbs upping or thumbs downing this comment.

  2. erikspigle-payroc commented on Jan 9, 2024

    @erikspigle-payroc
    Author

    If it helps, I've tried Ubuntu 22.04 as well, and have flipped between a few wsl versions including 2.0.9 and 2.0.15 pre-release on top of what I'm testing now with the newest non-pre-release. I and a few other engineers with our company are unable to make this networkingMode=mirrored setting work without watching all of our interfaces get clobbered. I have completely uninstalled all of WSL and kernels, as well as features like Hyper-V, Virtual Machine Platform and Windows Subsystem for Linux and started all over with a basic wsl --install to start fresh, but to no avail.

  3. chanpreetdhanjal commented on Jan 9, 2024

    @chanpreetdhanjal
  4. erikspigle-payroc commented on Jan 9, 2024

    @erikspigle-payroc
    Author

    I already did when I posted this issue initially and sent them to the email address indicated in my post. I was requested not to post the logs directly to here by my company's InfoSec team. They were emailed to [email protected] as indicated in your link already.

  5. chanpreetdhanjal commented on Jan 9, 2024

    @chanpreetdhanjal

    Craig Loewen (@craigloewen-msft) can you share the logs?

  6. erikspigle-payroc commented on Jan 10, 2024

    @erikspigle-payroc
    Author

    Checking back in again to see if there is anything further that I can provide. We had another ticket put in where around 15 people from a couple other departments are dealing with this and the number of reported impacted users is increasing.

    I did take another opportunity to purge all things related to WSL2 / Hyper-V / Virtual Machine Platform from my system and then re-install with "wsl --install" once rebooted and back. There must be some residual settings or something else that keeps impacting this. I took the opportunity to update to the latest 2.1.0.0 release as well, but that made no difference. I did take an opportunity to look at my Windows "System" event viewer log and there are around 80 entries getting logged every 30 seconds connected to the "Hyper-V-VmSwitch" and "VfpExt" sources. The events show NICs and vSwitches being created and deleted repeatedly with a friendly name of "FSE HostVnic". I cannot find much about what this is.

    Let me know if there is any further log information that I can provide.

  7. erikspigle-payroc commented on Jan 11, 2024

    @erikspigle-payroc
    Author

    chanpreetdhanjal I just emailed over additional WSL logs generated from collect-wsl-logs.ps1 to go along with the ones collected by collect-networking-logs.ps1

  8. erikspigle-payroc commented on Jan 19, 2024

    @erikspigle-payroc
    Author

    It has been well over a week since last response to this issue. Are there additional details that I can provide to work towards resolution? We have a large number of engineers affected by this still. People are using various workarounds in the interim (either falling back to WSL1, not ideal, or keeping networkingMode set to NAT and running a workaround PowerShell script to adjust route metrics on the host workstation to get around imposed full VPN tunnel routes).

  9. chanpreetdhanjal commented on Jan 19, 2024

    @chanpreetdhanjal

    I am not getting the messages. Craig Loewen (@craigloewen-msft) can you please pass along the logs and details? @erik-spigle-payroc our team is on it and we will get back to you as soon as we have an update for you. Thanks!

  10. erikspigle-payroc commented on Jan 19, 2024

    @erikspigle-payroc
    Author

    Thanks for checking back in. If there is another secure means to send the logs over, I'm happy to pursue another avenue to do-so.

    Thanks.

  11. chanpreetdhanjal commented on Jan 19, 2024

    @chanpreetdhanjal

    Nope we have the logs now.

  12. J0F3 commented on Feb 8, 2024

    @J0F3

    chanpreetdhanjal: Any thing new about this issue?

    I can reproduce the issue reliable when disabling IPv6 according to this guide: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows (by setting the Registry Key DisabledComponents to 0xFF)
    When IPv6 is disabled through the Registry Key and networkingMode=mirrored is set in .wslconfig then in WSL the loopback interface is the only interface available.

    Windows Version: 10.22631.3007 - Windows 11 23H2
    WSL Version: 2.0.14.0
    Distro Version: Ubuntu 22.04

    @erik-spigle-payroc: Maybe you have a similar configuration?
    At least the GlobalProtect VPN in Full/Force Tunneling Mode is one thing we have both im common.

  13. erikspigle-payroc commented on Feb 8, 2024

    @erikspigle-payroc
    Author

    Jonas Feller (@J0F3): I am seeing the same value in my registry. Now I am wondering if at one point in time our organization was doing something to disable IPv6 (some legacy GPO or the like that may no longer exist). I will compare a bit against one of our newer machines that is not having problems using networkingMode=mirrored.

  14. erikspigle-payroc commented on Feb 8, 2024

    @erikspigle-payroc
    Author

    Jonas Feller (@J0F3): You, my friend, may be a huge lifesaver here. We are still internally testing with others, but I found that users who have no issues only have the Dhcpv6DUID value defined directly under the Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters key and nothing else. I wiped out the DisabledComponents value and a couple others (DisableIPSourceRouting and TcpMaxDataRetransmissions just to match with our other friends who have no issues / to match a freshly deployed machine) and rebooted. What do you know, networkingMode=mirrored is now working as advertised. Next stop is to see if we possibly had a GPO getting pushed out in the past to our Hybrid AD joined machines that disabled IPv6.

  15. 4 remaining items

  16. J0F3 commented on Feb 15, 2024

    @J0F3

    Keith Horton (@keith-horton) Unfortunately not. The reason why I cam across this was because my company wants to disable IPv6 completely on the clients because IPv6 connections would bypass the force-tunneling VPN (because the VPN connection is not IPv6 capable).

    But I think also that the issue can be considered as resolved because we found the root cause of the issue.
    I mean the documentation clearly says:

    We do not recommend that you disable IPv6 or its components. If you do, some Windows components may not function.

    So WSL with mirror networking mode seems then to be on of that components which I think is perfectly fine. 😊
    The only thing which can probably be done is, like Erik Spigle (@erikspigle-payroc) also already wrote, to add a note in the WSL documentation so that it is absolutely clear that the mirror networking mode is dependent of IPv6 to be enabled.

  17. keith-horton commented on Feb 15, 2024

    @keith-horton
    Member

    Jonas Feller (@J0F3) . Thanks. Just FYI, I tested WSL with mirroring enabled after disabling IPv6 with the only known supported way that I know of - using Powershell to disabling the v6 binding:

    Set-NetAdapterBinding -Name Wi-Fi -ComponentID ms_tcpip6 -Enabled $false

    (just replace "Wi-Fi" with the name of the interface you want to modify - as reported by "Get-NetAdapter")

    After running the above and rebooting (sadly, we need a reboot for our FSE driver to see the binding change), WSL continued to work great, and v6 addresses were not assigned.

  18. keith-horton commented on Feb 15, 2024

    @keith-horton
    Member

    Jonas Feller (@J0F3) , could you share the registry value you are changing? I'll look to add to our WSL documentation for v6 support.

  19. erikspigle-payroc commented on Feb 15, 2024

    @erikspigle-payroc
    Author

    @keith-horton: I am fairly sure he's referring to the information he linked to previously:

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows

    Location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
    Name: DisabledComponents
    Type: REG_DWORD
    Min Value: 0x00 (default value)
    Max Value: 0xFF (IPv6 disabled)

    By default, DisabledComponents does not exist, and thus defaults to 0 (IPv6 is not disabled). If you create this REG_DWORD and set it to a value of 0xFF (hex) or 255 (decimal), this will disable the entire IPv6 stack at the OS level (which is different from what you were doing with removing the IPv6 binding from an adapter). If you were to create and set this to 0xFF (hex) or 255 (decimal) and reboot, I would wager you would find that networkingMode=mirrored would no longer work (and you would only see a lo adapter in an Ubuntu WSL2 VM) as IPv6 would be fully disabled at the OS level, no matter how your bindings are set for adapters.

    In our case, a prior systems engineer, who is no longer at our company, had created a group policy to apply this REG_DWORD with a value of 0xFF (hex) and deployed it to all workstations. Once we determined that this was the culprit, and we didn't feel there was a compelling reason to have IPv6 fully disabled, we updated the group policy to change the value to 0x20 (hex) or 32 (decimal) to re-enable IPv6, but to prefer IPv4 over IPv6. This worked for us. I'm not sure what setting to the other documented values would do, but the safest tested options on our end are a value of 0 or 0x20 (hex), which both leave IPv6 enabled and thus allow networkingMode=mirrored to work.

  20. J0F3 commented on Feb 19, 2024

    @J0F3

    Keith Horton (@keith-horton) Yes, Erik Spigle (@erikspigle-payroc) is absolutely right. I was referencing the DisabledComponents Registry Key.

    disabling IPv6 with the only known supported way that I know of - using Powershell to disabling the v6 binding
    Yea, we tried that also and that works - keeps mirror Networking in WSL alive but then there is that statement 🤷🏻‍♂️ 😄:
    "Using the network properties GUI to disable IPv6 is not supported" -> https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows#using-the-network-properties-gui-to-disable-ipv6-is-not-supported

    Thx!

  21. SimonCahill commented on Sep 5, 2024

    @SimonCahill

    Hi there,

    I'd just like to add to the conversation, because I've had a similar issue which I was able to resolve.

    I'd just activated mirrored networking in my Ubuntu 24.04 instance and then applied the following .wslconfig:

    [wsl2]
    
    networkingMode = mirrored
    dnsTunneling = true

    After rebooting the instance:

    simon@ODIN: /home/simon
    ➜   ifconfig
    docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
            ether 02:42:84:95:1f:5b  txqueuelen 0  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 96  bytes 7256 (7.2 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 96  bytes 7256 (7.2 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    simon@ODIN: /home/simon
    ➜   ip l
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
        link/ether 02:42:84:95:1f:5b brd ff:ff:ff:ff:ff:ff
    

    no interfaces were found.

    In this post, IPv6 was mentioned, so I enabled it via the Settings app on my Ethernet and now:

    ➜   ifconfig
    docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
            ether 02:42:84:95:1f:5b  txqueuelen 0  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.0.88.170  netmask 255.255.255.0  broadcast 10.0.88.255
            inet6 fe80::d0f4:38a4:6ec6:9714  prefixlen 64  scopeid 0x20<link>
            inet6 fdc5:40e9:cbfb:eb0b:3058:4320:5b88:a1a9  prefixlen 128  scopeid 0x0<global>
            inet6 fdc5:40e9:cbfb:eb0b:92f:b864:8287:418b  prefixlen 64  scopeid 0x0<global>
            ether 04:7c:16:70:67:ec  txqueuelen 1000  (Ethernet)
            RX packets 10  bytes 574 (574.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 15  bytes 1470 (1.4 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    eth4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1420
            inet 10.69.151.59  netmask 255.255.255.255  broadcast 10.69.151.59
            inet6 fc00:bbbb:bbbb:bb01::6:973a  prefixlen 128  scopeid 0x0<global>
            ether 00:15:5d:e0:08:78  txqueuelen 1000  (Ethernet)
            RX packets 14  bytes 888 (888.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 24  bytes 1808 (1.8 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 508  bytes 38480 (38.4 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 508  bytes 38480 (38.4 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    loopback0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            ether 00:15:5d:6a:b6:43  txqueuelen 1000  (Ethernet)
            RX packets 6  bytes 308 (308.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    

    I have more interfaces than ever before.

    Maybe this will help someone in the future, although I also feel this is a bug that is potentially caused by my Insiders build.

    Windows version info:

    Microsoft Windows
    version 2342 (0S Build 22635.4145)
    Windows Feature Experience Pack 1000.22700.1039.0
    @ Microsoft Corporation. All rights reserved.
    
    
    
  22. Anders-Fromell-ITxPT commented on Sep 25, 2024

    @Anders-Fromell-ITxPT

    Is there a way to limit or sellect what interfaces that are mirrored ?

    I first tried to use the bridged mode,
    It worked after creation of a vSwitch (that is my trunk interface (hybrid mode) however it only created wsl interface for the "untagged" network, and I didn't find any information on how to create VLAN interfaces in a wsl. Also there are no information if the vmSwitch settings can take multiple interfaces (Ex. vmSwitch=wsl-WAN, wsl-VLAN100
    Also ubuntu netplan does not work in wsl, if it had, it would be easy to add vlan interfaces from the bridged trunk.

    My initial intended usage was to have multiple "distros" (clones of ubuntu 22.04) with individual network combinations and tools installed, runnimg as individual (isolated from the host) similar to a linux container)

    Maybe wsl is not the tool I need.. Is there another way than using Docker? or full Hyper-V virtualization?

    Best regards,
    Anders

  23. keith-horton commented on Sep 25, 2024

    @keith-horton
    Member

    Anders Fromell (@Anders-Fromell-ITxPT) , mirroring is "on or off" -- internally, network adapters get mirrored, then WSL creates a network device in Linux for those networks.

    Mirrored mode today only supports a single WSL instance :(

  24. Anders-Fromell-ITxPT commented on Sep 26, 2024

    @Anders-Fromell-ITxPT

    Anders Fromell (@Anders-Fromell-ITxPT) , mirroring is "on or off" -- internally, network adapters get mirrored, then WSL creates a network device in Linux for those networks.

    Mirrored mode today only supports a single WSL instance :(

    Keith Horton (@keith-horton), thanks for the clarification..
    Can you provide som good links about bridge mode and network settings in a wsl with ubuntu 22.04 dist? the ubuntu default "netplan" handling seams to be overrided.. :-(

    Best regards,
    Anders

  25. ITPenrose commented on Apr 13, 2025

    @ITPenrose

    Be careful with IPv6. It can be exploited by an attacker when it's not actually being used.
    Attackers often take advantage of this by setting up a fake DHCP server and issuing commands through it.
    This is why, as in the case of Erik Spigle (@erikspigle-payroc) , the system engineer had to disable it to eliminate a vulnerability.
    You should test its vulnerability using tools like Responder and Mitm6 (both included in Kali Linux).
    Another solution would be to enable a Windows Firewall rule to block all incoming/outgoing IPv6 traffic. Personally, I’ve never tested that, since we also chose to set DisabledComponents to 0xFF.

  26. Xento commented on Mar 6, 2026

    @Xento

    Any news on this, how to bring back the adapters with IPv6 disabled?

  27. dlenski commented on Apr 30, 2026

    @dlenski

    2 years ago, Erik Spigle (@erikspigle-payroc) wrote:

    @J0F3: You, my friend, may be a huge lifesaver here. We are still internally testing with others, but I found that users who have no issues only have the Dhcpv6DUID value defined directly under the Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters key and nothing else. I wiped out the DisabledComponents value and a couple others (DisableIPSourceRouting and TcpMaxDataRetransmissions just to match with our other friends who have no issues / to match a freshly deployed machine) and rebooted. What do you know, networkingMode=mirrored is now working as advertised. Next stop is to see if we possibly had a GPO getting pushed out in the past to our Hybrid AD joined machines that disabled IPv6.

    I am in the same situation. I'm the author of OpenConnect's reimplementation of the GlobalProtect protocol, but I have to use a Windows laptop and the official GlobalProtect VPN client for work.

    I'm on WSL 2.6.3, and I get no interfaces other than lo.

    $ wsl.exe --version
    WSL version: 2.6.3.0
    Kernel version: 6.6.87.2-1
    WSLg version: 1.0.71
    MSRDC version: 1.2.6353
    Direct3D version: 1.611.1-81528511
    DXCore version: 10.0.26100.1-240331-1435.ge-release
    Windows version: 10.0.26200.8037
    

    In the registry I find settings similar to yours:

    HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Dhcpv6DUID = $something
    HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents = 0x000000ff
    HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisableIPSourceRouting = 0x00000002
    

    So I tried the same thing deleting all keys other than Dhcpv6DUID from HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\, and completely restarting the computer (because just restarting WSL and GlobalProtect didn't seem to work) and… there we go. Now working with networkingMode=mirrored. 🥳🎆

    I have no idea what this is doing, or why this works… I basically understand nothing about Windows… but it does work.

  28. dlenski commented on Apr 30, 2026

    @dlenski

    Keith Horton (@keith-horton) wrote:

    "When IPv6 is disabled through the Registry Key" - I'm suspecting this is the reason that it's not showing up. I think HNS (which WSL uses to create endpoints through vswitch) requires/assumes both IPv4 and IPv6 interfaces.

    It's disappointing that this issue hasn't been fixed (why should IPv6 be assumed in order to support mirroring? 🤔) or, at a minimum, officially documented somewhere.

    Microsoft seems to have been making a big show of interoperability and friendliness towards Linux over the last few years. This is a big shift and I understand that there will be bugs along the way.

    What is frustrating, however, is that Microsoft seems not to have any real commitment to fixing and documenting the bugs that waste huge amounts of developer time. Another case of this that I ran into previously was in #4240 (comment); Microsoft promised on that thread to rectify the documentation back in 2021, and as far as I can tell just never did.

  29. ferm10n commented on May 13, 2026

    @ferm10n

    I was in a situation where I didn't have permissions to do the regedit fix.
    This project came to my rescue https://github.com/sakai135/wsl-vpnkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions