电脑教程
位置:首页>> 电脑教程>> 软件教程>> XP系统切换ip的小技巧

XP系统切换ip的小技巧

  发布时间:2023-11-05 05:54:19 

标签:XP,切换ip

在使用系统部落WinXP系统时,不少用户都不知如何进行切换ip的设置。小编这就来帮大家排忧解难,具体的设置方法如下:

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个脚本自己改改吧。

dns设置中,第一个是set,表示设置,后面两个则是添加,自己替换成当地的dns server。这样你的xp系统就完成自动设置了。

0
投稿

猜你喜欢

手机版 电脑教程 asp之家 www.aspxhome.com