ifupSection: Maintenance Commands (8)
Updated: 22 May 2004
Return to Main Contents
NAMEifup - bring a network interface up
SYNOPSISifup [-nv] [--no-act] [--verbose] [-i FILE|--interfaces=FILE] [-e FILE|--exclude=IFACE] -a|IFACE...
DESCRIPTIONThe ifup and ifdown commands may be used to configure (or, respectively, deconfigure) network interfaces based on interface definitions in the file /etc/network/interfaces.
OPTIONSA summary of options is included below.
NOTESifup and ifdown are actually the same program called by different names. The program does not configure network interfaces directly; it runs low level utilities such as ifconfig and route to do its dirty work.
KNOWN BUGS/LIMITATIONSThe program keeps records of whether network interfaces are up or down. Under exceptional circumstances these records can become inconsistent with the real states of the interfaces. For example, an interface that was brought up using ifup and later deconfigured using ifconfig will still be recorded as up. To fix this you can use the --force option to force ifup or ifdown to run configuration or deconfiguration commands despite what it considers the current state of the interface to be. The file /etc/network/ifstate must be writable for ifup or ifdown to work properly. If that location is not writable (for example, because the root filesystem is mounted read-only for system recovery) then /etc/network/ifstate should be made a symbolic link to a writable location. If that is not possible then you can use the --force option to run configuration or deconfiguration commands without updating the file. Note that the program does not run automatically: ifup alone does not bring up interfaces that appear as a result of hardware being installed and ifdown alone does not bring down interfaces that disappear as a result of hardware being removed. To automate the configuration of network interfaces you need to install other packages such as hotplug(8) or ifplugd(8).
AUTHORThe ifupdown suite was written by Anthony Towns <firstname.lastname@example.org>.
SEE ALSOinterfaces(5), ifconfig(8).
This document was created by man2html, using the manual pages.
Time: 00:22:03 GMT, July 08, 2020