CPU过高之内网流量型攻击---如何找出这台内网PC

[ 1752 查看 / 9 回复 ]

此例子是比较典型的内网PC全网中毒,中毒后的现象是一直往外网发包。导致内网口被堵满。=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
故障现象:CPU 90%以上、PING内网网关丢包严重、面板上繁忙饱和正常空闲四个个灯全亮=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
通过配置线登录,收集信息。信息收集可以参考以下链接地址:=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
http://support.ruijie.com.cn/showtopic-19267.aspx=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
如何通过收集的信息来查看是哪台PC上行流量过大导致路由器CPU高。一般只需要看三个地方,一个是内网口、一个是外网接口的发送流量,最后一个是每台PC的上行及下行的流量。=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
内网口的接收流量,也就是G0/0接口的input流量,是否与G0/1接口的output(发送流量)流量差别很大,如果差了5M以上,那么就需要进一步查看是哪台PC的上行流量偏高导致这两个数值差据了5M以上。=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
查看每台PC的上行及下行流量命令:sh ip f o all,总共有五列,=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
第一列为IP;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
第二列为通过路由器限速后的上行流量;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
第三列为通过路由器限速后的下行流量;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
第四列为PC真实需要的上行流量;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
第五列为PC真实需要的下行流量。=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
可以看下以下收集的某客户信息,内网口G0/0接口input流量为86M左右,G0/1口的output流量只有17M,这个数据可能得知,咱内网有PC在进行上行流量攻击。=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
我们再找出是哪几台PC的上行流量过大导致的,通过sh ip f o all,发现第四列有非常多PC需要高上行带宽的。那么将这几台PC关闭掉后。网络正常。=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
NBR2000#sh int=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
========================== FastEthernet 0/2 =========================n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
FastEthernet 0/2 is DOWN  , line protocol is DOWN=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Hardware is PQ3 FCC FAST ETHERNET CONTROLLER FastEthernet, address is 001a.a941.=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
f512 (bia 001a.a941.f512)=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Interface address is: no ip address=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
ARP type: ARPA,ARP Timeout: 3600 seconds=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  MTU 1500 bytes, BW 100000 Kbit=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Encapsulation protocol is Ethernet-II, loopback not set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Keepalive interval is 10 sec , set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Carrier delay is 2 sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  RXload is 1 ,Txload is 1=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Queueing strategy: FIFO=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Output queue 0/40, 0 drops;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Input queue 0/75, 0 drops=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds input rate 0 bits/sec, 0 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds output rate 0 bits/sec, 0 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 packets input, 0 bytes, 0 res lack, 0 no buffer,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Received 0 broadcasts, 0 runts, 0 giants=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 packets output, 0 bytes, 0 underruns,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 output errors, 0 collisions, 0 interface resets=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
========================== Null 0 =========================n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Null 0 is UP  , line protocol is UP=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Hardware is  Null=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Interface address is: no ip address=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  MTU 1500 bytes, BW 8000000 Kbit=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Encapsulation protocol is NULL, loopback not set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Keepalive interval is 0 sec , no set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Carrier delay is 2 sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  RXload is 1 ,Txload is 1=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Queueing strategy: FIFO=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Output queue 0/40, 0 drops;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Input queue 0/75, 0 drops=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds input rate 0 bits/sec, 0 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds output rate 0 bits/sec, 0 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 packets input, 0 bytes, 0 res lack, 0 no buffer,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Received 0 broadcasts, 0 runts, 0 giants=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 packets output, 0 bytes, 0 underruns,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 output errors, 0 collisions, 0 interface resets=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
========================== GigabitEthernet 0/0 =========================n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
GigabitEthernet 0/0 is UP  , line protocol is UP=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Hardware is PQ3 TSEC GIGABIT ETHERNET CONTR GigabitEthernet, address is 001a.a94=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
1.f510 (bia 001a.a941.f510)=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Interface address is: 192.168.1.1/24=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
ARP type: ARPA,ARP Timeout: 3600 seconds=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  MTU 1500 bytes, BW 50000 Kbit=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Encapsulation protocol is Ethernet-II, loopback not set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Keepalive interval is 10 sec , set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Carrier delay is 2 sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  RXload is 261 ,Txload is 1=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Queueing strategy: FIFO=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Output queue 0/40, 0 drops;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Input queue 0/75, 0 drops=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds input rate 864643768 bits/sec, 101582 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds output rate 1455736 bits/sec, 269 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    128102811 packets input, 3028722988 bytes, 5 res lack, 0 no buffer,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Received 3534 broadcasts, 0 runts, 0 giants=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    5 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    505431 packets output, 375864815 bytes, 0 underruns,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 output errors, 0 collisions, 0 interface resets=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Link Mode: 1000M/Full-Duplex=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Output flowcontrol is off;Input flowcontrol is off.=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
========================== GigabitEthernet 0/1 =========================n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
GigabitEthernet 0/1 is UP  , line protocol is UP=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Hardware is PQ3 TSEC GIGABIT ETHERNET CONTR GigabitEthernet, address is 001a.a94=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
1.f511 (bia 001a.a941.f511)=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Interface address is: 222.77.33.2/30=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
ARP type: ARPA,ARP Timeout: 3600 seconds=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  MTU 1500 bytes, BW 1000000 Kbit=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Encapsulation protocol is Ethernet-II, loopback not set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Keepalive interval is 10 sec , set=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Carrier delay is 2 sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  RXload is 1 ,Txload is 1=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Queueing strategy: FIFO=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Output queue 0/40, 0 drops;=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Input queue 0/75, 0 drops=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds input rate 1727584 bits/sec, 252 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  5 seconds output rate 1700152 bits/sec, 362 packets/sec=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    469021 packets input, 425669196 bytes, 0 res lack, 0 no buffer,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    Received 0 broadcasts, 0 runts, 0 giants=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    603586 packets output, 311332012 bytes, 0 underruns,0 dropped=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
    0 output errors, 0 collisions, 0 interface resets=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Link Mode: 100M/Full-Duplex=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
  Output flowcontrol is off;Input flowcontrol is off.=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
