用来显示用户所在主机内部IP协议配置信息的命令是什么

2020-09-01 科技 292阅读
windows的话现实本机IP配置的命令就是就是ipconfig。
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.
通过/? 我们就得到了上面这个列表
/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所显示信息以文本方式写入指定文件。此参数可用来备份本机的网络配置。
二、应用实例
例1:ipconfig /all 这个就列出了所有的网络配置信息
Windows IP Configuration
Host Name . . . . . . . . . . . . : microsof-372e43
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethrnet NIC 第一块网卡
Physical Address. . . . . . . . . : 00-E0-4E-11-07-5B
这个是上面那块网卡的物理地址,因为没有启用,所以只有这些信息,如果启用的话就跟下面的8029网卡是一样多的。
这个是WINDOWS IP信息,这个一般是不需要看的。 可以去我的电脑--属性里进行修改
Ethernet adapter 本地连接 2:
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI Ethernet Adpter
Physical Address. . . . . . . . . : 52-54-AB-3C-09-85
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 202.96.199.132
209.6.199.133
这个是另外一块网卡的信息,包括IP DNS GATEWAY等等信息。这些你都可以自动填写,也可以通过DNCP获取。
PPP adapter FTTB:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 61.129.XXX.XXX
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 61.129.XXX.XXX
DNS Servers . . . . . . . . . . . : 202.96.209.133
10.16.1.24
NetBIOS over Tcpip. . . . . . . . : Disabled
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com