13 lines
459 B
Markdown
13 lines
459 B
Markdown
title:: Fix WSL to Hyperv network
|
|
updated:: 2023-02-08 17:09:10+00:00
|
|
created:: 2023-02-08 17:08:43+00:00
|
|
|
|
|
|
```powershell
|
|
Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)'} | Select-Object ifIndex,InterfaceAlias,ConnectionState,Forwarding
|
|
```
|
|
|
|
```powershell
|
|
`Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled -Verbose`
|
|
```
|