github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/scripts/tun/windows.md (about) 1 # 2 3 ```cmd 4 netsh interface ipv4 set address name="wintun" source=static addr=172.16.0.2 mask=255.255.255.255 gateway=172.16.0.1 5 netsh interface ipv4 set dnsservers name="wintun" static address=8.8.8.8 register=none validate=no 6 netsh interface ipv4 add route 0.0.0.0/0 "wintun" 172.16.0.1 metric=1 7 netsh interface ipv4 set interface "wintun" mtu=9000 8 ```