Find the answer to your Linux question:
Results 1 to 3 of 3
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 . ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2003
    Location
    vijayawada
    Posts
    4

    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
    Location
    UK, Manchester
    Posts
    147
    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
    Location
    Täby, Sweden
    Posts
    7,578
    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.

  4. $spacer_open
    $spacer_close

Posting Permissions

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