服务器技术

 首页 > 服务器技术 > WinServer > Windows设置静态&动态ip的脚本 - Windows操作系统

Windows设置静态&动态ip的脚本 - Windows操作系统

分享到:
【字体:
导读:
          Windows设置静态动态ip的脚本使用netsh设置静态ip地址:@echo offnetsh interface ip set address 本地连接 static 172.24.83.239 255.255.255.0 172.24.83.247netsh interface ip set dns 本......


Windows设置静态&动态ip的脚本
 
使用netsh设置静态ip地址:
 
@echo off 
netsh interface ip set address "本地连接" static 172.24.83.239 255.255.255.0 172.24.83.247
netsh interface ip set dns "本地连接" 172.24.102.110
netsh interface ip add dns "本地连接" 172.24.102.110 index=2
pause
 
使用netsh设置动态ip地址:
 
@echo off
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip set dns name="本地连接" source=dhcp
pause
 
分享到:
IDE模式下安装Window7,改回achi的方法 -...
IDE模式下安装Window7,改回achi的方法     前段时间重装了系统,以前的系统是新购机时ghost的win7,把硬盘模式改成了IDE,这次重装忘了改成achi模式,强行修改bios为achi模式后,win7不断重启,进不了系统。但是系统已经装好了,再重装一次太麻烦了,于是在网上找到一个解决方法,主要是修改注册表,方法如下。   1...
如何解决“因为在此系统中禁止执行脚本。...
如何解决“因为在此系统中禁止执行脚本。有关详细信息,请参阅 "get-help about_signing"。”的问题   PS C:\Users\Rootcat> get-executionpolicy   Restricted   被限制   PS C:\Users\Rootcat> set-executionpolicy remotesigned   PS C:\Users\Rootcat> get-executionpolicy   remotesigned   搞定...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……