Skip to content
Related Articles

Related Articles

ifup command in Linux with Examples
  • Last Updated : 22 May, 2019

The ifup command basically brings the network interface up, allowing it to transmit and receive data. Technically ifup command is used to configure network interfaces based on interface definitions in the file /etc/network/interfaces.


ifup [-nv] [--no-act] [--verbose] [-i FILE|--interfaces=FILE] [--allow CLASS] -a|IFACE...

Example: Let us see an example when our interface is down and how the browser reacts to it.

In this case, the interface was not up and configured. To get the network interface up and work we use

sudo ifup -av

Here, sudo is used for permissions, -a to work on all devices and v for verbose the output.

After using ifup command, the network is working:


  • -a(–all): If used this option it affects all the interfaces marked as auto. Brings up interfaces in order they are defined /etc/network/interfaces. Combined with –allow, acts on all interfaces of a specified class instead.
  • –force: Force configuration or deconfiguration of the interface.
  • -V: Prints the version information.
  • -v: Verbose the output as they are executed.
My Personal Notes arrow_drop_up
Recommended Articles
Page :