netstat

C:\Users\vitas>netstat -a

活动连接

  协议本地地址 外部地址 状态
  TCP 0.0.0.0:135 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:445 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:912 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:1433 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:2383 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:49152 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:49153 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:49154 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:49155 ruhua-PC:0 LISTENING
  TCP 0.0.0.0:49156 ruhua-PC:0 LISTENING
  TCP 10.106.107.185:139 ruhua-PC:0 LISTENING
  TCP 10.106.107.185:49956 203.208.46.219:http CLOSE_WAIT
  TCP 10.106.107.185:49957 203.208.46.219:http CLOSE_WAIT
  TCP 10.106.107.185:50159 121.194.0.188:http CLOSE_WAIT
  TCP 10.106.107.185:50160 121.194.0.188:http CLOSE_WAIT
  TCP 10.106.107.185:52170 112.95.240.43:https CLOSE_WAIT
  TCP 10.106.107.185:53312 123.125.114.101:http CLOSE_WAIT
  TCP 10.106.107.185:53313 123.125.114.101:http CLOSE_WAIT
  TCP 10.106.107.185:53369 123.125.115.43:http CLOSE_WAIT
^C
C:\Users\vitas>netstat -n

活动连接
  协议本地地址 外部地址 状态
  TCP 10.106.107.185:49956 203.208.46.219:80 CLOSE_WAIT
  TCP 10.106.107.185:49957 203.208.46.219:80 CLOSE_WAIT
  TCP 10.106.107.185:50159 121.194.0.188:80 CLOSE_WAIT
  TCP 10.106.107.185:50160 121.194.0.188:80 CLOSE_WAIT
  TCP 10.106.107.185:52170 112.95.240.43:443 CLOSE_WAIT
  TCP 10.106.107.185:53312 123.125.114.101:80 CLOSE_WAIT
  TCP 10.106.107.185:53313 123.125.114.101:80 CLOSE_WAIT
  TCP 10.106.107.185:53369 123.125.115.43:80 CLOSE_WAIT
  TCP 10.106.107.185:53370 123.125.115.43:80 CLOSE_WAIT
  TCP 10.106.107.185:53381 123.125.65.210:80 CLOSE_WAIT
  TCP 10.106.107.185:53382 123.125.65.210:80 CLOSE_WAIT
  TCP 10.106.107.185:53385 119.75.219.36:80 CLOSE_WAIT
  TCP 10.106.107.185:53386 119.75.219.36:80 ESTABLISHED
  TCP 10.106.107.185:53405 123.125.115.164:80 ESTABLISHED
  TCP 10.106.107.185:53406 123.125.115.164:80 CLOSE_WAIT
  TCP 10.106.107.185:53573 112.95.240.43:443 CLOSE_WAIT
  TCP 10.106.107.185:53913 61.158.219.70:80 ESTABLISHED
  TCP 10.106.107.185:53940 61.158.219.70:80 ESTABLISHED
  TCP 10.106.107.185:54003 112.95.240.43:443 ESTABLISHED
  TCP 10.106.107.185:54174 112.95.240.43:443 CLOSE_WAIT
  TCP 10.106.107.185:54267 121.194.0.188:80 CLOSE_WAIT
  TCP 10.106.107.185:54268 121.194.0.188:80 CLOSE_WAIT
  TCP 10.106.107.185:54273 119.75.218.70:80 CLOSE_WAIT
  TCP 10.106.107.185:54274 119.75.218.70:80 CLOSE_WAIT
  TCP 10.106.107.185:54275 123.125.115.43:80 CLOSE_WAIT
  TCP 10.106.107.185:54276 123.125.115.43:80 CLOSE_WAIT
  TCP 10.106.107.185:54279 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54280 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54281 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54282 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54283 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54284 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54285 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54286 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54287 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54288 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54289 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54290 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54291 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54292 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54293 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54294 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54295 121.194.6.41:80 TIME_WAIT
  TCP 10.106.107.185:54297 121.194.6.41:80 TIME_WAIT

C:\Users\vitas>netstat -o

活动连接

  协议本地地址 外部地址 状态 PID
  TCP 10.106.107.185:49956 203.208.46.219:http CLOSE_WAIT 2756
  TCP 10.106.107.185:49957 203.208.46.219:http CLOSE_WAIT 2756
  TCP 10.106.107.185:50159 121.194.0.188:http CLOSE_WAIT 2756
^C


C:\Users\vitas>netstat -e
接口统计
                          接收的 发送的

字节 2584162698 167808567
单播数据包 2707614 1486686
非单播数据包 2143776 10026
丢弃 378 378
错误 0 0
未知协议 0

C:\Users\vitas>netstat -r
===========================================================================
接口列表
 11...70 5a b6 5b 5b b1 ......Broadcom NetLink (TM) Fast Ethernet
  1...........................Software Loopback Interface 1
 16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
 13...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
 17...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================

IPv4 路由表
===========================================================================
活动路由:
网络目标 网络掩码 网关 接口 跃点数
          0.0.0.0 0.0.0.010.106.107.1 10.106.107.185 276
     10.106.107.0 255.255.255.0 在链路上10.106.107.185 276
   10.106.107.185 255.255.255.255 在链路上 10.106.107.185276
   10.106.107.255 255.255.255.255 在链路上 10.106.107.185276
        127.0.0.0 255.0.0.0 在链路上127.0.0.1 306
        127.0.0.1 255.255.255.255 在链路上127.0.0.1 306
  127.255.255.255 255.255.255.255 在链路上 127.0.0.1 306
      169.254.0.0 255.255.0.0 在链路上10.106.107.185 30
  169.254.255.255 255.255.255.255 在链路上 10.106.107.185276
        224.0.0.0 240.0.0.0 在链路上127.0.0.1 306
        224.0.0.0 240.0.0.0 在链路上10.106.107.185 276
  255.255.255.255 255.255.255.255 在链路上 127.0.0.1 306
  255.255.255.255 255.255.255.255 在链路上 10.106.107.185276
===========================================================================
永久路由:
  网络地址网络掩码 网关地址 跃点数
          0.0.0.0 0.0.0.010.106.107.1 默认
===========================================================================

IPv6 路由表
===========================================================================
活动路由:
 如果跃点数网络目标网关
  1 306 ::1/128 在链路上
  1 306 ff00::/8 在链路上
===========================================================================
永久路由:
  无


你可能感兴趣的:(c,tcp,网络,活动,Microsoft,interface)