ipconfig的使用详细介绍
总的参数简介(也可以在DOS方式下输入Ipconfig/?进行参数查询)
C:\DocumentsandSettings\sumuhong>ipconfig/?
USAGE:
ipconfig[/?|/all|/renew[adapter]|/release[adapter]|
/flushdns|/displaydns|/registerdns|
/showclassidadapter|
/setclassidadapter[classid]]
where
adapterConnectionname
(wildcardcharacters*and?allowed,seeexamples)
Options:
/?Displaythishelpmessage
/allDisplayfullconfigurationinformation.
/releaseReleasetheIPaddressforthespecifiedadapter.
/renewRenewtheIPaddressforthespecifiedadapter.
/flushdnsPurgestheDNSResolvercache.
/registerdnsRefreshesallDHCPleasesandre-registersDNSnames
/displaydnsDisplaythecontentsoftheDNSResolverCache.
/showclassidDisplaysallthedhcpclassIDsallowedforadapter.
/setclassidModifiesthedhcpclassid.
ThedefaultistodisplayonlytheIPaddress,subnetmaskand
defaultgatewayforeachadapterboundtoTCP/IP.
ForReleaseandRenew,ifnoadapternameisspecified,thentheIPaddress
leasesforalladaptersboundtoTCP/IPwillbereleasedorrenewed.
ForSetclassid,ifnoClassIdisspecified,thentheClassIdisremoved.
Examples:
>ipconfig...Showinformation.
>ipconfig/all...Showdetailedinformation
>ipconfig/renew...renewalladapters
>ipconfig/renewEL*...renewanyconnectionthathasits
namestartingwithEL
>ipconfig/release*Con*...releaseallmatchingconnections,
eg."LocalAreaConnection1"or
"LocalAreaConnection2"
Ipconfig/all:显示本机TCP/IP配置的详细信息;
Ipconfig/release:DHCP客户端手工释放IP地址;
Ipconfig/renew:DHCP客户端手工向服务器刷新请求;
Ipconfig/flushdns:清除本地DNS缓存内容;
Ipconfig/displaydns:显示本地DNS内容;
Ipconfig/registerdns:DNS客户端手工向服务器进行注册;
Ipconfig/showclassid:显示网络适配器的DHCP类别信息;
Ipconfig/setclassid:设置网络适配器的DHCP类别。
谈下ipconfig/all各个参数的意思
WindowsIPConfiguration
HostName............:pine(服务器名)
PrimaryDnsSuffix.......:
NodeType............:Unknown
IPRoutingEnabled........:No
WINSProxyEnabled........:NoEthernetadapter本地连接:
Connection-specificDNSSuffix.:
Description...........:SundanceST201basedPCIFastEtheretAdapter(本机的网卡型号)
PhysicalAddress.........:00-05-5D-05-8F-F7(本网卡的MAC地址)
DhcpEnabled...........:Yes(DHCP服务器开放)
AutoconfigurationEnabled....:Yes
AutoconfigurationIPAddress...:169.254.235.57(本地IP地址0
SubnetMask...........:255.255.0.0(子网掩码)
DefaultGateway.........:PPPadapterrichard:(PPPOE拨号程序)
Connection-specificDNSSuffix.:
Description...........:WAN(PPP/SLIP)Interface
PhysicalAddress.........:00-53-45-00-00-00(PPPOE拨号的MAC地址)
DhcpEnabled...........:No
IPAddress............:218.61.119.190(对映的服务器的客户端IP地址)
SubnetMask...........:255.255.255.255(对映的服务器的客户端子网掩码)
DefaultGateway.........:218.61.119.190(对映的服务器的客户端网关地址)
DNSServers...........:202.96.64.68
202.96.69.38(接入商DNS服务的地址)
NetBIOSoverTcpip........:Disabled