欢迎光临
复制收藏
后台管理 发布日志
日历
登录
最新日志
最新留言
最新回复
DOS下如何设置IP地址
DOS下如何设置IP地址
2007-09-05 12:20

首先要有TCP/IP协议,所以先找个TCP/IP    FOR    DOS软件(在windows模式下就不用了)

然后用命令,如下:

C:\>netsh    (进入设置模式)   
    
   netsh>interface     
    
   interface>ip     
    
   interface    ip>set    address    "本地连接"    static    10.1.1.111    255.255.255.0    10.1.1.254     
    
   interface    ip>exit   
    
    
   C:\>ipconfig    (更改后再用ipconfig命令看一下,确认一下是否更改成功)   
    
   Windows    2000    IP    Configuration   
    
   Ethernet    adapter    本地连接:   
    
   Connection-specific    DNS    Suffix    .    :   
    
   IP    Address.    .    .    .    .    .    .    .    .    .    .    .    :    10.1.1.111     
    
   Subnet    Mask    .    .    .    .    .    .    .    .    .    .    .    :    255.255.255.0   
    
   Default    Gateway    .    .    .    .    .    .    .    .    .    :    10.1.1.254   
    
    
    
   上文中的set命令具体解释如下:   
    
   set    address    -    设置指定的接口的    IP    地址和默认网关。   
    
   set    dns    -    设置    DNS    服务器模式和地址。   
    
   set    wins    -    设置    WINS    服务器模式和地址。   

sunny255 发表于 2007/9/5 12:20:00 | 阅读全文 | 回复(0) | 引用通告 | 编辑 | 收藏该日志

发表评论:

    昵称:
    密码:
    主页:
    标题: