ifup
networkingLinux/Unix
The ifup command is one of the most frequently used commands in Linux/Unix-like operating systems. ifup Bring up a network interface
Quick Reference
Command Name:
ifup
Category:
networking
Platform:
Linux/Unix
Basic Usage:
ifup [options] [arguments]
Common Use Cases
Syntax
ifup [options] [interface]
Options
Option | Description |
---|---|
--allow CLASS |
Restrict interfaces to the specified class |
--force |
Force bringing up the interface even if it appears already up |
--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 bring up the interface, just show what would happen |
--no-mappings |
Don't run mapping scripts |
--verbose |
Show the commands as they are executed |
--all |
Bring up 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 ifup
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 ifup eth0