|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-9-19 05:07 |
|
|
xg911335
初级用户
 
积分 134
发帖 50
注册 2006-3-28
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
好像要读取注册表确定本地连接,在用netsh来修改吧.本人菜鸟。
It seems that you need to read the registry to determine the local connection, and then use netsh to modify it. I'm a novice.
|
|
2006-9-19 05:30 |
|
|
jzl168
初级用户
 
积分 38
发帖 14
注册 2006-8-16
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
网上一大把,你找 "ghost 自动 ip bat"
都是用netsh 来改ip和其它的,不过很不完善
There are plenty online. You can look for "ghost automatic ip bat". They all use netsh to change IP and others, but it's very imperfect.
|
|
2006-9-19 12:38 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-9-19 22:06 |
|
|
9527
银牌会员
     努力做坏人
积分 1185
发帖 438
注册 2006-8-28 来自 北京
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
看看你远程注册表的那个服务是不是关掉了,如果关掉是不成的,在看看你网卡的接口名称是否正确!!!
Remote Registry 这个服务如果关闭NETSH命令运行是不成功的
See if the Remote Registry service is turned off. If it's turned off, it won't work. Also, check if the network card's interface name is correct!!! If the Remote Registry service is turned off, the NETSH command won't run successfully.
|

我今后在论坛的目标就是做个超级坏人!!! |
|
2006-9-19 22:36 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
我把注册表里的HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces下的内容在设置好了IP后导出来,然后在需要时再导入就IP设置好了,不过内容好象多了点!
I exported the contents under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces in the registry after setting up the IP, and then imported it when needed to set the IP, but the content seems a bit more!
|

我的网络U盘 我的网络第2个U盘
论坛软件下载链接
灵雨飘零论坛
论坛新手必读,所有人的基本行为准则
刷QQ空间人气、留言的小软件 |
|
2006-9-21 03:26 |
|
|
wang6610
银牌会员
    
积分 1246
发帖 488
注册 2003-11-11
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
netsh interface ip set address name="本地连接" source=static addr=%IPAddress% mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1
netsh interface ip set address name="Local Area Connection" source=static addr=%IPAddress% mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1
|
|
2006-9-21 05:58 |
|
|
jieok3375
中级用户
  
积分 282
发帖 130
注册 2006-9-20 来自 广东
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
7楼的说法对,若要加DNS 在回第二个时需注意须加 index=2
What the user said on the 7th floor is correct. If you want to add DNS, when replying to the second one, you need to pay attention to adding index=2.
|
|
2006-9-21 23:22 |
|
|
zouzhxi
中级用户
   蝴蝶之吻
积分 430
发帖 177
注册 2006-9-20 来自 广东深圳
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
@echo off
rem eth //eth 为网卡名称,可在网络连接中查询,如"本地链接"
set eth="本地连接"
rem ip //ip 为你想更改的IP
set ip=*.*.*.*
rem gateway //gateway 为网关地址
set gateway=*.*.*.*
rem netmasks //netmasks 为子网掩码
set netmasks=255.255.255.0
rem dns //dns 为首选DNS
set dns=*.*.*.*
rem dns2 //dns2 为备用DNS
set dns2=*.*.*.*
echo 正在将本机IP更改到: %ip% 请等候...
rem
if %gateway%==none netsh interface ip set address %eth% static %ip% %netmasks% %gateway% > nul
if not %gateway%==none netsh interface ip set address %eth% static %ip% %netmasks% %gateway% 1 > nul
if %dns%==none netsh interface ip set dns %eth% static %dns%> nul
if not %dns%==none netsh interface ip set dns %eth% static %dns%> nul
if %dns2%==none netsh interface ip add dns %eth% %dns2%> nul
if not %dns2%==none netsh interface ip add dns %eth% %dns2% 2> nul
echo.........................
echo 检查当前本机IP:
ipconfig
echo.........................
echo 成功将本机IP更改为%ip%!
pause
close
@echo off
rem eth //eth is the name of the network card, which can be queried in Network Connections, such as "Local Area Connection"
set eth="Local Area Connection"
rem ip //ip is the IP you want to change
set ip=*.*.*.*
rem gateway //gateway is the gateway address
set gateway=*.*.*.*
rem netmasks //netmasks is the subnet mask
set netmasks=255.255.255.0
rem dns //dns is the preferred DNS
set dns=*.*.*.*
rem dns2 //dns2 is the alternate DNS
set dns2=*.*.*.*
echo Changing the local IP to: %ip%, please wait...
rem
if %gateway%==none netsh interface ip set address %eth% static %ip% %netmasks% %gateway% > nul
if not %gateway%==none netsh interface ip set address %eth% static %ip% %netmasks% %gateway% 1 > nul
if %dns%==none netsh interface ip set dns %eth% static %dns%> nul
if not %dns%==none netsh interface ip set dns %eth% static %dns%> nul
if %dns2%==none netsh interface ip add dns %eth% %dns2%> nul
if not %dns2%==none netsh interface ip add dns %eth% %dns2% 2> nul
echo.........................
echo Checking current local IP:
ipconfig
echo.........................
Successfully changed the local IP to %ip%!
pause
close
|

Butterfly Kiss Blog
计算机DIY联盟论坛 |
|
2006-9-22 04:38 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
楼上的搞的好复杂,一般的在局域网里只有IP地址最后字节地址不同用下面的BAT文件就可以了!
@echo off
set /p a=请输入IP地址最后的一个字节
netsh interface ip set address 本地连接 static 想更改的IP前3个字节.%a% 子网掩码 网关地址 1
netsh interface ip set dns 本地连接 static 首选DNS
netsh interface ip add dns 本地连接 备用DNS
netsh interface ip add dns 本地连接 备用DNS
The upstairs made it too complicated. Generally, in a local area network where only the last byte of the IP address is different, you can use the following BAT file!
@echo off
set /p a=Please enter the last byte of the IP address
netsh interface ip set address "Local Area Connection" static The first three bytes of the IP to be changed.%a% Subnet mask Gateway address 1
netsh interface ip set dns "Local Area Connection" static Preferred DNS
netsh interface ip add dns "Local Area Connection" Alternate DNS
netsh interface ip add dns "Local Area Connection" Alternate DNS
|

我的网络U盘 我的网络第2个U盘
论坛软件下载链接
灵雨飘零论坛
论坛新手必读,所有人的基本行为准则
刷QQ空间人气、留言的小软件 |
|
2006-9-22 07:50 |
|