08-23-2006 10:54 AM - edited 03-03-2019 04:39 AM
Utilizing a 1605, is there a MIB or another way to show amount of traffic by tcp or udp port on a particular interface?
08-23-2006 11:22 AM
Brian
Depending on what you want there might be several alternatives that could give it to you. I would suggest starting with the show ip traffic command and see if that gives you enough. If not you might look at configuring IP accounting and see how close that gets to what you need. You might also look at configuring NetFlow which can give some statictics by protocol.
HTH
Rick
08-23-2006 11:46 AM
I understand what you are suggesting, however I'm looking for reporting on specific tcp ports.
08-23-2006 12:25 PM
Brian
If you want reporting on specific TCP ports and packet count is sufficient then an alternative to consider would be to create an access list and assign it to the interface (depending on your requirements you might want one access list for inbound and a similar access list for outbound). This access list would not necessarily deny anything. But it would have permit statements for the particular tcp ports that you are interested in and a permit any at the bottom. This way the access list would count packets for the TCP (or UDP) port.
An example would be this:
ip access-list extended count_in
remark count tcp packets inbound
permit tcp any any eq 23
permit tcp any any eq 80
permit tcp any eq 23 any
permit tcp any eq 80 any
permit any any
ip access-list extended count_out
remark count tcp packets outbound
permit tcp any any eq 23
permit tcp any any eq 80
permit tcp any eq 23 any
permit tcp any eq 80 any
permit any any
!
interface fastethernet0/0
ip access-group count_in in
ip access-group count_out out
then show access-list count_in and show access-list count_out would show the number of hits for each line and you would have packet counts for your specific TCP ports.
HTH
Rick
08-23-2006 12:39 PM
NBAR might be an option. Put this on the interface you want stats on : "ip nbar protocol-discovery". Look at the stats with : "show ip cache flow".
08-23-2006 01:18 PM
Hi,
Agree. 'ip nbar protocol-discovery' is a cool command and will display stats of all protocols and the corresponding packet counters. But, the command to display the stats is 'show ip nbar protocol-discovery'.
HTH,
Sundar
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide