Answer the question
In order to leave comments, you need to log in
Is able ipconfig as ifconfig to break and lift connection?
I skimmed through the documentation and didn't see such a possibility. ifconfig en0 down && sleep 3 && ifconfig en0 up
to test some functionality, it is required to simulate network breaks, but standard windows tools (connection-disconnection) fail to do this.
Or you need other ways to interfere with the network for a specified number of seconds under Windows. In Linux/Ios everything is very clear :)
Answer the question
In order to leave comments, you need to log in
if it is ip
dynamic, you can also ipconfig
-th (it seems necessary under the admin):
ipconfig [interface] /release
rem паузу любым удобным способом
ipconfig [interface] /renew
rem interface имеет смысл указывать если их более одного физического
rem хотя в мане написано, если не указать interface - передернет всех
rem кроме статики. я так думаю
powershell:
netsh interface show interface
netsh interface set interface "YOUR-ADAPTER-NAME" disable
netsh interface set interface "YOUR-ADAPTER-NAME" enable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question