IFRELOAD(8)
β¨ IFRELOAD β¨
okay bestie, so ifreload is the ifreload(8) girlie and her whole thing is reloading network interface configuration. that's it, that's the job π
π SYNOPSIS π
ifreload [-h] (-a|-c) [-v] [-d] [-f] [-n] [-s]
πΈ DESCRIPTION πΈ
so basically she reloads the interfaces(5) file at /etc/network/interfaces, or whatever config file got defined in the ifupdown2.conf file. either way, she's reading it.
here's the tea: she runs ifdown on the interfaces that got removed from the file, and then she runs ifup on all the interfaces. like, all of them. no cap.
ifreload is non-disruptive β¨ which is the iconic part honestly. she'll fix your running config so it matches what's in the interfaces file without bringing the interface down. but β and this is important, bestie, don't skip this β there are some cases where on linux an interface config just cannot be applied unless the interface is brought down. for example: change of mac address, and a few bond attributes. for those attribute changes, she may flap the interface, but only if the linux kernel literally requires it to. she's not being dramatic, the kernel is.
β οΈ when you're removing an interface (an iface section) from the interfaces file, please please please make sure all its references are removed too. same energy when you're renaming an interface β make sure every reference to it gets changed to the new name. renaming an interface in the interfaces file results in ifdown of the old one and ifup of the interface with the new name. so yeah. references. check them. π«Ά
and if you do not wish to execute down on any interfaces, but only up on the interfaces that were already up? go look at the --currently-up option below, she's got you π
π OPTIONS π
-h,--helpβ shows this help message and exits. the classic. the girl who's always there for you.-a,--allβ processes all interfaces marked"auto"π-v,--verboseβ verbose. she's gonna yap (affectionately) πΈ-d,--debugβ outputs debug info. for when you need to know everything π-f,--forceβ force run all operations. no asking, just doing π-c,--currently-upβ reloads the configuration for all interfaces which are currently up, regardless of whether an interface hasauto <interface>configuration within the/etc/network/interfacesfile. so even the ones with noautomoment get included π¦-X EXCLUDEPATS,--exclude EXCLUDEPATSβ excludes interfaces from the list of interfaces to operate on. can be specified multiple times. and heads up bestie: if the excluded interface has dependent interfaces (like, say, a bridge or a bond with multiple enslaved interfaces), then each dependent interface must be specified in order to be excluded. yes, all of them. the exclusion does not cascade, iykyk π-s,--syntax-checkβ only runs the interfaces file parser. just a lil vibe check on your syntax, nothing else β¨
π EXAMPLES π
reload all auto interfaces in the interfaces(5) file:
# reload all auto interfaces in interfaces(5) file
ifreload -a
reload all interfaces using the service command:
# reload all interfaces using service command
service networking reload
reload all currently up interfaces without bringing any interfaces down:
# reload all currently up interfaces without bringing any interfaces
down
service networking reload-currently-up
π¦ SEE ALSO π¦
ifup(8), ifdown(8), ifquery(8), interfaces(5), ifupdown-addons-interfaces(5) β the whole friend group fr fr π
π AUTHOR π
Roopa Prabhu <roopa@cumulusnetworks.com>
π COPYRIGHT π
Copyright 2014 Cumulus Networks, Inc. All rights reserved.
okay that's the whole page bestie, you ate it up π this was ifreload(8), version 0.1, dated 2014-02-05 β go forth and reload responsibly, mwah πβ¨π
π¦ where this page comes from
- debian bookworm: ifupdown2 3.0.0-1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms