This is what man ifconfig has to say about it. [-]promisc Enable or disable the promiscuous mode of the interface. If selected, all packets on the network will be received by the
Oct 20, 2011 linux - Promiscuous mode in KVM - Server Fault ifconfig eth0 promisc is the correct command to enable promiscuous mode for an interface. If that didn't work try adding this line to /etc/rc.local and reboot. ifconfig eth0 up ifconfig eth0 promisc configure a network interface into promiscuous mode disable promiscuous mode. sudo ifconfig eth0 -promisc sudo tail -f /var/log/syslog kernel: [ 2155.176013] device eth0 left promiscuous mode netstat -i Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth0 1500 0 29172 0 0 0 29850 0 0 0 BMRU プロミスキャスモード(Promiscuous Mode)
DD-WRT Forum :: View topic - promiscuous mode
ifconfig eth0 promisc is the correct command to enable promiscuous mode for an interface. If that didn't work try adding this line to /etc/rc.local and reboot. ifconfig eth0 up ifconfig eth0 promisc pcap_set_promisc() sets whether promiscuous mode should be set on a capture handle when the handle is activated. If promisc is non-zero, promiscuous mode will be set, otherwise it will not be set. Return Value pcap_set_promisc() returns 0 on success or PCAP_ERROR_ACTIVATED if called on a capture handle that has been activated. See Also # ifconfig eth0 promisc # ifconfig eth0 -promisc To enable/ disable promisc mode on your interface (eth0 in this case). So, in python (with root permissions) one could use : import os ret = os.system("ifconfig eth0 promisc") if ret == 0:
# ifconfig eth0 promisc # ifconfig eth0 -promisc To enable/ disable promisc mode on your interface (eth0 in this case). So, in python (with root permissions) one could use : import os ret = os.system("ifconfig eth0 promisc") if ret == 0: Comments are welcome on this way of doing it.
Promiscuous Mode vs. Port Mirroring |VMware Communities