Open In App

ifup command in Linux with Examples

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.

Syntax:



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:

Options:

Article Tags :