16 lines
515 B
Markdown
16 lines
515 B
Markdown
---
|
|
title: Fix WSL to Hyperv network
|
|
updated: 2023-02-08 17:09:10Z
|
|
created: 2023-02-08 17:08:43Z
|
|
latitude: 39.18360820
|
|
longitude: -96.57166940
|
|
altitude: 0.0000
|
|
---
|
|
```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`
|
|
```
|