public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* promiscus mode
@ 2005-01-25  7:00 Muruganandam
  2005-01-27  7:22 ` Ray Olszewski
  2005-01-27 13:50 ` simon
  0 siblings, 2 replies; 4+ messages in thread
From: Muruganandam @ 2005-01-25  7:00 UTC (permalink / raw)
  To: linux-newbie

Hi all,

   How to enable the Promiscus mode in the kernel,inorder to capture the
packets.Advance Thanks


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

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

* Re: promiscus mode
  2005-01-25  7:00 promiscus mode Muruganandam
@ 2005-01-27  7:22 ` Ray Olszewski
  2005-01-27 10:42   ` Jim Nelson
  2005-01-27 13:50 ` simon
  1 sibling, 1 reply; 4+ messages in thread
From: Ray Olszewski @ 2005-01-27  7:22 UTC (permalink / raw)
  To: linux-newbie

At 12:30 PM 1/25/2005 +0530, Muruganandam wrote:

>Hi all,
>
>   How to enable the Promiscus mode in the kernel,inorder to capture the
>packets.Advance Thanks

It would be easier to answer this question if I better understood the level 
you are asking it at.

The beginner-level answer to it is to use an application and associated 
library (e.g, tcpdump or ethereal, and libpcap) that supports setting 
promiscuous mode.

For the details of how to set it in a NIC driver, I'd suggest referring to 
the source for libpcap; my quick scan of it leads me to suggest checking 
the pcap_open_live() function call.

Of course, you need root access to do any of this.




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

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

* Re: promiscus mode
  2005-01-27  7:22 ` Ray Olszewski
@ 2005-01-27 10:42   ` Jim Nelson
  0 siblings, 0 replies; 4+ messages in thread
From: Jim Nelson @ 2005-01-27 10:42 UTC (permalink / raw)
  To: muruganandam; +Cc: linux-newbie

Ray Olszewski wrote:
> At 12:30 PM 1/25/2005 +0530, Muruganandam wrote:
> 
>> Hi all,
>>
>>   How to enable the Promiscus mode in the kernel,inorder to capture the
>> packets.Advance Thanks
> 
> 
> It would be easier to answer this question if I better understood the 
> level you are asking it at.
> 
> The beginner-level answer to it is to use an application and associated 
> library (e.g, tcpdump or ethereal, and libpcap) that supports setting 
> promiscuous mode.
> 
> For the details of how to set it in a NIC driver, I'd suggest referring 
> to the source for libpcap; my quick scan of it leads me to suggest 
> checking the pcap_open_live() function call.
> 
> Of course, you need root access to do any of this.
> 
> 

And it may not work if you have some obscure hardware - all the common Ethernet 
drivers and chipsets support promiscuous mode, but some of the older boards and 
embedded chips may suprise you.

Jim
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

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

* Re: promiscus mode
  2005-01-25  7:00 promiscus mode Muruganandam
  2005-01-27  7:22 ` Ray Olszewski
@ 2005-01-27 13:50 ` simon
  1 sibling, 0 replies; 4+ messages in thread
From: simon @ 2005-01-27 13:50 UTC (permalink / raw)
  To: muruganandam; +Cc: linux-newbie

hello

Muruganandam wrote:
> Hi all,
> 
>   How to enable the Promiscus mode in the kernel,inorder to capture the
> packets.Advance Thanks
> 
> 
> -- 
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
> 

to put a interface into the promiscious mode... just be root and tape...
ifconfig eth0 promisc

and to unset the promiscious flag :
ifconfig eth0 -promisc

be carreful to remove this flag after usage... as it give extra job to 
the linux network stack...

simon
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

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

end of thread, other threads:[~2005-01-27 13:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25  7:00 promiscus mode Muruganandam
2005-01-27  7:22 ` Ray Olszewski
2005-01-27 10:42   ` Jim Nelson
2005-01-27 13:50 ` simon

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