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下載網址(更新)
|