From 06b79f7187b708ed6cc3620f17e3a3cfc2ff3304 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 28 Oct 2024 23:11:46 +0800 Subject: [PATCH] vault backup: 2024-10-28 23:11:46 Affected files: docs/Command Snippets/Windows Snippets.md --- docs/Command Snippets/Windows Snippets.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/Command Snippets/Windows Snippets.md b/docs/Command Snippets/Windows Snippets.md index 9de8005..c0f0ae9 100644 --- a/docs/Command Snippets/Windows Snippets.md +++ b/docs/Command Snippets/Windows Snippets.md @@ -2,4 +2,7 @@ ```powershell get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses | ft -wrap -autosize ``` -- Enable t \ No newline at end of file +- Enable traffic forwarding from WSL to Hyper-V `vEthernet (WSL) -> vEthernet (Default Switch)` +```powershell +Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled +```