倚天系统网资源分享平台领跑者!

首页 > 电脑教程

老司机详解xp系统切换ip的还原办法

admin 2021-11-11 00:10:29 电脑教程

今天教大家一招关于xp系统切换ip的操作方法,近日一些用户反映xp系统切换ip这样一个现象,当我们遇到xp系统切换ip的设置方法非常简单,只需要1. 切换成自动获取IP,以下是代码片段: 2. 切换成固定IP下面跟随小编脚步看看xp系统切换ip具体的设置方法:

详解深度技术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个脚本自己改改吧 #f#:)

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

详解深度技术WinXP系统切换ip的设置方法(1)

上面就是关于xp系统切换ip的操作方法有碰到这样问题的用户们不妨可以按照上面的方法步骤来进行解决吧,小编就讲解到这里了,我们下期再会!

热门教程