promisc mode
Hi
Does somebody knows how to put (and return from) a NIC card in promiscous mode using "ip" (iproute2)?
Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
(012) 341-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
Sao Jose dos Campos / \
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello Ethy,
# ip link set dev eth1 promisc on # ip link set dev eth1 promisc off
http://plorf.net/linux-ip/html/tools-ip-link.htm#TOOLS-IP-LINK-SET
-Martin
: Does somebody knows how to put (and return from) a NIC card in promiscous : mode using "ip" (iproute2)?
Signature · 7 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 1 line · Martin A. Brown
Hello Ethy,
Greetings!
Quoted 5 lines
# ip link set dev eth1 promisc on # ip link set dev eth1 promisc offhttp://plorf.net/linux-ip/html/tools-ip-link.htm#TOOLS-IP-LINK-SET
Take a look:
# ip link set dev eth0 promisc off Error: either "dev" is duplicate, or "promisc" is a garbage. #
I'm using iproute2-2.4.7-now-ss020116-try
Also "ip link set help" doesn't mention the word "promisc"
Any other suggestion?
Quoted 6 lines
-Martin
: Does somebody knows how to put (and return from) a NIC card in promiscous : mode using "ip" (iproute2)?
Ethy H. Brito /"\ InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML Sao Jose dos Campos / \
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
My recommendation:
: > # ip link set dev eth1 promisc on
: > # ip link set dev eth1 promisc off
: > http://plorf.net/linux-ip/html/tools-ip-link.htm#TOOLS-IP-LINK-SET
Fails:
: Take a look:
: # ip link set dev eth0 promisc off
: Error: either "dev" is duplicate, or "promisc" is a garbage. : I'm using iproute2-2.4.7-now-ss020116-try
: Also "ip link set help" doesn't mention the word "promisc" : Any other suggestion?
Anybody able to comment on whether this is related to a newer version of iproute2 than the one I have? I can't help much more here, since all the machine I have available run this command just fine.
-Martin
Signature · 6 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 2 lines · Ethy H. Brito
Does somebody knows how to put (and return from) a NIC card in promiscous mode using "ip" (iproute2)?
ip from the latest stable iproute2-2.4.7-now-ss010824 doesn't seem to be able to do that. It can do other things like:
# ip link set eth0 multicast off
but not:
# ip link set eth0 promisc off
(as one would expect it to).
You'll have to use:
# ifconfig eth0 promisc # ifconfig eth0 -promisc
instead.
Cheers,
Cristian
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 10 lines · Cristian Ionescu-Idbohrn
ip from the latest stable iproute2-2.4.7-now-ss010824 doesn't seem to be able to do that. It can do other things like:
# ip link set eth0 multicast offbut not:
# ip link set eth0 promisc off(as one would expect it to).
As I already mentioned too!
Quoted 4 lines
You'll have to use:
# ifconfig eth0 promisc # ifconfig eth0 -promisc
That's my problem. "ifconfig eth0 -promisc" doesn't take the card from promiscuous mode. (Don't ask why. I really do not know.).
The problem starts when I execute tcpdump with -p (not to promisc) parameter. The card driver seems not be respecting that and enters promisc anyway. It only leaves promisc mode if I run tcpdump again entering promisc mode (without -p).
I was in hope that 'ip' could do that to me (take it from promisc mode).
I read some email in this thread about some iproute2 version executing 'promisc off'. What version could that be? A beta release?
Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
(012) 341-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
Sao Jose dos Campos / \
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/