How to set promiscuous mode
Subsystems (2)
Hi,
Working with iproute2 for a task with Wireshark. I don't see the command in 'ip' to put an Ethernet port into promiscuous mode. A reply from the openSuse forum (below) tells me how.
I'm wondering if this should be in the 'MAN ip' page.
Regards,
Bill Flanagan
-------- Forwarded Message --------
Dear konsultor,
tsu2 has just replied to a thread you have subscribed to entitled - LEAP 15 how to set promiscuous mode on eth0? - in the Network/Internet forum of openSUSE Forums.
This thread is located at:
https://forums.opensuse.org/showthread.php/534881-how-to-set-promiscuous-mode-on-eth0?goto=newpost
Here is the message that has just been posted:
***************
---Quote (Originally by konsultor)---
Thanks, Tsu. Double 'atta boy" for sure.
What I find odd is that neither 'promisc' nor 'promiscuous' appears in the 'MAN ip" document. Is that a reportable bug? ---End Quote---
MAN authors are typically listed in the document, best to write them directly.
TSU
***************
There may also be other replies, but you will not receive any more notifications until you visit the forum again.
All the best,
openSUSE Forums
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:
To unsubscribe from this thread, please visit this page:
https://forums.opensuse.org/subscription.php?do=removesubscription&type=thread&subscriptionid=189629&auth=887f2c6151997a4244524bdac85ff08b
To unsubscribe from ALL threads, please visit this page:
https://forums.opensuse.org/subscription.php?do=viewsubscription&folderid=all
Signature · 12 lines
Flanagan Consulting Creative Network Solutions From Desktop to Data Center 3800 Concorde Parkway, Suite 1500, Chantilly, Virginia 20151 USA Ph: +1.703.242.8381 Fx: +1.703.242.8391 www.Flanagan-Consulting.com Flanagan Consulting is a Service Mark of W. A. Flanagan, Inc. "Beware of false knowledge; it is more dangerous than ignorance." --George Bernard Shaw
Hi,
Quoted 5 lines · William Flanagan
Working with iproute2 for a task with Wireshark. I don't see the command in 'ip' to put an Ethernet port into promiscuous mode. A reply from the openSuse forum (below) tells me how.
I'm wondering if this should be in the 'MAN ip' page.
Please have a look at ip-link(8), its synopsis section at least lists 'promisc' option for 'ip link set' command. I'll follow-up with a patch adding a little description, though.
Cheers, Phil
PATCH 1/1 man: ip-link: Describe promisc mode
Briefly explain what it is and where it's typically used.
--- man/man8/ip-link.8.in | 8 ++++++++ 1 file changed, 8 insertions(+)
man/man8/ip-link.8.in +8 -0
@@ -1780,6 +1780,14 @@ flag on the device. Indicates that address can change when interface goes down ( .B NOT used by the Linux). +.TP +.BR "promisc on " or " promisc off" +change the +.B PROMISC +flag on the device. This requests receipt of all packets arriving at the NIC +irrespective of their destination MAC address. It is typically used by traffic +sniffers and also set by Linux bridges for their ports. + .TP .BI name " NAME" change the name of the device. This operation is not
Signature · 1 line
2.20.1
Re: [iproute PATCH] man: ip-link: Describe promisc mode
Quoted 12 lines · On Mon, 11 Feb 2019 10:17:06 +0100 Phil Sutter <[email protected]> wrote:
Briefly explain what it is and where it's typically used.
Signed-off-by Phil Sutter <[email protected]>--- man/man8/ip-link.8.in | 8 ++++++++ 1 file changed, 8 insertions(+)man/man8/ip-link.8.in +0
-0
man/man8/ip-link.8.in flag on the device. Indicates that address can change when interface goes down ( · line 1789
Quoted 10 lines
man/man8/ip-link.8.in +7
-0@@ -1780,6 +1780,14 @@ flag on the device. Indicates that address can change when interface goes down ( .B NOT used by the Linux). +.TP +.BR "promisc on " or " promisc off" +change the +.B PROMISC +flag on the device. This requests receipt of all packets arriving at the NIC +irrespective of their destination MAC address. It is typically used by traffic +sniffers and also set by Linux bridges for their ports.
This added sentence is confusing. The Linux bridge enables it by default, and if a sniffer wants to enable it then it is best done from the application. In either case the user should not need to directly set this through ip commands.
Yes, there are a lots of incorrect web pages out there that say you need to set an interface into promiscious mode (with ifconfig) before adding it to a bridge. That might have been true 20 years ago, but hasn't been needed since Linux 2.4
Bottom line, adding this to the documentation is not going to be helpful.
Re: [iproute PATCH] man: ip-link: Describe promisc mode
Hi,
Quoted 2 lines · Stephen Hemminger
On Mon, 11 Feb 2019 10:17:06 +0100
Phil Sutter <[email protected]> wrote:
[...]
Quoted 8 lines
Quoted 8 lines
man/man8/ip-link.8.in +0
-0@@ -1780,6 +1780,14 @@ flag on the device. Indicates that address can change when interface goes down ( .B NOT used by the Linux).
Quoted 11 lines
man/man8/ip-link.8.in flag on the device. Indicates that address can change when interface goes down ( · line 1789
Quoted 7 lines
man/man8/ip-link.8.in +7
-0+.TP +.BR "promisc on " or " promisc off" +change the +.B PROMISC +flag on the device. This requests receipt of all packets arriving at the NIC +irrespective of their destination MAC address. It is typically used by traffic +sniffers and also set by Linux bridges for their ports.This added sentence is confusing. The Linux bridge enables it by default, and if a sniffer wants to enable it then it is best done from the application. In either case the user should not need to directly set this through ip commands.
Well, "used by traffic sniffers" does not imply they don't set it by themselves (at least not in the German accent I'm reading it :). And there probably are ones that don't.
Quoted 3 lines
Yes, there are a lots of incorrect web pages out there that say you need to set an interface into promiscious mode (with ifconfig) before adding it to a bridge. That might have been true 20 years ago, but hasn't been needed since Linux 2.4
In this case ip-link.8 would become a resource pointing out that bridges do that by themselves nowadays.
Quoted 1 line
Bottom line, adding this to the documentation is not going to be helpful.
OK, so I'll send a v2 with that last sentence removed?
Thanks, Phil