zoukankan      html  css  js  c++  java
  • window自动切换ip的脚本

    因为总要切换ip,所以百度了一下脚本

    如下http://jingyan.baidu.com/article/d2b1d1029d21b95c7e37d4fa.html

    动态ip

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

    静态

    netsh interface ip set address name="本地连接" source=static addr=10.1.112.65 mask=255.255.0.0 gateway=10.1.112.2
    netsh interface ip set dns name="本地连接" source=static addr=114.114.114.114

    需要注意的是:保存脚本的时候需要以ANSI格式保存,否则会出错

  • 相关阅读:
    看代码写程序
    NP
    一道神题
    找平方数
    凝视
    排队打水
    时间计算
    git客户端下载地址
    iOS GCD
    UIView 和 CALayer的那点事
  • 原文地址:https://www.cnblogs.com/wswang/p/5286647.html
Copyright © 2011-2022 走看看