Find the answer to your Linux question:
Results 1 to 4 of 4
I want to monitor network traffic with ntop from a Lucid 10.04 machine. Both NICs have picked up an IP address, I need to put one in promiscuous mode. I ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    16

    Cant Put Network Card into Promiscious Mode

    I want to monitor network traffic with ntop from a Lucid 10.04 machine. Both NICs have picked up an IP address, I need to put one in promiscuous mode. I typed sudo ifconfig eth1 promisc and the response was SIOCSIFFLAGS: Permission denied.

    I also tried sudo su ifconfig eth1 promisc
    [sudo] password for user1: I put it in
    Unknown id: ifconfig

    Sure would love to fix this, thanks.

  2. #2
    Linux Newbie theNbomr's Avatar
    Join Date
    May 2007
    Location
    BC Canada
    Posts
    150
    how about
    Code:
    sudo /sbin/ifconfig ......
    --- rod.
    Stuff happens. Then stays happened.

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    16
    That worked, thanks. And subsequent to that, just sudo does it. What does that command mean?

  4. #4
    Linux Newbie theNbomr's Avatar
    Join Date
    May 2007
    Location
    BC Canada
    Posts
    150
    /sbin is the directory in which ifconfig lives. That directory is normally in the $PATH for user root, but not for everyone else. Same logic applies for anything else in /sbin, such as fdisk, or route, or modprobe or a lot of other commonly used utilities.
    --- rod.
    Stuff happens. Then stays happened.

Posting Permissions

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