|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『楼 主』:
DOS中怎样打开 本地连接 或者怎么修改IP地址
使用 LLM 解释/回答一下
我想改IP。可是找不到本地连接,请问哪位知道在DOS下怎么样才可以找开本地连接的属性,或者更改IP啊!
Last edited by chainliq on 2006-7-6 at 02:32 ]
I want to change the IP. But I can't find the Local Area Connection. Does anyone know how to open the properties of the Local Area Connection or change the IP under DOS!
Last edited by chainliq on 2006-7-6 at 02:32 ]
|
|
2006-7-5 21:13 |
|
|
manfred
新手上路

积分 12
发帖 6
注册 2006-7-19
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
还好了。。。
你刚问人时候。。。
上百度找一下了。。
大半都是上百度找会的。。。呵呵。。。
It's okay...
When you just asked someone...
Just go to Baidu to find it...
Most people find it by going to Baidu... Hehe...
|
|
2006-7-20 02:38 |
|
|
flying008
中级用户
  
积分 245
发帖 103
注册 2006-6-30
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
在命令行下L输入 netsh /?
就可以看看帮助设置IP了,
Netsh interface ip set address local static 192.168.0.12 255.255.255.0 192.168.0.1 1
==============
ip地址:192.168.0.12
子网掩码: 255.255.255.0
网关:192.168.0.1
跃点数:1
根据你的实际情况来改你的相关数据值吧,
1,netsh 在命令模式下改ip地址
c:>\netsh
netsh>interface
interface>ip
interface ip >set address name = "local area connection" source = static addr =192.168.0.1 mask =255.255.255.0
2, 用netsh -c interface ip dump > config.txt 输出一个文件,然后打开config.txt修改其中的地址。然后用命令 netsh -f d:\config.txt
就OK了。
Last edited by flying008 on 2006-7-20 at 09:03 ]
Enter "netsh /?" at the command line to view the help for setting the IP.
Netsh interface ip set address local static 192.168.0.12 255.255.255.0 192.168.0.1 1
==============
IP address: 192.168.0.12
Subnet mask: 255.255.255.0
Gateway: 192.168.0.1
Hop count: 1
Modify the relevant data values according to your actual situation.
1. Change the IP address in command mode using netsh
c:>\netsh
netsh>interface
interface>ip
interface ip >set address name = "local area connection" source = static addr =192.168.0.1 mask =255.255.255.0
2. Use netsh -c interface ip dump > config.txt to output a file, then open config.txt to modify the address. Then use the command netsh -f d:\config.txt
That's it.
Last edited by flying008 on 2006-7-20 at 09:03 ]
|
|
2006-7-20 08:10 |
|
|
bagpipe
银牌会员
     DOS联盟捡破烂的
积分 1144
发帖 425
注册 2005-10-20 来自 北京
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
补充一点,如果能够顺利使用NETSH命令,首先一点保证你的“remote registry service“这个服务的状态是开启的,否则是不能执行的
One more thing, if you can use the NETSH command smoothly, first make sure that the state of the "remote registry service" service is enabled; otherwise, it cannot be executed.
|
|
2006-7-20 09:09 |
|
|
Scott0902
中级用户
  
积分 466
发帖 237
注册 2005-10-12
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by bagpipe at 2006-7-20 09:09:
补充一点,如果能够顺利使用NETSH命令,首先一点保证你的“remote registry service“这个服务的状态是开启的,否则是不能执行的
我的Win2000禁用了这个服务也一样可以用NETSH啊
Originally posted by bagpipe at 2006-7-20 09:09:
Add one more point. If you can use the NETSH command smoothly, the first thing is to ensure that the status of the "remote registry service" is enabled; otherwise, it cannot be executed.
My Windows 2000 can still use NETSH even after disabling this service.
|
|
2006-7-20 18:58 |
|
|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
能不能编一个CMD脚本,就是说只有在CMD中改掉要改的IP,一运行脚本就可以改啦呢~!~!
我想这个方法比较实用点儿哦~!
Can you compile a CMD script, that is, just change the IP to be changed in CMD, and it can be changed as soon as the script is run~!~!
I think this method is relatively practical oh~!
|
|
2006-7-21 22:44 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
|
2006-7-22 00:21 |
|