Skip to main content

Viewing interface traffic on 2621 router

More
18 years 9 months ago #13143 by calicutbobby
Hi, It would be great if someone could answer this query of mine. Is there anyway to view the source of and amount of traffic entering a particular interface of the router.
More
18 years 9 months ago #13150 by havohej
hi.

of course you can.

first to look the amount of inpout and output total traffic traversing the interface you must do the shot interfaces command and it shows you info like these:

Serial1/1 is up, line protocol is up
Hardware is PowerQUICC Serial
Description: xxxxxxx
Internet address is xxxx.xxxx.xxxx.xxxx
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 2/255, rxload 4/255
Encapsulation PPP, LCP Open
Listen: CDPCP
Open: IPCP, loopback not set
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters 17w3d
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 3049721
Queueing strategy: weighted fair
Output queue: 0/1000/64/3049721 (size/max total/threshold/drops)
Conversations 0/256/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 25000 bits/sec, 24 packets/sec
5 minute output rate 16000 bits/sec, 26 packets/sec
327473141 packets input, 2586425468 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 1 giants, 0 throttles
327 input errors, 180 CRC, 48 frame, 0 overrun, 0 ignored, 99 abort
391623214 packets output, 737041323 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets


the second question is that you want to see the flow, these command is very helpul for troubleshooting when someone int the lan is using most of the bandwidth and it is affecting all other users that are sharing the same wan bandwith.

first, you must enable the ip accounting output in the lan interface

router(config)#int fastEthernet 0/0
router(config-if)#ip accounting output-packets

then you can look at the conversation between local and external hosts and a brief accounting of how manye packets and bytes are transmitting between them:

router#show ip accounting
Source Destination Packets Byte
192.168.1.1 192.168.20.10 224 2061
192.168.1.2 172.16.31.5 13 367
192.168.1.3 14.14.14.2 1 9
192.168.1.4 172.16.97.1 1 4
192.168.1.5 192.168.20.20 142 5214
More
18 years 8 months ago #13446 by calicutbobby
Thanks a lot.

The reply has served the purpose.
Time to create page: 0.126 seconds