您的位置:教学培训学习园地

ipconfig的使用详细介绍

来源:电脑故障知识网 阅读次数:263

总的参数简介(也可以在DOS方式下输入 Ipconfig /? 进行参数查询)
C:\Documents and Settings\sumuhong>ipconfig/?


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"

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类别。