zoukankan      html  css  js  c++  java
  • dos 改 ip

    在DOS下修改IP- -
                                          

    1,netsh实现在命令下改ip地址..

    D:\>netsh
    netsh>interface
    interface>ip
    interface ip>dump


    # ----------------------------------
    # Interface IP Configuration
    # ----------------------------------
    pushd interface ip


    # Interface IP Configuration for "Local Area Connection"

    set address name = "Local Area Connection" source = static addr = 192.168.0.1 ma
    sk = 255.255.255.0
    set address name = "Local Area Connection" gateway = 192.168.0.1 gwmetric = 1
    set dns name = "Local Area Connection" source = static addr = 192.168.0.1
    set wins name = "Local Area Connection" source = static addr = none


    popd
    # End of interface IP configuration


    interface ip>


    2.用netshe -c 可以把网卡配置情况导出。。


    D:\>netsh -c interface ip dump >config.txt

    D:\>type config.txt


    # ----------------------------------
    # Interface IP Configuration
    # ----------------------------------
    pushd interface ip


    # Interface IP Configuration for "Local Area Connection"

    set address name = "Local Area Connection" source = static addr = 192.168.0.1 ma
    sk = 255.255.255.0
    set address name = "Local Area Connection" gateway = 192.168.0.1 gwmetric = 1
    set dns name = "Local Area Connection" source = static addr = 192.168.0.1
    set wins name = "Local Area Connection" source = static addr = none


    popd
    # End of interface IP configuration


    3. 在命令行下。改变网卡的地址。

    首先选用netsh -c interface ip dump > config.txt 输出一个文件,

    然后打开config.txt 修改其中的地址。。

    然后用命令:

    netsh -f d:\config.txt 就OK了!

  • 相关阅读:
    Asp.Net 构架(Http Handler 介绍) Part.2<转>
    大数据插入<转>
    网站开发技巧参考大全<转>
    qq校友好东西
    SQL2005存储过程解密 <转>
    用Lucene.net对数据库建立索引及搜索<转>
    用SharpDevelop3调试ASP.NET的方法
    【转】卢彦的利用xml实现通用web报表打印
    张仰彪第二排序法 <转>
    依赖注入那些事儿 <转>
  • 原文地址:https://www.cnblogs.com/cloud/p/285179.html
Copyright © 2011-2022 走看看