promiscus mode

promiscus mode

am 25.01.2005 08:00:23 von Muruganandam

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

Re: promiscus mode

am 27.01.2005 08:22:23 von Ray Olszewski

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

Re: promiscus mode

am 27.01.2005 11:42:32 von Jim Nelson

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

Re: promiscus mode

am 27.01.2005 14:50:19 von Simon

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