ifdown
networkingLinux/Unix
The ifdown command is one of the most frequently used commands in Linux/Unix-like operating systems. ifdown Take down a network interface
Quick Reference
Command Name:
ifdown
Category:
networking
Platform:
Linux/Unix
Basic Usage:
ifdown [options] [arguments]
Common Use Cases
Syntax
ifdown [options] [interface]
Options
Option | Description |
---|---|
--allow CLASS |
Restrict interfaces to the specified class |
--force |
Force taking down the interface even if it appears already down |
--ignore-errors |
Continue even if an error is encountered |
--exclude=PATTERN |
Exclude interfaces matching the pattern when used with --all |
--no-act |
Don't actually take down the interface, just show what would happen |
--no-mappings |
Don't run mapping scripts |
--verbose |
Show the commands as they are executed |
--all |
Take down all interfaces marked "auto" |
--help |
Display help information |
--version |
Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the ifdown
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sudo ifdown eth0