tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: tcpdump
@ 1996-05-16 23:48 Mahendra Vallabh (Mike)
  0 siblings, 0 replies; 2+ messages in thread
From: Mahendra Vallabh (Mike) @ 1996-05-16 23:48 UTC (permalink / raw)
  To: tru64-unix-managers


> Date: Fri, 17 May 96 09:29:17 +1200
> From: "Mahendra Vallabh (Mike)" <mike@phys.waikato.ac.nz>
> 
> How does one get tcpdump to work??
> I am trying, what seems to me, a simple test.
> 
> In one window I have:
> 
> pfconfig ln0 +p       # Enable promiscuous mode
> tcpdump host host.domain
> 
>  tcpdump: listening on ln0
>  Using kernel BPF filter
> 
> In another window I do:
> 
>  ping somehost.domain
> 
> Absolutely nothing turns ups in the window running tcpdump.

First, try:
% pfconfig +c ln0 (this assumes that your network device actually is ln0)
% tcpdump host host.domain

Then ping host.domain.

You don't need/want promiscuous mode to capture traffic sent from/to your
workstation, but you do need copyall. If you want to monitor traffic not
involving your system, you will need +p but not +c.

R. Kevin Oberman
Energy Sciences Network (ESnet)
Lawrence Berkeley National Laboratory (LBNL)
E-mail: oberman@es.net
Phone: +1 510 422-6955

Thanks Kevin!  This is exactly what I wanted.

 /------------------------------------------------------------------------\
 | Mahendra Vallabh (Mike)                                                |
 | Analyst Programmer/Network Administrator                               |
 | Physics Department                                                     |
 | School of Science                                                      |
 | University of Waikato                  Phone: +64 (7) 838 4208         | 
 | Hamilton                               Fax:   +64 (7) 838 4219         |
 | NZ                                     Email: mike@phys.waikato.ac.nz  |
 |                                                                        |
 | Out the 10Base-T, through the router, down the T1, over the leased     |
 | line, off the bridge, past the firewall...nothing but Net              |
 \------------------------------------------------------------------------/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* SUMMARY: tcpdump
@ 1997-07-14 21:27 Francis, Chris
  0 siblings, 0 replies; 2+ messages in thread
From: Francis, Chris @ 1997-07-14 21:27 UTC (permalink / raw)
  To: tru64-unix-managers

Thank you all who replied!

Original Question:

I would like to use tcpdump on an Alpha Station  255/233 to monitor raw
ethernet packets.
From the docs it appears that I need to rebuild the kernel using
doconfig, adding the line

options PACKETFILTER

to the config file before it will work.  

Is this step necessary and has anyone had experience using tcpdump on
the Alpha Station?


This response came from Arnaud Valeix and contains all the necessary
steps to get tcpdump working.

>	Put the option PACKETFILTER (line) in kernel is a mandatory, but not
>	the only thing to do.
>
>	2/You need to create the special filter files. to do this:
>
>	cd /dev
>	./MAKEDEV pfilt
>
>	3/You to need to configure the packetfilter parameter:
>
>	to this:
>
>	pfconfig -a +promisc +copyall -b 255
>
>
>	pfstat  (to verify)
>
>	---end---

Chris Francis
Protection and Control Design
BC Hydro
6911 Southpoint Drive Burnaby, BC V3N 4X8
Telephone (604) 528-2780         Internet  Chris.Francis@BCHydro.bc.ca

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-07-14 21:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-16 23:48 SUMMARY: tcpdump Mahendra Vallabh (Mike)
  -- strict thread matches above, loose matches on Subject: below --
1997-07-14 21:27 Francis, Chris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox