Skip to contentSkip to conversation

eth0 promiscuous mode

DISCUSSION Natarajan K 5 participants 7 messages Aug 30, 2002

lore
Share & tools
lore
#0 lore raw

HI,
I am part of a LAN and get my IP through DHCP. Will eth0 interface be put in
promiscuous mode initially or is there any option I should use to put it in promiscuous mode? I use Mandrake 8.2.

Signature · 6 lines
Natarajan
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw
Quoted 5 lines · Natarajan K

HI,
I am part of a LAN and get my IP through DHCP. Will eth0
interface be put in
promiscuous mode initially or is there any option I should use to put it in promiscuous mode? I use Mandrake 8.2.

Huh? You don't need your interface in promiscuous mode. Your system sends out a broadcast packet to request a DHCP lease, and the DHCP server responds with a lease offer using the MAC address of your host. You do need to run a DHCP client on your system ... dhcpcd, or dhclient, or pump (not sure that Mandrake uses) ... to request the lease.

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 3 lines · Ray Olszewski
Quoted 3 lines

interface be put in
promiscuous mode initially or is there any option I should use to put it in promiscuous mode? I use Mandrake 8.2.

Very stupid question: What is the promiscuous mode? I think I see my NIC going into that mode when I start tcpdump...

Thank you,
Axel
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw
Quoted 9 lines · Axel Siebenwirth
Quoted 2 lines · Ray Olszewski
Quoted 2 lines

interface be put in
promiscuous mode initially or is there any option I should use to put

it in

Quoted 1 line
Quoted 1 line

promiscuous mode? I use Mandrake 8.2.

Very stupid question: What is the promiscuous mode? I think I see my NIC going into that mode when I start tcpdump...

This is a list for beginners, so while your question may be naive, it is hardly stupid. I mention this because I was struck by the large number of people apparently interested in discussing your syntax, but themselves either unable or unwilling to include an *answer* to the question in the messages they posted. Shame on all of you.

Normally, the firmware in a NIC filters incoming traffic and passes to the OS only those Ethernet frames that are addressed to the NIC's hardware (MAC) address. When in promiscuous mode, the NIC firmware passes ALL Ethernet frames up the ladder, not just ones sent to its MAC address. tcpdump is probably the most common app that uses promisc mode, but there are others.

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
Quoted 2 lines · Ray Olszewski

Normally, the firmware in a NIC filters incoming traffic and passes to the OS only those Ethernet frames that are addressed to the NIC's hardware (MAC) address. When in promiscuous mode, the NIC firmware passes ALL Ethernet frames up the ladder, not just ones sent to its MAC address. tcpdump is probably the most common app that uses promisc mode, but there are others.

Don't mean to hijack the thread, but I have a related question:

Will promiscuous mode work properly if my computer is plugged into a switch? I've tried unsuccessfully to use tcpdump or tethereal to view all the network traffic, but I'm always confined to traffic that either
originates or is destined to my machine (broadcasts too). Or is it
perhaps the NIC? Do all NICs have the ability to go into promiscuous
mode?

Thanks in advance.

Dave.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#5 lore raw

See below.

Quoted 7 lines · David Yeu
Quoted 2 lines · Ray Olszewski

Normally, the firmware in a NIC filters incoming traffic and passes to the OS only those Ethernet frames that are addressed to the NIC's hardware (MAC) address. When in promiscuous mode, the NIC firmware passes ALL Ethernet frames up the ladder, not just ones sent to its MAC address. tcpdump is probably the most common app that uses promisc mode, but there are others.

Don't mean to hijack the thread, but I have a related question:

Will promiscuous mode work properly if my computer is plugged into a switch? I've tried unsuccessfully to use tcpdump or tethereal to view

Yes. Promiscuous mode *itself * still works properly, in that the NIC *itself* still passes on evey frame it sees.. But an app like tcpdump will not see all packets because the *switch* only sends out on the port to the NIC frames that are intended for the NIC's MAC address (or Ethernet broadcast frames).

Some switches (but not the cheap ones, like the one I have, and very likely the one you have, if you are a home user) have special ports that do receive all frames, just to permit traffic monitoring by sysadmins.

Quoted 4 lines

all the network traffic, but I'm always confined to traffic that either originates or is destined to my machine (broadcasts too). Or is it perhaps the NIC? Do all NICs have the ability to go into promiscuous mode?

I don't know that *all* NICs can ... but I have never encountered one that cannot.

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#6 lore raw
In reply to David Yeu

Hi David,

Quoted 6 lines

Will promiscuous mode work properly if my computer is plugged into a switch? I've tried unsuccessfully to use tcpdump or tethereal to view all the network traffic, but I'm always confined to traffic that either originates or is destined to my machine (broadcasts too). Or is it perhaps the NIC? Do all NICs have the ability to go into promiscuous mode?

that is really the point of a switched network. Switches are supposed to be smart in that they learn about who is at what port and only repeat broadcast traffic to everyone.

Cheers,
Nathan

Quoted 10 lines

Thanks in advance.

Dave.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Signature · 13 lines
"Whoever undertakes to set himself up as a judge of Truth and Knowledge is
 shipwrecked by the laughter of the gods."
   Albert Einstein

Chisolm's First Corollary to Murphy's Second Law:
	When things just can't possibly get any worse, they will.
--

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs