wsl2 bridged
- hyper-v 添加 external, 名字为WIFI
- notepad %UserProfile%/.wslconfig
[wsl2]
networkingMode=bridged
vmSwitch=WIFI
ipv6=true
- WSL
sudo vim /etc/resolv.conf # 编辑该文件并添加以下内容
nameserver 114.114.114.114
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 223.5.5.5
sudo vim /etc/wsl.conf
[boot]
systemd=true
[network]
generateResolvConf = false