ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 办公IP-自动获取与固定IP切换脚本

办公IP-自动获取与固定IP切换脚本

原创 Linux操作系统 作者:golden_zhou 时间:2012-08-17 14:14:28 0 删除 编辑
上文在设置DNS的部分有点问题,作了以下改写,经测试OK
 
dhcp.bat
 
@echo off
netsh interface ip set address name=local source=dhcp
netsh interface ip set dns name=local source=dhcp
 
stabip.bat
 
@echo off
netsh interface ip set address name="local" static 192.168.0.123 255.255.255.0 192.168.0.11
netsh interface ip set dnsservers "local" static 192.168.0.1 primary

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25198367/viewspace-741264/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: oracle_schedjob 示例
请登录后发表评论 登录
全部评论

注册时间:2011-03-09

  • 博文量
    238
  • 访问量
    344440