While troubleshooting connectivity issues on my PC, I noticed that I have duplicate of every network interface when issuing Get-NetIPInterface
command on PowerShell.
Notice how each interface has a duplicate. Even the ifIndex
's are the same.
But I can conclude that these are not just "shadows" of the same interface, because one of vEthernet (Ethernet 2)
has DHCP Enabled and the other one Disabled.
PS C:\Windows\system32> Get-NetIPInterface
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
------- -------------- ------------- ------------ --------------- ---- --------------- -----------
37 vEthernet (WSL) IPv6 1500 5000 Enabled Connected ActiveStore
21 Ethernet 2 IPv6 1500 6 Enabled Connected ActiveStore
31 vEthernet (Ethernet 2) IPv6 1500 15 Enabled Connected ActiveStore
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore
37 vEthernet (WSL) IPv4 1500 5000 Disabled Connected ActiveStore
21 Ethernet 2 IPv4 1500 6 Enabled Connected ActiveStore
31 vEthernet (Ethernet 2) IPv4 1500 15 Disabled Connected ActiveStore
1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Disabled Connected ActiveStore
Network connections (ncpa.cpl
) window doesn't show the duplicates.
Why do I get these duplicate network interfaces, and how do I fix it?