Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Router - Viewing Network Traffic

Reply
Thread Tools

Router - Viewing Network Traffic

 
 
JDB
Guest
Posts: n/a
 
      03-04-2004

This seems to me to be a very basic question, but I can't find any specific
info thru Google, etc.

If I have a router configured for buffered logging, how can I view actual
the log of network traffic (source, destination, port, packet detail,etc)
that's passing through? The "show logging" command just tells me the number
of stored messages, but not the content of those messages (some of which I
presume are traffic details).

Do I need to be doing a show type of command at the interface level or
something?

Thanks for any help..

JDB



 
Reply With Quote
 
 
 
 
Barry Margolin
Guest
Posts: n/a
 
      03-05-2004
In article <>,
"JDB" <> wrote:

> This seems to me to be a very basic question, but I can't find any specific
> info thru Google, etc.
>
> If I have a router configured for buffered logging, how can I view actual
> the log of network traffic (source, destination, port, packet detail,etc)
> that's passing through? The "show logging" command just tells me the number
> of stored messages, but not the content of those messages (some of which I
> presume are traffic details).
>
> Do I need to be doing a show type of command at the interface level or
> something?


"show log" will normally show the contents of the log buffer.

Note that the router doesn't normally log network traffic. If you want
traffic to be logged, you need to use a packet filter that has "log"
options specified, or use the "debug ip packet" command.

--
Barry Margolin,
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
 
Reply With Quote
 
 
 
 
Jesse
Guest
Posts: n/a
 
      03-05-2004
Depends on wether you want to view all traffic or just traffic coming
from a specific network/subnet. To view all traffic I think doing
something like "access-list 150 permit ip any any log" will do. But be
aware that the log will fill up very quickly depending on the amount of
incoming traffic, this may also put a lot of load on the cpu because of
the logging. Or if you know what subnet you would like to view do
something like:

access-list 150 permit ip 192.168.5.0 0.0.0.255 192.168.10.0 log
access-list 150 permit ip any any

This will logg traffic coming from the dot 5 network to any host on the
dot 10 network. HTH!

JDB wrote:
> This seems to me to be a very basic question, but I can't find any specific
> info thru Google, etc.
>
> If I have a router configured for buffered logging, how can I view actual
> the log of network traffic (source, destination, port, packet detail,etc)
> that's passing through? The "show logging" command just tells me the number
> of stored messages, but not the content of those messages (some of which I
> presume are traffic details).
>
> Do I need to be doing a show type of command at the interface level or
> something?
>
> Thanks for any help..
>
> JDB
>
>
>


 
Reply With Quote
 
JustMe
Guest
Posts: n/a
 
      03-05-2004


Jesse wrote:

> Depends on wether you want to view all traffic or just traffic coming
> from a specific network/subnet. To view all traffic I think doing
> something like "access-list 150 permit ip any any log" will do. But be
> aware that the log will fill up very quickly depending on the amount of
> incoming traffic, this may also put a lot of load on the cpu because of
> the logging. Or if you know what subnet you would like to view do
> something like:
>
> access-list 150 permit ip 192.168.5.0 0.0.0.255 192.168.10.0 log
> access-list 150 permit ip any any
>
> This will logg traffic coming from the dot 5 network to any host on the
> dot 10 network. HTH!



Look for netfow if your router supports it

 
Reply With Quote
 
Hansang Bae
Guest
Posts: n/a
 
      03-05-2004
In article <>,
says...
>
> This seems to me to be a very basic question, but I can't find any specific
> info thru Google, etc.
>
> If I have a router configured for buffered logging, how can I view actual
> the log of network traffic (source, destination, port, packet detail,etc)
> that's passing through? The "show logging" command just tells me the number
> of stored messages, but not the content of those messages (some of which I
> presume are traffic details).
>
> Do I need to be doing a show type of command at the interface level or
> something?



"ip accounting" under the interface. But instead, use netflow if your
IOS supports it.

int s4/0/0/1:0
ip route-cache flow

"sho ip cache flow" (or something close to that)


--

hsb

"Somehow I imagined this experience would be more rewarding" Calvin
*************** USE ROT13 TO SEE MY EMAIL ADDRESS ****************
************************************************** ******************
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
************************************************** ******************
 
Reply With Quote
 
JohnnyS
Guest
Posts: n/a
 
      03-06-2004
Well, if you are TESTING, you might throw this in... Im not sure anyone in
the real world would recommend doing this....

!
access-list 101 permit ip any any log-input (This logs
source/dest/pckt info)
access-list 102 permit ip any any log-input (This logs
source/dest/pckt info)
!
int e0/0
ip access-group 101 in (This assigns ACL#101 to log incoming
pckts on int e0/0)
int e0/1
ip access-group 102 in (This assigns ACL#102 to log incoming
pckts on int e0/1)
!
service timestamps log datetime localtime (This puts time/date
stamps on each packet)
logging buffered 8192 debugging (This sets your log
buffer size. I recommend syslog instead)











"JDB" <> wrote in message
news:...
>
> This seems to me to be a very basic question, but I can't find any

specific
> info thru Google, etc.
>
> If I have a router configured for buffered logging, how can I view actual
> the log of network traffic (source, destination, port, packet detail,etc)
> that's passing through? The "show logging" command just tells me the

number
> of stored messages, but not the content of those messages (some of which I
> presume are traffic details).
>
> Do I need to be doing a show type of command at the interface level or
> something?
>
> Thanks for any help..
>
> JDB
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separate wireless network from other network traffic using vlans onCisco 4507 lovembsc Cisco 1 04-30-2010 05:49 PM
Multiple network cards, solution to direct network traffic...?!? leifp Computer Support 2 04-30-2007 06:05 PM
Routing Question - How to send default internet traffic to PIX and VPN traffic from router out internet Evolution Cisco 1 02-27-2007 10:00 PM
PC Viewing vs DVD Player Viewing - MP3 play very fast Ray Donzdorf Computer Support 0 12-11-2004 01:07 PM
Linksys router doing funny network traffic Carl Elphick NZ Computing 0 09-13-2003 08:45 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57