dhcp与静态ip切换
实验室用的是dhcp,寝室用的是静态ip地址,每次切换起来比较烦人,于是上网搜了一下写了个脚本。
- Windows
寝室设置[静态ip地址]
netsh interface ip set address “本地连接” static IP 地址 子网 网关 跃点数(一般为1)
netsh interface ip set dns “本地连接” dns地址
实验室[动态IP地址]
netsh interface ip set address “本地连接” dhcp
netsh interface ip set address “本地连接” dhcp
参考:
- 如何使用 Netsh.exe 工具和命令行开关 http://support.microsoft.com/kb/242468
- 如何使用 NETSH 命令在 Windows 2000 中将静态 IP 地址更改为 DHCP 地址 http://support.microsoft.com/kb/257748
- Linux
等用了再说
10月 12th, 2008 at 01:31
请不要在博客上技术文章,谢谢。。。
10月 12th, 2008 at 01:35
以后基本只写技术文章,谢谢…Blog又不是校内-__-|||
10月 12th, 2008 at 15:47
脚本版的Access Connection
10月 12th, 2008 at 16:02
hoho~Thinkpad原来还有这个啊, 原先还不知道呢
10月 12th, 2008 at 16:04
test