ifdown

Disable network interfaces. More information: <https://manned.org/ifdown>.

Install

All systems
curl cmd.cat/ifdown.sh
Debian Debian
apt-get install ifupdown2
Ubuntu
apt-get install netscript-2.4-upstart
image/svg+xml Kali Linux
apt-get install ifupdown2
Fedora
dnf install network-scripts
Windows (WSL2)
sudo apt-get update sudo apt-get install netscript-2.4-upstart
Raspbian
apt-get install ifupdown2

Disable network interfaces. More information: <https://manned.org/ifdown>.

  • Disable interface eth0:
    ifdown eth0
  • Disable all interfaces which are enabled:
    ifdown -a

© tl;dr; authors and contributors