静态与动态IP设置

静态IP设置

netsh interface ipv4 set address name="本地连接" source=static addr=192.168.0.212 (这个地方是你要设置的静态IP地址)mask=255.255.255.0 gateway=192.168.0.1(这个地方是你要设置的网关)

netsh interface ipv4 set dns name="本地连接" source=static addr=8.8.8.8
netsh interface ipv4 add dns name="本地连接" addr=8.8.4.4

pause

 

动态IP设置

​netsh interface ipv4 set address name="本地连接" source=dhcp
netsh interface ipv4 set dns name="本地连接" source=dhcp
pause

posted on 2015-04-02 10:31  wzyxidian  阅读(400)  评论(0编辑  收藏  举报

导航