相当于重新安装networking电缆的命令

我正在远程访问一个networking,我正在testing两个独立的DHCP服务器,其中:

1) Both dhcp servers are on the same subnet. 2) The dhcp servers do not have overlapping ip pools. 3) Each dhcp server has its own static ip address. 

我的testing需要我做很多次:

 1) Turn off dhcp service 1 on server 1, which currently has several leases 2) Turn on dhcp service 2 on server 2 3) Remotely login to a workstation and a) release current dhcp lease b) obtain new lease from active dhcp service 4) Repeat these steps several times (going back and forth between dhcp services). 

到目前为止,我只用这个命令杀死了一个工作站:)

 ipconfig /release && ipconfig /renew 

在此之前,我也试着做:

 ipconfig /renew 

但是,而不是与当前活跃的DHCP服务器更新,而是抱怨,它无法到达其IP地址(我已经closuresDHCP的地方)的以前的DHCP服务器。

如果我在现场,我可以拔掉网线,然后重新插入,因此消耗活动的DHCP服务器(我刚刚打开),但我正在远程工作,不知道一个命令是相当于重新连接。

顺便说一句,在这家公司工作时间不长,所以不用担心用户连接失败。 我只是想避免现场旅行来执行这些testing。

请指教。

我想你可以禁用然后重新启用testing工作站上的接口:

  netsh interface set interface name="Local Area Connection" admin=disabled && netsh interface set interface name="Local Area Connection" admin=enabled 

警告:您应该在您有物理访问权限的工作站上进行testing,然后在远程工作站上进行testing,只有pipe理权限才能访问该工作站。