ipconfig命令引數

suv789發表於2024-03-27

ipconfig /?

USAGE:
ipconfig [/allcompartments] [/? | /all |
/renew [adapter] | /release [adapter] |
/renew6 [adapter] | /release6 [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] |
/showclassid6 adapter |
/setclassid6 adapter [classid] ]

where
adapter Connection name
(wildcard characters * and ? allowed, see examples)

Options:
/? Display this help message
/all Display full configuration information.
/release Release the IPv4 address for the specified adapter.
/release6 Release the IPv6 address for the specified adapter.
/renew Renew the IPv4 address for the specified adapter.
/renew6 Renew the IPv6 address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.
/showclassid6 Displays all the IPv6 DHCP class IDs allowed for adapter.
/setclassid6 Modifies the IPv6 DHCP class id.


The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid and Setclassid6, if no ClassId is specified, then the ClassId is removed.

Examples:
> ipconfig ... Show information
> ipconfig /all ... Show detailed information
> ipconfig /renew ... renew all adapters
> ipconfig /renew EL* ... renew any connection that has its
name starting with EL
> ipconfig /release *Con* ... release all matching connections,
eg. "Wired Ethernet Connection 1" or
"Wired Ethernet Connection 2"
> ipconfig /allcompartments ... Show information about all
compartments
> ipconfig /allcompartments /all ... Show detailed information about all
compartments


用法:
ipconfig [/allcompartments] [/? | /all |
/renew [adapter] | /release [adapter] |
/renew6 [adapter] | /release6 [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] |
/showclassid6 adapter |
/setclassid6 adapter [classid] ]

其中
adapter 連線名稱
(允許使用萬用字元 * 和 ?,請參見示例)

選項:
/? 顯示此幫助訊息
/all 顯示完整的配置資訊。
/release 釋放指定介面卡的IPv4地址。
/release6 釋放指定介面卡的IPv6地址。
/renew 為指定介面卡續訂IPv4地址。
/renew6 為指定介面卡續訂IPv6地址。
/flushdns 清除DNS解析器快取。
/registerdns 重新整理所有DHCP租約並重新註冊DNS名稱
/displaydns 顯示DNS解析器快取的內容。
/showclassid 顯示介面卡允許的所有dhcp類別ID。
/setclassid 修改dhcp類別ID。
/showclassid6 顯示介面卡允許的所有IPv6 DHCP類別ID。
/setclassid6 修改IPv6 DHCP類別ID。

預設情況下,只顯示每個繫結到TCP/IP的介面卡的IP地址、子網掩碼和預設閘道器。

對於Release和Renew,如果未指定介面卡名稱,則將釋放或續訂所有繫結到TCP/IP的介面卡的IP地址租約。

對於Setclassid和Setclassid6,如果未指定ClassId,則將刪除ClassId。

示例:
> ipconfig ... 顯示資訊
> ipconfig /all ... 顯示詳細資訊
> ipconfig /renew ... 續訂所有介面卡
> ipconfig /renew EL* ... 續訂任何名稱以EL開頭的連線
> ipconfig /release Con ... 釋放所有匹配的連線,
例如“有線乙太網連線 1”或
“有線乙太網連線 2”
> ipconfig /allcompartments ... 顯示關於所有
compartments的資訊
> ipconfig /allcompartments /all ... 顯示有關所有
compartments的詳細資訊


相關文章