1 查看帮助
netsh /?
netsh
2 创建wifi热点
netsh wlan set hostednetwork mode=allow ssid=[wifi name] key=[wifi password]
netsh wlan start/stop hostednetwork
3 设置ip和dns
netsh interface show interface
netsh int set int "interface_name" admin=enabled
netsh int set int "interface_name" newname="new_interface_name"
netsh interface ipv4 set address name="无线网络连接" source=dhcp
netsh interface ipv4 set address name="无线网络连接" source=static address="192.168.100.60" mask="255.255.255.0" gateway="192.168.100.1"
netsh interface ipv4 set address "无线网络连接" static 192.168.100.60 255.255.255.0 192.168.100.1
netsh interface ipv4 set dns name="无线网络连接" source=dhcp
netsh interface ipv4 set dns name="无线网络连接" source=static address="202.106.0.20"
netsh interface ipv4 set dns "无线网络连接" static 202.106.0.20