setfib(1)

setfib1

Execute a utility with an altered default network view

Usage

setfib [-F] fib utility [argument ...]

Overview

The setfib utility runs another utility with a different routing table. The table number fib will be used by default for all sockets started by this process or descendants.

Environment

The PATH environment variable is used to locate the requested utility if the name contains no ‘/’ characters.

Exit status

If utility is invoked, the exit status of setfib is the exit status of utility.

An exit status of 126 indicates utility was found, but could not be executed. An exit status of 127 indicates utility could not be found.

Examples

Run netstat(1) to view the second routing table.

setfib -F 1 netstat -rn

or

setfib 1 netstat -rn

or

setfib -1 netstat -rn

Releases

43 releases since FreeBSD 7.1-RELEASE; the text changed 29 times.

  1. 7.1
  2. 7.2
  3. 7.3
  4. 7.4
  5. 8.0
  6. 8.1
  7. 8.2
  8. 8.3
  9. 8.4
  10. 9.0
  11. 9.1
  12. 9.2
  13. 9.3
  14. 10.0
  15. 10.1
  16. 10.2
  17. 10.3
  18. 10.4
  19. 11.0
  20. 11.1
  21. 11.2
  22. 11.3
  23. 11.4
  24. 12.0
  25. 12.1
  26. 12.2
  27. 12.3
  28. 12.4
  29. 13.0–13.2
  30. 13.3–16.0

Standards

The setfib utility is a FreeBSD specific extension. However, manyUNIX- like systems have an equivalent function.

History

The setfib utility appeared in FreeBSD 7.1.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.