在windows 7中禁用media sense
To disable Media Sense, please perform the following steps:
1) Click on the Start button.
2) Type cmd in the search bar.
3) Right click on the cmd.exe and select Run as Administrator.
4) Run the following commands one by one:
netsh interface ipv4 set global dhcpmediasense=disabled
netsh interface ipv6 set global dhcpmediasense=disabled
5) After finishing the commands above, please run the following commands to check the results:
netsh interface ipv4 show global
netsh interface ipv6 show global
Please check if the entry “DHCP Media Sense” shows disabled or not. If it is disabled, it means the operations are successful.
However, please also note, the Media Sense depends on the NIC; if the
NIC didn’t support the Media Sense, the configurations won’t take
effect, either. Therefore, please also check the issue with the
technical support of your NIC.
For more information, please refer to the following documents:
DHCP Media Sense
http://msdn2.microsoft.com/en-us/library/aa505960.aspx
TCP/IP Registry Values for Microsoft Windows Vista and Windows Server 2008
http://download.microsoft.com/download/c/2/6/c26893a6-46c7-4b5c-b287-830216597340/TCPIP_Reg.doc
Additional information:
http://social.technet.microsoft.com/Forums/en/itprovistanetworking/thread/78837cc8-b101-4236-906a-f09f0c442221
当然也可以通过修改注册表来修改
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DisableDHCPMediaSense=1(DWORD)