Chinaunix首页 | 论坛 | 博客
  • 博客访问: 302655
  • 博文数量: 61
  • 博客积分: 1508
  • 博客等级: 上尉
  • 技术积分: 720
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-13 08:26
文章分类

全部博文(61)

文章存档

2010年(1)

2009年(1)

2007年(59)

我的朋友

分类: 系统运维

2007-04-11 15:36:13

修改为固定IP

@echo off
echo Chang Local IP To: "Static" Plz Stand By wait!!!! :-)
rem 修改IP地址、子网掩码、网关
cmd /c netsh interface ip set address 本地连接 static 192.168.0.253 255.255.255.0 192.168.0.1 1
cmd /c netsh interface ip set dns "本地连接" static 192.168.0.1 primary
echo.........................
echo Check Local IP:
ipconfig/all
echo.........................
echo We have changed IP!
echo Written By:cuplinux
echo 2007-04-11
pause
close

修改为DHCP,动态分配

@echo off
echo Chang Local IP To: "DHCP" Plz Stand By wait!!!! :-)
rem 修改IP地址、子网掩码、网关
cmd /c netsh interface ip set address name="本地连接" source=dhcp
cmd /c netsh interface ip set dns name="本地连接" source=dhcp
echo.........................
echo Check Local IP:
ipconfig
echo.........................
echo We have changed IP!
echo Written By:cuplinux
echo 2007-04-11
pause
close
阅读(5450) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~