XP系统切换ip的小技巧
时间:2023-11-05 05:54:19
在使用系统部落WinXP系统时,不少用户都不知如何进行切换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个脚本自己改改吧。
dns设置中,第一个是set,表示设置,后面两个则是添加,自己替换成当地的dns server。这样你的xp系统就完成自动设置了。
标签:XP,切换ip
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
怎么用excel求偏差和标准偏差
2022-02-21 09:49:34
![](https://img.aspxhome.com/file/2023/6/36846_0s.jpg)
巧用Win7系统的三种电源模式为笔记本降温
2022-10-12 10:11:17
WPS怎么取消打印预览分割线
2022-09-05 01:34:27
WPS Excel中如何模糊匹配查找和替换
2022-03-21 00:00:45
![](https://img.aspxhome.com/file/2023/5/a186105_0s.jpg)
Excel有类似"分列"的"分行"功能吗?
2023-10-30 13:08:54
![](https://img.aspxhome.com/file/2023/7/38317_0s.jpg)
如何使用wps制作圆桌座位表
2022-11-30 05:33:16
excel输入函数的教程
2022-04-29 08:13:43
腾讯微视如何加v认证 微视认证加v方法介绍
2022-05-04 17:16:53
![](https://img.aspxhome.com/file/2023/8/a336706_0s.png)
兽耳桌面如何应用隐藏?兽耳桌面应用隐藏的方法
2022-12-10 20:16:18
![](https://img.aspxhome.com/file/2023/8/a335011_0s.jpg)
百度输入法电脑版怎么输入日语?
2023-05-30 03:18:08
![](https://img.aspxhome.com/file/2023/30/a267345_0s.jpg)
Win10截图快捷键失效怎么办?Win10截图快捷键失效的解决方法
2022-10-14 03:20:07
![](https://img.aspxhome.com/file/2023/26/a219909_0s.jpg)
Win10电脑玩一会游戏卡死画面定格如何解决?
2023-03-16 12:23:49
![](https://img.aspxhome.com/file/2023/26/a222291_0s.png)
Win10 PC/Mobile预览版14965更新内容汇总
2023-10-03 18:25:01
手机百度中怎么更换皮肤?手机百度更换皮肤的方法
2022-06-13 03:01:34
![](https://img.aspxhome.com/file/2023/8/a333966_0s.jpg)
windows10下载的软件在哪里?windows10下载的软件位置介绍
2023-11-05 08:59:26
![](https://img.aspxhome.com/file/2023/2/47772_0s.jpg)
Excel快速插入行的另一种方法
2023-08-26 23:02:23
![](https://img.aspxhome.com/file/2023/7/a154297_0s.jpg)
Excel图标怎么设置互补色来区分正负值?
2022-01-21 13:08:17
![](https://img.aspxhome.com/file/2023/9/41979_0s.jpg)
Windows7下修改程序默认安装目录C:\\Program Files
2023-06-12 00:33:23
excel 如何快速从身份证号单独提取出生年月日方法
2022-04-27 21:55:07
![](https://img.aspxhome.com/file/2023/8/a162088_0s.jpg)
Win7系统安装MTP USB设备老是失败怎么办?
2022-04-26 08:30:50
![](https://img.aspxhome.com/file/2023/27/a231476_0s.jpg)