Академический Документы
Профессиональный Документы
Культура Документы
Nov28,2012
SometimesyourDHCPserviceisnotabletopullanIPaddress,thereasoncouldbethatthenetworkstackonWindowsgoesbanana.Tofixthe
problem,opencommandpromptwithadministratorprivilege(clickonStarttypeincmdrightclickonthecommandpromptandchooseRunas
Administrator)andtypethesecommand:
netshintipresetC:\netsh.log.txt
netshwinsockreset
thenallyournetworkconfigurationwillbereset.
Update:Thecommandnetshisverypowerful,youcancontrolalotofthingsinWindowswithit,likenetworkinterfaces,routetable
Someexamples:
SettheLANadaptertostaticIPaddress:
netshinterfaceipsetaddressname="LocalAreaConnection"static192.168.10.15255.255.255.0192.168.10.11
SettheLANadaptertoDHCP:
netshinterfaceipsetaddressname="LocalAreaConnection"dhcp
ConfiguretheLANadapterssecondaryDNS:
netshinterfaceipadddnsname="LocalAreaConnection"8.8.8.8index=2
1.LeftclicktheStartbutton
2.Selectrun
3.Intheopenboxtype:netshintipresetc:\resetlog.txt
c:\resetlog.txtwillshowwhatchangesexisted.
TIP:
If
youcanpingboththeloopbackaddress(127.0.0.1)andyourIPaddress
butyoucannotpinganyotherIPaddresses,usetheArptooltoclear
outtheAddressResolutionProtocol(ARP)cache.Toviewthecache
entries,typeanyoneofthefollowingcommands:arpa
arpgTodeletetheentries,typethefollowingcommand:arpdIPaddressToflushtheARPcache,typethefollowingcommand:netshinterfaceipdelete
arpcache.