3.7指令介绍:ipconfig,netstat
windows系统cmd状态下键入:ipconfig /all,得到网络接口配置信息,如下
C:\Documents and Settings\Administrator>ipconfig /all
Windows IP Configuration
Host Name............ : QinKunming
Primary Dns Suffix .......:
Node Type............ : Unknown
IP Routing Enabled........: Yes
WINS Proxy Enabled........: No
Ethernet adapter 本地连接:
Connection-specific DNS Suffix .:
Description...........: VIA Compatable Fast Ethernet Adapter
Physical Address......... : 00-0B-6A-0E-79-5B
Dhcp Enabled........... : No
IP Address............: 10.201.104.83
Subnet Mask...........: 255.255.255.192
Default Gateway.........: 10.201.104.65
DNS Servers...........: 10.201.11.188
windows系统cmd状态下键入:netstat,得到当前网络连接情况,如下
C:\Documents and Settings\Administrator>netstat
Active Connections
Proto Local Address Foreign Address State
TCP QinKunming:1314 by2msg1204316.gateway.edge.messenger.live.com:1863 ESTABLISHED
TCP QinKunming:1347 10.201.115.124:2817 ESTABLISHED
TCP QinKunming:1375 10.201.11.84:1138 ESTABLISHED
TCP QinKunming:1376 10.201.104.188:http ESTABLISHED
TCP QinKunming:1377 10.201.104.188:http ESTABLISHED
TCP QinKunming:1378 10.201.104.188:http ESTABLISHED