Last active
December 18, 2021 08:35
-
-
Save woidpointer/073f8d5075e4fcda95c19cddee0e37bd to your computer and use it in GitHub Desktop.
Enable/Disable promiscous mode for Linux network interfaces (ip command)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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