![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-27 06:01 |
47,812 topics / 349,912 posts / today 2 new / 48,264 members |
| 其它操作系统综合讨论区 » [Help] How to automatically disable and enable network connections using commands? |
| Printable Version 1,638 / 6 |
| Floor1 oudong | Posted 2008-03-17 16:50 |
| 新手上路 Posts 4 Credits 12 | |
|
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.
|
|
| Floor2 abcd | Posted 2008-03-17 17:10 |
| 银牌会员 Posts 739 Credits 1,436 | |
|
Is the so-called switching changing IP? If yes, try at
|
|
| Floor3 oudong | Posted 2008-03-17 17:28 |
| 新手上路 Posts 4 Credits 12 | |
|
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 ] |
|
| Floor4 abcd | Posted 2008-03-17 17:42 |
| 银牌会员 Posts 739 Credits 1,436 | |
|
Then try a third-party tool
devcon.exe |
|
| Floor5 oudong | Posted 2008-03-17 17:52 |
| 新手上路 Posts 4 Credits 12 | |
|
Thanks to abcd's enthusiastic reply. I'll go download it and take a look first.
|
|
| Floor6 Climbing | Posted 2008-03-17 18:09 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
It is印象中以前有人问过这个问题。搜搜老帖子吧。translated as In my memory, someone asked this question before. Search for old posts.
|
|
| Floor7 shuiyin313 | Posted 2008-03-18 02:42 |
| 初级用户 Posts 85 Credits 177 | |
|
Personally, I think using a switch is more appropriate. There are settings for configuring time in the switch, such as Cisco's.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |