网管常用的网络命令集合

2019-09-19 07:00:50王振洲

使用 ipconfig 命令获得主机配置信息,包括 IP 地址、子网掩码和默认网关。 

注意 

对于 Windows 95 和 Windows 98 的客户机,请使用 winipcfg 命令而不是 ipconfi 
g 命令。 
使用带 /all 选项的 ipconfig 命令时,将给出所有接口的详细配置报告,包括任何 
已配置的串行端口。使用 ipconfig /all,可以将命令输出重定向到某个文件,并将 
输出粘贴到其他文档中。也可以用该输出确认网络上每台计算机的 TCP/IP 配置,或 
者进一步调查 TCP/IP 网络问题。 

例如,如果计算机配置的 IP 地址与现有的 IP 地址重复,则子网掩码显示为 0.0.0 
.0。 

下面的范例是 ipconfig /all 命令输出,该计算机配置成使用 DHCP 服务器动态配置 
TCP/IP,并使用 WINS 和 DNS 服务器解析名称。 

Windows 2000 IP Configuration 

Node Type.. . . . . . . . : Hybrid 
IP Routing Enabled.. . . . : No 
WINS Proxy Enabled.. . . . : No 

Ethernet adapter Local Area Connection: 

Host Name.. . . . . . . . : corp1.microsoft.com 
DNS Servers . . . . . . . : 10.1.0.200 
Description. . . . . . . : 3Com 3C90x Ethernet Adapter 
Physical Address. . . . . : 00-60-08-3E-46-07 
DHCP Enabled.. . . . . . . : Yes 
Autoconfiguration Enabled.: Yes 
IP Address. . . . . . . . . : 192.168.0.112 
Subnet Mask. . . . . . . . : 255.255.0.0 
Default Gateway. . . . . . : 192.168.0.1 
DHCP Server. . . . . . . . : 10.1.0.50 
Primary WINS Server. . . . : 10.1.0.101 
Secondary WINS Server. . . : 10.1.0.102 
Lease Obtained.. . . . . . : Wednesday, September 02, 1998 10:32:13 AM 
Lease Expires.. . . . . . : Friday, September 18, 1998 10:32:13 AM 


如果 TCP/IP 配置没有问题,下一步测试能够连接到 TCP/IP 网络上的其他主机。 
相关文章 大家在看