IFUP(8) | IFUP(8) |
ifup - network interface management commands
ifdown - take a network interface down
ifquery(8) maybe used in conjunction with ifup and ifdown commands to query and validate applied/running configuration.
ifup always works on the current interfaces(5) file defined in ifupdown2.conf (default /etc/network/interfaces). ifdown works on the last applied interface configuration.
ifup on an already ifup'ed interface will re-apply the configuration, skipping already applied configuration wherever possible. In many cases where config commands are idempotent, you will see that ifup/ifdown will reapply the config even if the interface already has that config.
ifup and ifdown understands interface dependency order.
For logical interfaces like vlans, bridges, bonds, ifup creates the interface and ifdown deletes the interface. Use --admin-state option if you only want to administratively bring the interface up/down.
When ifup and ifdown are used with interfaces on command line, they must be have a iface section in the interfaces(5) file.
IFACE interface list separated by spaces. IFACE list and '-a' argument are mutually exclusive.
optional arguments:
# bringing up interface list
# bringing up interface with its dependents
# bringing down all interfaces
# bringing down a single interface
# excluding interfaces using -X option
ifup -X eth0 -a
ifdown -X eth0 -X lo -a
# using verbose -v option to see what is going on
# using debug -d option to see more of what is going on
# ignore errors
ifdown -a -f
# run ifdown and ifup on all interfaces using service command/init script
# run ifup on all interfaces using service command/init script
# ifdown on all interfaces using service command/init script
# To run ifup/ifdown on only interfaces that changed see ifreload(8)
Roopa Prabhu <roopa@cumulusnetworks.com>
Copyright 2014 Cumulus Networks, Inc. All rights reserved.
2014-02-05 | 0.1 |