Команда ifup

ifup - bring a network interface up

ifdown - take a network interface down

Синтаксис

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

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

-a, --allIf given to ifup, affect all interfaces marked auto. Interfaces are brought up in the order in which they are defined in /etc/network/interfaces. If given to ifdown, affect all defined interfaces. Interfaces are brought down in the order in which they are currently listed in the state file. Only interfaces defined in /etc/network/interfaces will be brought down.
--forceForce configuration or deconfiguration of the interface.
--allow=CLASSOnly allow interfaces listed in an allow-CLASS line in /etc/network/interfaces to be acted upon.
-i FILE, --interfaces=FILERead interface definitions from FILE instead of from /etc/network/interfaces.
-n, --no-actDon't configure any interfaces or run any "up" or "down" commands.
--no-mappingsDon't run any mappings. See interfaces for more information about the mapping feature.
-V, --versionShow copyright and version information.
-v, --verboseShow commands as they are executed.

Примеры

ifup -a

Bring up all the interfaces defined with auto in /etc/network/interfaces

ifup eth0

Bring up interface eth0

ifdown -a

Bring down all interfaces that are currently up.

Обратно к списку команд