来源:网络 | 2013-1-7 | (有7616人读过)
ipconfig命令详解 选项 Options: /? Display this help message /all Display full configuration information. /release Release the IP address for the specified adapter. 释放DHCP获取的ip地址,此时如果您的电脑是动态ip上网,则会掉线。 /renew Renew the IP address for the specified adapter. 重新获取dhcp分配的随机动态内网ip地址,可重新实现上网。 /flushdns Purges the DNS Resolver cache. 清空本地dns缓存。 /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. 通过/? 我们就得到了上面这个列表 /all:显示所有网络适配器(网卡、拨号连接等)的完整TCP/IP配置信息。与不带参数的用法相比,它的信息更全更多,如IP是否动态分配、显示网卡的物理地址等。 /release:DHCP客户端手工释放IP地址; (/release_all和/release N 释放全部(或指定)适配器的由 DHCP分配的动态IP 地址。此参数适用于IP地址非静态分配的网卡,通常和下文的renew参数结合使用。) /renew:DHCP客户端手工向服务器刷新请求;重新定义IP, 通常也是使用 /flushdns以后所必须使用的命令。 (ipconfig /renew_all或ipconfig /renew N 为全部(或指定)适配器重新分配IP地址。此参数同样仅适用于IP地址非静态分配的网卡,通常和上文的release参数结合使用。) /flushdns:清除本地DNS缓存内容; 这个命令是用来清空内存中的DNS列表。如果DNS有问题的话可以用这个命令进行清空。 /displaydns:显示本地DNS内容; /registerdns:DNS客户端手工向服务器进行注册; 用了/flushdns命令以后都需要使用这个命令,不然就无法浏览网站等需要DNS解析的网络连接 /showclassid:显示网络适配器的DHCP类别信息; /setclassid:设置网络适配器的DHCP类别。 /batch 文件名 :将Ipconfig所显示信息以文本方式写入指定文件。此参数可用来备份本机的网络配置。
|