我们在使用电脑的过程中,有朋遇到xp系统切换ip的问题即便很容易处理,还是有朋友不知道xp系统切换ip到底如何处理。虽然处理起来很简单,但是还有一些朋友不清楚xp系统切换ip的处理流程。其实也不难,按照1. 切换成自动获取IP,以下是代码片段: 2. 切换成固定IP就ok了。下面不知道的网友赶快学习一下xp系统切换ip完整解决思路吧!
1. 切换成自动获取IP
以下是代码片段:
@echo off
netsh interface ip set address name=“local” source=dhcp
netsh interface ip set dns name=“local” source=dhcp
2. 切换成固定IP
以下是代码片段:
@echo off
netsh interface ip set address local static 192.168.0.84 255.255.255.0 192.168.0.254
netsh interface ip set dns local 192.168.0.254
netsh interface ip add dns local 202.106.196.115 index=2
netsh interface ip add dns local 202.106.0.20 index=3
“local” 是你的本地网卡名称,也可能是 “本地连接”,需要自己替换下。如果是2个固定IP间的来回切换,把第2个脚本自己改改吧 #f#:)
dns设置中,第一个是set,表示设置,后面两个则是添加,自己替换成当地的dns server。这样你的xp系统就完成自动设置了。
到这里本文关于xp系统切换ip的操作方法就结束了,大家都会操作了吗?希望这个小小的经验能够帮助大家不再烦恼!