LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   disabling promiscous mode in suse (https://www.linuxquestions.org/questions/linux-newbie-8/disabling-promiscous-mode-in-suse-726691/)

deepak_cucek 05-18-2009 01:19 AM

disabling promiscous mode in suse
 
Hi guys

how to disable promiscous mode in suse..
i use the command ifconfig eth0 -promisc
but after restart the value is not taking affect....

is there any files i need to configure

tuxtroll 05-18-2009 01:31 AM

edit the file "/etc/sysconfig/network-scripts/ifcfg-eth0" and add


PROMISC=yes

deepak_cucek 05-18-2009 01:43 AM

Quote:

Originally Posted by tuxtroll (Post 3544232)
edit the file "/etc/sysconfig/network-scripts/ifcfg-eth0" and add


PROMISC=yes

in my machine there is no directory called "network -scripts"

but i tried in "/etc/sysconfig/network/ifcfg-eth-id-00:of:fe:24:03:ab"
and add the entry PROMISC=yes
then i restart the machine. and check the promisc mode using "ifconfig" commmand , but still it doesnt take affect

tuxtroll 05-18-2009 03:20 AM

it seems you are using debian or deian based linux distro eg ubuntu. in that case you need to add this line to

/etc/network/interfaces

under your interface (ethx) you can add

promisc on.

You dont need to restart computer to check it.
just execute this as root

service network restart
or
service networking restart

unSpawn 05-18-2009 03:28 AM

Quote:

Originally Posted by tuxtroll (Post 3544232)
edit the file "/etc/sysconfig/network-scripts/ifcfg-eth0" and add PROMISC=yes

The OP seeks to disable promiscuous mode, wouldn't this actually accomplish the opposite?..


Quote:

Originally Posted by deepak_cucek (Post 3544247)
then i restart the machine. and check the promisc mode using "ifconfig" commmand , but still it doesnt take affect

Network cards should not enter promiscuous mode without reason. If setting "PROMISC=no" does not work can you tell us if ( as root) setting -promisc (man ifconfig) works? If not then there may be applications listening in promiscuous mode. You can list those easily with a small shell script like this:
Code:

INODES=$(grep /proc/net/packet -ve ^sk|awk '{print $9}'|tr ' ' '|');
INODES=${INODES[*]}; INODES=${INODES[*]// /|}; INODES="(${INODES})";
/usr/sbin/lsof -P -w -n -d 1-20 | egrep "${INODES}.c" | awk '{print $2}' | xargs -iX /usr/bin/readlink -f /proc/'X'/exe


deepak_cucek 05-18-2009 04:30 AM

Quote:

Originally Posted by tuxtroll (Post 3544324)
it seems you are using debian or deian based linux distro eg ubuntu. in that case you need to add this line to

/etc/network/interfaces

under your interface (ethx) you can add

promisc on.

You dont need to restart computer to check it.
just execute this as root

service network restart
or
service networking restart

am using SuSe 10.......
even my machine dont have "/etc/network/interface"

the file that am currently editing contains all the information about the ethernet card like IP........

deepak_cucek 05-18-2009 05:48 AM

any help guys...............:confused::confused::confused:

unSpawn 05-18-2009 10:54 AM

Quote:

Originally Posted by deepak_cucek (Post 3544442)
any help guys.

There's no reason to act all confused. Just read more carefully.


All times are GMT -5. The time now is 09:29 AM.