반응형
VPN 으로 인해서 WSL 의 네트워크가 사용할 수 없는 상태가 되는 경우가 있습니다.
그런 경우 아래 powershell script 를 실행하면 해결 가능합니다.
Get-NetIPInterface -InterfaceAlias "vEthernet (WSL)" | Set-NetIPInterface -InterfaceMetric 1
Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "PANGP Virtual Ethernet Adapter"} | Set-NetIPInterface -InterfaceMetric 6000
위 내용을 ***.ps1 파일로 저장해서 PowerShell ISE 를 사용해서 실행하거나, 스크립트 실행 권한을 풀어서 직접 스크립트 파일을 PowerShell console 에서 실행할 수도 있습니다.
스크립트를 실행하는 자세한 방법은 공식 홈페이지 내용을 참고하세요.
스크립트 정보 - PowerShell
PowerShell에서 스크립트를 실행하고 작성하는 방법을 설명합니다.
learn.microsoft.com
반응형