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

參看

  • ifconfig:在Linux/BSD與ipconfig等同的命令。
  • wntipcfg (页面存档备份,存于互联网档案馆
  • wntipcfg下載網址(更新)
文件管理导航
文件管理操作
  • attrib英语ATTRIB
  • cacls
  • cipher
  • compact
  • copy
  • del英语del (command) (erase)
  • deltree英语deltree
  • expand
  • icacls
  • makecab
  • md (mkdir)
  • move英语move (command)
  • rd (rmdir)
  • recover英语recover (command)
  • ren英语ren (command) (rename)
  • replace英语replace (command)
  • Rmdir
  • robocopy英语robocopy
  • xcopy英语XCOPY
磁盘管理
  • chkdsk
  • convert英语convert (command)
  • defrag
  • diskcomp英语diskcomp
  • diskcopy英语diskcopy
  • diskpart英语diskpart
  • fdisk英语fdisk
  • format英语Format (command)
  • label英语label (command)
  • subst英语SUBST
  • scandisk
  • sys英语SYS (command)
  • vol英语vol (command)
  • vssadmin
进程
  • exit
  • kill
  • powercfg英语powercfg
  • runas
  • sc
  • shutdown
  • start英语start (command)
  • taskkill
  • tasklist英语tasklist
注册表
用户环境
  • date
  • mode
  • path
  • set
  • setx
  • time英语TIME (command)
  • title
  • ver英语ver (command)
  • Whoami
文件内容
  • comp英语comp (command)
  • edit英语MS-DOS Editor
  • edlin英语edlin
  • fc英语Microsoft File Compare
  • find英语find (command)
  • findstr
  • print英语PRINT (command)
  • type英语TYPE (DOS command)
脚本
  • choice英语choice (command)
  • clip
  • cscript
  • doskey英语DOSKEY
  • echo
  • for
  • Goto
  • if
  • more
  • pause
  • prompt英语Command-line_interface#Command_prompt
  • rem
网络
维护
启动管理
软件开发
杂项
  • cls
  • help英语help (command)