ifquery(8)
๐ ifquery(8) โ like, the manual, but make it make sense ๐ซถ
okay bestie, so this page is ifquery(8) from the System Manager's Manual โ yes, the section 8 one, the admin-y one, not some random section 1 situation. we're gonna go through it together and you're gonna get it. ๐
โจ NAME โจ
ifquery โ query interface configuration and state. it's giving "detective but for your network interfaces" ๐๐
โจ SYNOPSIS โจ
ifquery [<options>...] <interfaces...>
ifquery -L|--list
ifquery -s|--state
three whole moods, no cap. either you're querying specific <interfaces...> with some <options>..., or you're doing the -L|--list thing, or you're doing the -s|--state thing. pick your fighter ๐
๐ธ DESCRIPTION ๐ธ
so ifquery is the girl who goes into your interface configuration file and pulls the info out for you. that's her job. that's her whole personality.
she can also convert from old versions of the interface configuration file to the current format โ like a glow-up for your config, honestly iconic. ๐ฅ
๐ฆ OPTIONS ๐ฆ
-a,--autoโ only match interfaces that are marked as auto. like a VIP list, but for interfaces. โจ-h,--helpโ shows you all the supported options forifquery. the "who, what, when, where" of it all. ๐-i,--interfaces FILEโ useFILEas the config database. you're telling her "hey, this is the file, not the usual one." ๐๏ธ-p,--property PROPERTYโ prints the values of matching properties for an interface. very "give me the receipts" of her. ๐งพ-r,--runningโ prints the interface names that are marked as running in the state database. the ones that actually showed up to the party. ๐-s,--stateโ query the state database instead of the config database. different database, different vibe check. ๐-D,--dotโ generates a dependency graph that can be used with GraphVizdot(1). used with--list. very aesthetic, very "look at the little arrows." ๐-I,--include PATTERNโ includePATTERNwhen matching against the config or state database. if she matches, she's in. ๐-L,--listโ list interfaces which exist in the configuration database. the roster. the lineup. the cast list. โญ-P,--pretty-printโ when listing interfaces, prints their configuration in a format that's compatible withinterfaces(5)files. yes, she formats it. yes, it's gorgeous. ๐-U,--allow-undefinedโ creates virtual interfaces for any interfaces not explicitly defined in the configuration file. this is primarily useful for property queries. lowkey the wildcard option, honestly. ๐-S,--state-file FILEโ useFILEas the state database. for when the state database is somewhere else and you're like "not me having to point at it." ๐-T,--timeout TIMEOUTโ wait up toTIMEOUTseconds for executors to complete before raising an error. patience: measurable. โณ-V,--versionโ prints theifupdown-ngversion and exits. she tells you who she is and then leaves. main character energy. ๐-X,--exclude PATTERNโ excludePATTERNwhen matching against the config or state database. the "you're not on the list" option. ๐ซ
๐ real talk though:-T/--timeoutmeans it waits, and if the executors don't finish in time it raises an error. so don't set it to something tiny and then act surprised, bestie.
๐ SEE ALSO ๐
the whole friend group, fr fr. ๐ซถ
๐ AUTHORS ๐
Ariadne Conill <ariadne@dereferenced.org> โ the icon who made this happen. bow down. ๐
and that's the page!! cute lil sign-off: this one's from ifupdown-ng, dated 2026-05-10, and it will forever be ifquery(8). go query something, you got this ๐๐ฆ๐ธ
๐ฆ where this page comes from
- alpine 3.24: ifupdown-ng-doc 0.13.0-r0 ยท ISC
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms