SETFIB(1)
π¦ SETFIB(1) β the "run it in a whole other routing table" era π¦
okay so this is setfib, from the General Commands Manual, and honestly? she's a tiny little FreeBSD icon and like three people know about her. we're fixing that rn π
β¨ NAME β¨
setfib β run a utility with a different default network view. yes, that's a real thing you can just... do. slay.
β¨ SYNOPSIS β¨
setfib [-F] fib utility [argument ...]
πΈ DESCRIPTION πΈ
okay bestie, picture this: setfib runs, like, another utility β but it does it with a totally different routing table. main character energy.
The table number fib gets used by default for all sockets started by this process or its descendants. all of them. the whole little family tree. π«Ά
π ENVIRONMENT π
PATHβ this is the one that matters here. if the name of the utility you're asking for has no/characters in it,PATHis what gets used to locate it. no slash, no path,PATHpicks up the slack. iykyk.
π EXIT STATUS π
If utility actually gets invoked, then the exit status of setfib is the exit status of utility. like, it's not doing its own thing, it's just vibing with whatever the child says. periodt.
and a couple of specific numbers to know:
- An exit status of 126 means utility was found... but could not be executed π lowkey devastating.
- An exit status of 127 means utility could not be found at all π like, it's just not here.
π₯ EXAMPLES π₯
Run netstat(1) to view the second routing table. three iconic ways, all valid, pick your fighter:
setfib -F 1 netstat -rn
or
setfib 1 netstat -rn
or
setfib -1 netstat -rn
not me having three whole ways to do the exact same thing π iconic behaviour honestly.
π SEE ALSO π
β STANDARDS β
okay so setfib is a FreeBSD specific extension β that's the official word. but here's the cute part: many Unix-like systems have an equivalent function, so like... you're not stranded, bestie. πΈ
π HISTORY π
The setfib utility appeared in FreeBSD 7.1. a real glow-up moment in history. we stan an origin story. β¨
and that's the whole page, bestie π this cutie came to you from Debian, dated October 20, 2008 β so like, vintage, but make it iconic π π¦ go forth and fib responsibly π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008 Cisco systems
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms