]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/setfib/setfib.1
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / setfib / setfib.1
1 .\" Copyright (c) 2008 Cisco systems
2 .\"     Author Julian Elischer.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Neither the name of the University nor the names of its contributors
10 .\"    may be used to endorse or promote products derived from this software
11 .\"    without specific prior written permission.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD$
26 .\"
27 .Dd October 20, 2008
28 .Dt SETFIB 1
29 .Os
30 .Sh NAME
31 .Nm setfib
32 .Nd execute a utility with an altered default network view
33 .Sh SYNOPSIS
34 .Nm
35 .Op Fl F
36 .Ar fib
37 .Ar utility
38 .Op Ar argument ...
39 .Sh DESCRIPTION
40 The
41 .Nm
42 utility runs another
43 .Ar utility
44 with a different routing table.
45 The table number
46 .Ar fib
47 will be used by default for all sockets started by this
48 process or descendants.
49 .Sh ENVIRONMENT
50 The
51 .Ev PATH
52 environment variable is used to locate the requested
53 .Ar utility
54 if the name contains no
55 .Ql /
56 characters.
57 .Sh EXIT STATUS
58 If
59 .Ar utility
60 is invoked, the exit status of
61 .Nm
62 is the exit status of
63 .Ar utility .
64 .Pp
65 An exit status of 126 indicates
66 .Ar utility
67 was found, but could not be executed.
68 An exit status of 127 indicates
69 .Ar utility
70 could not be found.
71 .Sh EXAMPLES
72 Run
73 .Xr netstat 1
74 to view the second routing table.
75 .Pp
76 .Dl "setfib -F 1 netstat -rn"
77 or
78 .Dl "setfib 1 netstat -rn"
79 or
80 .Dl "setfib -1 netstat -rn"
81 .Sh SEE ALSO
82 .Xr setfib 2 ,
83 .Xr setsockopt 2
84 .Sh STANDARDS
85 The
86 .Nm
87 utility is a
88 .Fx
89 specific extension.
90 However, many
91 .Ux Ns - Ns
92 like systems
93 have an equivalent function.
94 .Sh HISTORY
95 The
96 .Nm
97 utility appeared in
98 .Fx 7.1 .