|
oudong
新手上路

积分 12
发帖 4
注册 2008-3-17
状态 离线
|
『楼 主』:
[求助]如何自动用命令禁用和启用网络连接?
使用 LLM 解释/回答一下
单位有两个网(暂时取名为网络一和网络二),我的一台服务器同时接在两个网上。要求两个网不能同时接通。我的服务器平时连在网络一上,每天有一个固定时间段,需要断开网络一,而让它连到网络二上(自动切换),时间段一过又必须让其切换回网络一而断开网络二。请问这个怎么用命令(或批处理)实现?谢谢。
There are two networks in the unit (temporarily named Network One and Network Two), and one of my servers is connected to both networks. It is required that the two networks cannot be connected simultaneously. My server is usually connected to Network One. There is a fixed time period every day when it is necessary to disconnect Network One and connect it to Network Two (automatic switching), and after the time period, it must switch back to connect to Network One and disconnect Network Two. How can this be achieved with commands (or batch processing)? Thank you.
|
|
2008-3-17 16:50 |
|
|
abcd
银牌会员
    
积分 1436
发帖 739
注册 2007-10-11
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
所谓的切换是换IP吗??
如果是,试试at
Is the so-called switching changing IP? If yes, try at
|
|
2008-3-17 17:10 |
|
|
oudong
新手上路

积分 12
发帖 4
注册 2008-3-17
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
不是换IP而是禁用一个连接,启用另一个连接。(服务器是双网卡,分别接在两个网上)。
Last edited by oudong on 2008-3-17 at 05:29 PM ]
It's not about changing the IP but disabling one connection and enabling another. (The server has two network cards, connected to two networks respectively.)
Last edited by oudong on 2008-3-17 at 05:29 PM ]
|
|
2008-3-17 17:28 |
|
|
abcd
银牌会员
    
积分 1436
发帖 739
注册 2007-10-11
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
那就试试第三方工具
devcon.exe
Then try a third-party tool
devcon.exe
|
|
2008-3-17 17:42 |
|
|
oudong
新手上路

积分 12
发帖 4
注册 2008-3-17
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
谢谢abcd的热心回复。我去下载一个看看先。
Thanks to abcd's enthusiastic reply. I'll go download it and take a look first.
|
|
2008-3-17 17:52 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
印象中以前有人问过这个问题。搜搜老帖子吧。
It is印象中以前有人问过这个问题。搜搜老帖子吧。translated as In my memory, someone asked this question before. Search for old posts.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2008-3-17 18:09 |
|
|
shuiyin313
初级用户
 
积分 177
发帖 85
注册 2007-12-1
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
个人认为使用交换机比较合适,交换机中有设定配置时间的.比如CISCO的
Personally, I think using a switch is more appropriate. There are settings for configuring time in the switch, such as Cisco's.
|
|
2008-3-18 02:42 |
|