China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-27 05:01
中国DOS联盟论坛 » 其它操作系统综合讨论区 » [Help] How to automatically disable and enable network connections using commands? View 1,636 Replies 6
Original Poster Posted 2008-03-17 16:50 ·  中国 重庆 电信
新手上路
Credits 12
Posts 4
Joined 2008-03-17 16:18
18-year member
UID 113216
Gender Male
Status Offline
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.
Floor 2 Posted 2008-03-17 17:10 ·  中国 北京 华为云
银牌会员
★★★
Credits 1,436
Posts 739
Joined 2007-10-11 17:44
18-year member
UID 99469
Gender Male
Status Offline
Is the so-called switching changing IP? If yes, try at
Floor 3 Posted 2008-03-17 17:28 ·  中国 重庆 电信
新手上路
Credits 12
Posts 4
Joined 2008-03-17 16:18
18-year member
UID 113216
Gender Male
Status Offline
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 ]
Floor 4 Posted 2008-03-17 17:42 ·  中国 北京 华为云
银牌会员
★★★
Credits 1,436
Posts 739
Joined 2007-10-11 17:44
18-year member
UID 99469
Gender Male
Status Offline
Then try a third-party tool

devcon.exe
Floor 5 Posted 2008-03-17 17:52 ·  中国 重庆 电信
新手上路
Credits 12
Posts 4
Joined 2008-03-17 16:18
18-year member
UID 113216
Gender Male
Status Offline
Thanks to abcd's enthusiastic reply. I'll go download it and take a look first.
Floor 6 Posted 2008-03-17 18:09 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
It is印象中以前有人问过这个问题。搜搜老帖子吧。translated as In my memory, someone asked this question before. Search for old posts.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 7 Posted 2008-03-18 02:42 ·  中国 上海 浦东新区 电信
初级用户
★★
Credits 177
Posts 85
Joined 2007-12-01 20:40
18-year member
UID 104378
Gender Male
Status Offline
Personally, I think using a switch is more appropriate. There are settings for configuring time in the switch, such as Cisco's.
Forum Jump: