写个脚本,每隔几秒开启/关闭网卡,循环往复,在交换机上找一会亮一会灭的端口。
CMD:
@echo off CHCP 65001 for /l %%x in (1, 1, 100000) do ( timeout 1 netsh interface set interface 以太网 disabled ping -n 5 127.0.0.1>nul netsh interface set interface 以太网 enabled ping -n 5 127.0.0.1>nul ) pause标签:定位,set,技巧,ping,网线,nul,interface,以太网,netsh From: https://www.cnblogs.com/sherlock-merlin/p/16992750.html