NBR2000#=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
NBR2000#sh ip f o all=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Inner Network Online User:15=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Total inbound original flowrate:888133 Kbps, Inner Network after rate-limit:1947=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Kbps=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Total outbound original flowrate:1613 Kbps, Inner Network after rate-limit:1403=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Kbps=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
IP              Inbound(kb/s)  Outbound(kb/s)  Receive_IN(kb/s)  Receive_OUT(kb=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
/s)=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
Total            1947          1403            888133            1613=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=================================================================================n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
====n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
To-Router-Local                                9                3=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.8      246            999            246              1087=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.4      99            400            109              519=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.123    199            2              59759            2=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.17    200            1              58080            1=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.70    201            1              63442            1=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.10    0              0              0                0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.6      0              0              0                0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.88    201            0              66300            0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.62    201            0              228724            0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.45    201            0              118725            0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.5      0              0              0                0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.21    200            0              223287            0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.7      0              0              0                0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.9      0              0              0                0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
192.168.1.89    199            0              69452            0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
NBR2000#=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
最后编辑rgrg绿色水果 最后编辑于 2010-05-14 11:04:30
本主题由 超级版主 rgrg绿色水果 于 2010-5-14 11:07:44 执行 移动主题 操作
分享 转发
TOP

好贴!=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

学习!!!!=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
牛人的牛贴..=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

我想向LZ请教一下,GigabitEthernet 0/0(Input与Output)和GigabitEthernet 0/1(Input与Output),内网口Input方向是指流入PC的方向,外网口Output方向是指访问外网的数据流量,这两个接口数据关联在一起是什么意思呢?=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

好东西,我刚才正在发帖子找这个命令呢,呵呵,顶了,谢谢=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

内网口G0/0接口input流量为86M左右,G0/1口的output流量只有17M=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
GigabitEthernet 0/0=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
5 seconds input rate 864643768 bits/sec, 101582 packets/sec =n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
5 seconds output rate 1455736 bits/sec, 269 packets/sec =n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
GigabitEthernet 0/1 :=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
5 seconds input rate 1727584 bits/sec, 252 packets/sec =n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
5 seconds output rate 1700152 bits/sec, 362 packets/sec =n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
数值不对吧?=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

是啊.就是因为数据不正常引起的故障.说明流只到内网口.=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP

顶起。。。=n~^Þ«Õ“esupport.ruijie.com.cnϬwf®Ô™h°C
TOP