IPCONFIG
(ipconfig)
IPConfig实用程序和它的等价图形用户界面——Windows 95/98中的WinIPCfg可用于显示当前的TCP/IP配置的设置值。这些信息一般用来检验人工配置的TCP/IP设置是否正确。但是,如果你的计算机和所在的局域网使用了动态主机配置协议(Dynamic Host Configuration
Protocol,DHCP——Windows NT下的一种把较少的IP地址分配给较多主机使用的协议,类似于拨号上网的动态IP分配),这个程序所显示的信息也许更加实用。这时,IPConfig可以让你了解你的计算机是否成功的租用到一个IP地址,如果租用到则可以了解它目前分配到的是什么地址。了解计算机当前的IP地址、子网掩码和缺省网关实际上是进行测试和故障分析的必要项目。 
最常用的选项:
Ipconfig 
当使用IPConfig时不带任何参数选项,那么它为每个已经配置了的接口显示IP地址、子网掩码和缺省网关值。 
ipconfig /all
当使用all选项时,IPConfig能为DNS和WINS服务器显示它已配置且所要使用的附加信息(如IP地址等),并且显示内置于本地网卡中的物理地址(MAC)。如果IP地址是从DHCP服务器租用的,IPConfig将显示DHCP服务器的IP地址和租用地址预计失效的日期(有关DHCP服务器的相关内容请详见其他有关NT服务器的书籍或询问你的网管)。 
ipconfig /release和ipconfig /renew
这是两个附加选项,只能在向DHCP服务器租用其IP地址的计算机上起作用。如果你输入ipconfig /release,那么所有接口的租用IP地址便重新交付给DHCP服务器(归还IP地址)。如果你输入ipconfig /renew,那么本地计算机便设法与DHCP服务器取得联系,并租用一个IP地址。请注意,大多数情况下网卡将被重新赋予和以前所赋予的相同的IP地址。 
如果你使用的是Windows 95/98,那么你应该更习惯使用winipcfg而不是ipconfig,因为它是一个图形用户界面,而且所显示的信息与ipconfig相同,并且也提供发布和更新动态IP地址的选项。如果你购买了Windows NT Resource Kit(NT资源包),那么Windows NT也包含了一个图形替代界面,该实用程序的名字是wntipcfg,和Windows 95/98的winipcfg类似。
总的参数简介(也可以在DOS方式下输入 Ipconfig
/? 进行参数查询)
Ipconfig /all:显示本机TCP/IP配置的详细信息; 
Ipconfig /release:DHCP客户端手工释放IP地址; 
Ipconfig /renew:DHCP客户端手工向服务器刷新请求; 
Ipconfig /flushdns:清除本地DNS缓存内容; 
Ipconfig /displaydns:显示本地DNS内容; 
Ipconfig /registerdns:DNS客户端手工向服务器进行注册; 
Ipconfig /showclassid:显示网络适配器的DHCP类别信息; 
Ipconfig /setclassid:设置网络适配器的DHCP类别。
USAGE:
    ipconfig [/? | /all | /renew [adapter] | /release
[adapter] |
             
/flushdns | /displaydns
| /registerdns |
             
/showclassid adapter |
             
/setclassid 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 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.
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"