ipconfig

本页使用了标题或全文手工转换
维基百科,自由的百科全书

ipconfig微软操作系统的电脑上用来控制网络连线的一个命令行工具。它的主要功用,包括用来显示现时网络连线的设置(/all参数),或透过/release参数来释放获取的ip位置,和透过 /renew 来重新获取ip位置的分配。

Windows 9x系统上,过去亦有一个GUI版本的winipcfg,但在Windows 2000之后即不再复见。后来,微软在他们的网页提供了wntipcfg供用户下载。此外,本命令其实脱胎自Unix的ifconfig

参数表[编辑]

/?
显示帮助资讯
/all
显示现时所有网络连线的设置
/release
释放某一个网络上的IP位置
/renew
更新某一个网络上的IP位置
/flushdns
把DNS解析器的暂存内容全数删除

结果示例[编辑]

Windows 2000 IP Configuration

 C:\>ipconfig /all
 Windows 2000 IP Configuration
 Host Name . . . . . . . . . . . . : wikipedia
 Primary DNS Suffix . . . . . . . :
 Node Type . . . . . . . . . . . . : Hybrid
 IP Routing Enabled. . . . . . . . : No
 WINS Proxy Enabled. . . . . . . . : No
 DNS Suffix Search List. . . . . . : wikipedia.org
 Ethernet adapter Local Area Connection 2:
 Connection-specific DNS Suffix . : wikipedia.org
 Description . . . . . . . . . . . : Intel(R) PRO/100 VE Netwon #3
 Physical Address. . . . . . . . . : 00-D0-B7-A6-F1-11
 DHCP Enabled. . . . . . . . . . . : Yes
 Autoconfiguration Enabled . . . . : Yes
 IP Address. . . . . . . . . . . . : 192.168.0.100
 Subnet Mask . . . . . . . . . . . : 255.255.0.0
 Default Gateway . . . . . . . . . : 192.168.0.3
 DHCP Server . . . . . . . . . . . : 192.168.0.1
 DNS Servers . . . . . . . . . . . : 192.168.0.1
 Primary WINS Server . . . . . . . : 192.168.0.75
 what is lease. . . . . . . . . . : 27 May 2004 09:04:06
 Lease Expires . . . . . . . . . . : 30 May 2004 09:04:06
 C:\>ipconfig /release
 Windows 2000 IP Configuration
 IP address successfully released for adapter "Local Area Connection 2"
 C:\>ipconfig /renew
 Windows 2000 IP Configuration
 Ethernet adapter Local Area Connection 2:
 Connection-specific DNS Suffix . : wikipedia.org
 IP Address. . . . . . . . . . . . : 192.168.0.100
 Subnet Mask . . . . . . . . . . . : 255.255.0.0
 Default Gateway . . . . . . . . . : 192.168.0.1

参看[编辑]