天天看點

ipconfig使用方法完整版

  iPConfig是檢視本機ip網絡配置,排除本機網絡故障必用的一個DOS指令。

  在“開始”菜單項中的“運作”或搜尋欄中輸入“cmd”,确定或按Enter鍵後打開“指令提示符”視窗。

  在其中輸入“iPConfig /all”并回車,注意,不用輸入引号,即可顯示這個指令的幫助提示資訊,如下圖所示。

ipconfig使用方法完整版

  幫助文檔文字如下:

  USAGE:

      

  where

      adapter         Connection name

                   (wildcard characters * and ? allowed, see examples)

     Options:

         /?          

         /all         

         /release     Release the IP address for the specified adapter.

         /renew       Renew the IP address for the specified adapter.

         /flushdns    Purges the DNS Resolver cache.

         /registerdns  

         /displaydns  Display the contents of the DNS Resolver Cache.

         /showclassid  

         /setclassid   

  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, 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. "Local Area Connection 1" or

                                           "Local Area Connection 2"

  下面對上述幫助文檔逐個加以解釋。

   /? Display this help message.翻譯過來的意思是顯示幫助提示資訊。

   /all  Display full configuration information.這個開關箱顯示完全的配置資訊。

  下面是筆者電腦IP配置的截圖如下:

ipconfig使用方法完整版

  如上圖所示,其中顯示了IP配置和各擴充卡的詳細資訊。

  其中:

  Host Name後面顯示的是主機名

  Primary Dns Suffix後面顯示主DNS字尾

  Node Type指節點類型

  IP Routing Enabled,是否開啟IP路由

  WINS Proxy Enabled指WINS代理服務是否啟用

  下面則是各擴充卡的詳細的配置資訊,根據具體電腦的不同,可能有多個擴充卡的配置資訊。

  “Ethernet adapter 本地連接配接 ”是擴充卡的名稱,緊接着下面是它的配置資訊。

  Connection-specific DNS Suffix 特定連接配接的DNS字尾

  Description 描述

  Physical Address 實體位址,mac

  Dhcp Enabled DHCP是否開啟

  Autoconfiguration Enabled 自動配置是否開啟

  IP Address

  Subnet Mask

  Default Gateway預設網關IP

  DHCP Server DHCP服務IP位址如果設定成靜态IP的話,則這裡會顯示no

  DNS Servers DNS伺服器

  Lease Obtained IP位址用開始時間,如果設定成靜态IP的話,這項就不會顯示。

  Lease Expires指IP位址租用結束時間,如果設定成靜态IP的話,這項就不會顯示。

  以上是ipconfig /all指令顯示的各項解釋。

  /release Release the IP address for the specified adapter.意思是強制釋放指定擴充卡的IP位址。對  于靜态設定來說,這個指令開關是無效的,與它對應的則是 /renew,Renew the IP address for the specified adapter.則是重新擷取指定擴充卡的IP位址。同樣的,這個指令也對靜态設定無效。

  /flushdns    Purges the DNS Resolver cache.清除本地DNS緩存内容。

  /registerdns Refreshes all DHCP leases and re-registers DNS names 重新整理DHCP租期用戶端手工向伺服器進行注冊DNS名。

  /displaydns  Display the contents of the DNS Resolver Cache.顯示DNS解析緩沖的内容。

  /showclassid Displays all the dhcp class IDs allowed for adapter.顯示指定的擴充卡的DHCP類别ID

  /setclassid  Modifies the dhcp class id.修改擴充卡的DHCP類别。

  上面的用于特定操作的開關項中,可以使用*和?通配符。

繼續閱讀