https://www.cnblogs.com/--ZHIYUAN/p/17230924.html

查找现有网络适配器及其名称

1
Get-NetAdapter

要创建外部虚拟交换机,请运行以下命令,将 <value> 占位符替换为你自己的值

1
New-VMSwitch -Name <switch-name>  -NetAdapterName <netadapter-name>

wsl --shutdown && wsl 重启 WSL2,搞定。

https://github.com/MicrosoftDocs/wsl/blob/main/WSL/wsl-config.md

https://www.bilibili.com/read/cv22613431?spm_id_from=333.999.0.0

https://space.bilibili.com/1434257

https://learn.microsoft.com/zh-cn/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan