LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2010, 10:42 PM   #1
clarkevan
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
why NIC enter promiscuous mode?


hi:

I have bond two NIC, but when one NIC's link down, the another NIC may enter promiscuous mode, and then left promiscuous mode. can someone help me?

the following was the log,come from /var/log/messages:

Oct 19 10:01:20 skysan30426 kernel: pci0000:00: eth0: Link is Down
Oct 19 10:01:20 skysan30426 netplugd[2056]: eth0: state ACTIVE flags 0x00011843 UP,BROADCAST,RUNNING,SLAVE,MULTICAST,10000 -> 0x00001803 UP,BROADCAST,SLAVE,MULTICAST
Oct 19 10:01:20 skysan30426 netplugd[26854]: /etc/netplug.d/netplug eth0 out -> pid 26854
Oct 19 10:01:20 skysan30426 kernel: bonding: bond0: link status definitely down for interface eth0, disabling it
Oct 19 10:01:20 skysan30426 kernel: bonding: bond0: making interface eth1 the new active one.
Oct 19 10:01:20 skysan30426 kernel: device eth1 entered promiscuous mode
Oct 19 10:01:20 skysan30426 kernel: audit(1287453680.735:11): dev=eth1 prom=256 old_prom=0 auid=4294967295 ses=4294967295
Oct 19 10:01:20 skysan30426 netplugd[2056]: eth0: state OUTING pid 26854 exited status 0
Oct 19 10:01:30 skysan30426 kernel: device eth1 left promiscuous mode
Oct 19 10:01:30 skysan30426 kernel: audit(1287453690.726:12): dev=eth1 prom=0 old_prom=256 auid=4294967295 ses=4294967295


----------------------------------------
OS: CentOS 5.2
kernel:2.6.18-92
ARCH:x86-64
bonding mode:6


[root@skysan30426 network-scripts]# cat /etc/modprobe.conf
alias eth0 e1000e
alias eth1 e1000
alias scsi_hostadapter ahci
alias scsi_hostadapter1 usb-storage
alias net-pf-10 off
alias ipv6 off

alias bond0 bonding
options bond0 miimon=100 mode=6

[root@skysan30426 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
NETMASK=255.255.255.0
BOOTPROTO=static
GATEWAY=10.10.170.100
IPADDR=10.10.170.199
ONBOOT=yes
DEVICE=bond0

[root@skysan30426 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=none
MASTER=bond0
HWADDR=00:15:17:B3:F7:C2
ONBOOT=no
USERCTL=no
DEVICE=eth0
SLAVE=yes

[root@skysan30426 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
BOOTPROTO=none
MASTER=bond0
HWADDR=00:15:17:B3:F7:C0
ONBOOT=no
USERCTL=no
DEVICE=eth1
SLAVE=yes


waiting for reply.....
 
Old 10-19-2010, 03:18 AM   #2
clarkevan
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
anyone encounter this problem?
 
Old 10-19-2010, 06:17 AM   #3
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
http://www.mail-archive.com/linuxker.../msg00583.html

Looks like according to this that it would be normal behavior for this to happen.

Quote:
for mode=1,5 and 6 the promiscuous mode setting is propogated only to the active slave.
 
Old 10-19-2010, 08:51 AM   #4
clarkevan
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
thanks.

your mean that the bonding was setted to promiscuous mode?
 
Old 10-21-2010, 06:23 AM   #5
clarkevan
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
thank grim76! After I view the source code "driver/net/bonding/bong/bond_alb.c", I found this behavior is normal.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPPoE and promiscuous mode lipun4u Linux - Networking 1 09-14-2008 06:53 AM
Wireshark in promiscuous mode TotalLinuxNoob Linux - Wireless Networking 5 06-20-2007 02:58 PM
wlan promiscuous mode paulr1984 Linux - Wireless Networking 0 05-13-2005 09:52 AM
Promiscuous Mode: Yes or No? AvatarofVirgo Linux - Security 3 02-22-2005 07:22 PM
How Do I switch to promiscuous mode? 0din Linux - Newbie 1 03-05-2004 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration