windows命令行设置网卡ip地址

netsh interface ip set address "无线网络连接" static 192.168.1.100 255.255.255.0 192.168.1.1 auto
netsh interface ip set dns "无线网络连接" static 8.8.8.8 primary
netsh interface ip add dns "无线网络连接" 202.106.196.115

--------------------

netsh interface ip set address "无线网络连接" source=dhcp
netsh interface ip set dns "无线网络连接" source=dhcp


你可能感兴趣的:(windows命令行设置网卡ip地址)