set PROMISC mode for switch in Linux
8,805
In a Linux based switching device, do the following on the interfaces:
ifconfig [interface] promisc
From the man pages:
[-]promisc : Enable or disable the promiscuous mode of the interface. If selected, all packets on the network will be received by the interface.
Related videos on Youtube
Comments
-
biggdman over 1 year
How do I set the promisc mode on for a switch. I have two SW like below:
root@chandler:~# brctl show bridge name bridge id STP enabled interfaces br0 8000.622c9e9e5b84 no veth2 br1 8000.5275171ffe82 no veth20 veth21 veth30 veth31
But I don't know how to put them in promisc mode:
root@chandler:~# ip link show br0 144: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether 62:2c:9e:9e:5b:84 brd ff:ff:ff:ff:ff:ff
What is the command for that, and should it be executed for the interface(s)?
-
David Schwartz over 12 yearsI can't figure out what it would mean for a bridge to be in promiscuous mode. Promiscuous mode is about how you handle packets not sent to your hardware address and a bridge doesn't have a hardware address.