您好,欢迎来到 - 67学习网 - http://www.67xuexi.com !

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 "本地连接" 172.24.102.110netsh interface ip add dns "本地连接" 172.24.102.110 index=2pause使用netsh设置动态ip地址:@echo offnetsh interface ip set address name="本地连接" source=dhcpnetsh interface ip set dns name="本地连接" source=dhcppause
Windows设置静态&动态ip的脚本,标签:电脑常识大全,http://www.67xuexi.com

   使用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


Tag:电脑常识电脑常识大全电脑教程 - 电脑常识