美文网首页
windows 下配置IP bat脚本

windows 下配置IP bat脚本

作者: Shun2018 | 来源:发表于2018-06-22 21:46 被阅读0次

    一、配置一个固定IP范例:

    netsh interface ip set address name="本地连接" source=static addr=192.168.8.201 mask=255.255.255.0 
    gateway=192.168.8.50
    
    netsh interface ip set dns name="本地连接" source=static addr=
    

    二、配置多个IP范例:

    netsh interface ip set address name="本地连接" source=static addr=199.188.177.242 mask=255.255.255.0 gateway=
    
    netsh interface ip add address name="本地连接" addr=192.168.1.66 mask=255.255.255.0 
    
    netsh interface ip set dns name="本地连接" source=static addr=
    

    三、配置自动获取IP范例:

    netsh interface ip set address name="本地连接" source=dhcp
    netsh interface ip set dns name="本地连接" source=dhcp
    

    相关文章

      网友评论

          本文标题:windows 下配置IP bat脚本

          本文链接:https://www.haomeiwen.com/subject/mfulyftx.html