Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2003

    ethereal... how does it work..

    I know it turns the NIC into promiscous mode and sucks all the information and displays them. But, my question is how to set a NIC to promiscous mode . . . . . . the implementation concept!!
    Thats all

  2. #2
    Linux Newbie
    Join Date
    Apr 2003
    UK, Manchester
    ifconfig <interface> promisc

    That turns the <interface> to promiscuous mode.
    I would guess that ethereal does it a lower level than that though.

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    Ethereal probably uses the same socket ioctl that ifconfig does. However, it is important to note that promiscuous mode isn't what you use to suck packets from the interface; for that you mainly just use a raw socket. Promiscuous mode enables the NIC to pass all packets through to the kernel, even those that wasn't intended for your MAC address. That means that if you're using a switch, promiscuous makes no difference, but if you're using a hub, you can listen to other computers' conversations as well.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts