promiscus mode
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · Muruganandam
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.
Signature · 10 lines
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 8 lines · Ray Olszewski
Quoted 4 lines · Muruganandam
Hi all,
How to enable the Promiscus mode in the kernel,inorder to capture the
packets.Advance Thanks
Quoted 9 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
hello
Quoted 18 lines · Muruganandam
Hi all,
How to enable the Promiscus mode in the kernel,inorder to capture the
packets.Advance ThanksSignature · 10 lines
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 [email protected] 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs