Windows命令行下配置IP地址

Windows命令行下配置IP地址

ID:41393070

大小:63.08 KB

页数:9页

时间:2019-08-24

Windows命令行下配置IP地址_第1页
Windows命令行下配置IP地址_第2页
Windows命令行下配置IP地址_第3页
Windows命令行下配置IP地址_第4页
Windows命令行下配置IP地址_第5页
资源描述:

《Windows命令行下配置IP地址》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、Windows命令行下配置IP地址Sometimesthesystemiswrong,thereisnolocalconnectioninthenetworkconnection,andthenetworkcardisnorma1.ThereisnowaytochangethelocalIPaddress・BecauseusuallymodifyIPinthelocalconnectionproperties,butlocalconnectionisnowcan'tsee,underthecommandlinewithIPconf

2、igcanviewyourIPaddress,butcannotbemodified.Infact,wecanconfiguretheIPaddressatthecommandline,whichistheNETSHcommandofthesystem.Aftermybatchprocessing,youcanmodifythe"localconnection"IPaddress:@echooffSetIP=〃192.168.3.100〃//settheIPaddressarbitrarily(theIPaddressandthe

3、connectionnameareenclosedindoublequotationmarks)EchosetIPaddressto%IP%ThenetshinterfaceIPsetaddressname二"localcormection"Thesource=staticaddress=%IPnumbermask=255.255.255.0Gateway=192.168.3.177Remgwmetric=autoEcho〃ok〃RempauseCommonnetshcommands:(1)setuptheWindowsxpthe

4、IPaddressofthe"localconnection"for10.223・3.254,subnetas255・255・255・0,gatewayfor10.223.3.1,jumppoints1.C:>netshinterfaceIPsettheaddressname二"localareaconnectiorTsource二staticaddr二10.223.3.254mask255.255.255.0gatewayof二二10.223.3.1Gwmetric二auto(2)settingtheIPaddressofWi

5、ndowsxp"localconnection"automaticallygetstheC:>netshinterfaceIPsetaddressname二"localareaconnectiorTsource二DHCP(3)theDNSnameforsettingWindowsxp"localconnectiorTis10.223・3.2C:>netshinterfaceIPsetDNSname二"localareaconnection"source二staticaddr二10.223.3.2register二primary

6、(4)theDNSforsettingupWindowsxp"localconnectiorTisautomaticallyobtainedC:>netshinterfaceIPsetDNSname二"localareaconnection"source二DHCPAttached:thenetshcommandconfigurestheIPaddressandthedetailedusageofDNSAddIPaddressesanddefaultgateways(add,resetorupdatetheoriginalIPad

7、dress)NetshaddinterfaceIPaddressUsage:addaddress[name二]IPaddress[mask二]IPsubnetmask][[gateway二]IPaddress[gwmetric二]integer]Parameters:Name-IPinterfacename・Addr-theIPaddresstobeaddedtothisinterface・Mask-theIPsubnetmaskthatspecifiestheIPaddress・Gateway-specifiesthedefau

8、ltgatewayfortheIPaddress・Gwmetric-thejumppointforthedefaultgateway.Annotation:addanIPaddressanddefaultgatewaytoaninterfaceco

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。