- hyper-v 添加 external, 名字为WIFI
- notepad C:/%UserProfile%/.wslconfig
[wsl2]
networkingMode=bridged
vmSwitch=WIFI
ipv6=true
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
#可更改
memory=4GB
# Sets the VM to use two virtual processors
#可更改
processors=2
- 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
https://zhuanlan.zhihu.com/p/617357186
标签:use,8.8,可更改,bridged,nameserver,wsl2 From: https://www.cnblogs.com/twfb/p/18164086