Skip to content

Instantly share code, notes, and snippets.

@woidpointer
Last active December 18, 2021 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woidpointer/073f8d5075e4fcda95c19cddee0e37bd to your computer and use it in GitHub Desktop.
Save woidpointer/073f8d5075e4fcda95c19cddee0e37bd to your computer and use it in GitHub Desktop.
Enable/Disable promiscous mode for Linux network interfaces (ip command)
# Enable
ip link set eth1 promisc on
# Check with
netstat -i
# You should see something like this
eth0 1500 0 26631 0 0 0 27143 0 0 0 BMPRU
# disable
ip link set eth1 promisc off
# Check with
netstat -i
# You should see something like this
eth0 1500 0 26631 0 0 0 27143 0 0 0 BMRU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment