Vimala-SP wrote:
Hai, My query is How do i identify the status of all nic cards in my mac. I accept ifconfig will do, but how do i find out if any of NICs are in promiscuous mode or not?
-vimala/.
Hi,
I don't know whether info is useful but i hope it is. You can examine /var/log/messages for messages as shown below. instead of ppp0 your interfaces might be eth0,eth1.......
Maybe you could write a script to retrieve those messages. or maybe simple. # cat /var/log/messages | grep "promiscuous" After examining those messages you will know which interfaces are in promiscuous mode.
I tried tcpdump (in superuser mode) and the following commands.
Terminal # 1 ---------------- # tcpdump (you can use "-i" option here to specify the interface.)
dump starts .... ... stats etc ctrl-c to terminate
Terminal # 2 ----------------- # tail -f /var/log/messages
Nov 17 21:43:43 localhost kernel: device ppp0 entered promiscuous mode Nov 17 21:43:56 localhost kernel: device ppp0 left promiscuous mode ctrl-c to terminate
---> Vinayak Hegde