ipconfig的使用

ipconfig命令的使用
ipconfig命令是用來顯示網絡接口的配置信息即顯示所有當前的 TCP/IP 網絡配置值、刷新動態主機配置協議 (DHCP) 和域名系統 (DNS) 設置。
ipconfig命令的參數有:/all   ;  /renew  ;  /release  ;   /flushdns  ;  /displaydns  ;  /registerdns  ;  /showclassid Adapter  ;  /setclassid Adapter [ClassID]
ipconfig單獨使用
C:\>ipconfig
Windows IP Configuration
Ethernet adapter 本地連接:
        Connection-specific DNS Suffix  . : router
        IP Address. . . . . . . . . . . . : 192.168.0.2           顯示適配器的ip地址
       Subnet Mask . . . . . . . . . . . : 255.255.255.0     子網掩碼
       Default Gateway . . . . . . . . . : 192.168.0.1        默認網關
/all : 顯示所有適配器完整的TCP/IP信息
C:\>ipconfig /all
Windows IP Configuration
        Host Name . . . . . . . . . . . . : PC-200909212245
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : router
Ethernet adapter 本地連接:
        Connection-specific DNS Suffix  . : router
        Description . . . . . . . . . . . : Realtek RTL8168/8111 PCI-E Gigabit E
thernet NIC                                                                             對網卡的描述
       Physical Address. . . . . . . . . : 00-1F-D0-D2-E7-A0   物理地址
       Dhcp Enabled. . . . . . . . . . . : Yes                                  Dhcp激活
       Autoconfiguration Enabled . . . . : Yes                         自動配置開啓
       IP Address. . . . . . . . . . . . : 192.168.0.2                           IP地址
       Subnet Mask . . . . . . . . . . . : 255.255.255.0                   子網掩碼
       Default Gateway . . . . . . . . . : 192.168.0.1                      默認網關
       DHCP Server . . . . . . . . . . . : 192.168.0.1                          DHCP服務器
       DNS Servers . . . . . . . . . . . : 192.168.0.1                           DNS服務器
       Lease Obtained. . . . . . . . . . : 2009年10月5日 21:48:35  獲得租約時間
       Lease Expires . . . . . . . . . . : 2009年10月12日 21:48:35    租約到期時間
/renew +適配器:更新所有適配器(如果未指定適配器),或特定適配器(如果包含了 Adapter 參數)的 DHCP 配置。該參數僅在具有配置爲自動獲取 IP 地址的適配器的計算機上可用 
/release+適配器:發送 DHCPRELEASE 消息到 DHCP 服務器,以釋放所有適配器(如果未指定適配器)或特定適配器(如果包含了 Adapter 參數)的當前 DHCP 配置並丟棄 IP 地址配置
/flushdns : 刷新並重設DNS 客戶解析緩存的內容,排錯時可能用到
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
/displaydns  :顯示 DNS 客戶解析緩存的內容 
C:\>ipconfig /displaydns
Windows IP Configuration
         7939.com
         ----------------------------------------
         Record Name . . . . . : 7939.com
         Record Type . . . . . : 1
         Time To Live  . . . . : 592201
         Data Length . . . . . : 4
         Section . . . . . . . : Answer
         A (Host) Record . . . : 127.0.0.1
 
/registerdns  :初始化計算機上配置的 DNS 名稱和 IP 地址的手工動態註冊
/showclassid Adapter  :顯示指定適配器的 DHCP 類別 ID
/setclassid Adapter [ClassID] :配置特定適配器的 DHCP 類別 ID
/?:顯示ipconfig的幫助信息
 Options:
  /?           Display this help message
  /all         Display full configuration information.
  /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 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.
 
對於ipconfig的參數,本人認爲ipconfig單獨使用和ipconfig /all以及ipconfig /release  ipconfig /renew 比較常用!寫的有點多,希望能對想了解的朋友有用!

 
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章