Changeset View
Changeset View
Standalone View
Standalone View
sbin/route/route.8
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)route.8 8.3 (Berkeley) 3/19/94 | .\" @(#)route.8 8.3 (Berkeley) 3/19/94 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd November 11, 2014 | .Dd February 16, 2018 | ||||
.Dt ROUTE 8 | .Dt ROUTE 8 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm route | .Nm route | ||||
.Nd manually manipulate the routing tables | .Nd manually manipulate the routing tables | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Fl dnqtv | .Op Fl dnqtv | ||||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
.Op Fl n | .Op Fl n | ||||
.Cm monitor Op Fl fib Ar number | .Cm monitor Op Fl fib Ar number | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
The flush command has the syntax: | The flush command has the syntax: | ||||
.Pp | .Pp | ||||
.Bd -ragged -offset indent -compact | .Bd -ragged -offset indent -compact | ||||
.Nm | .Nm | ||||
.Oo Fl n Cm flush Oc Oo Ar family Oc Op Fl fib Ar number | .Oo Fl n Cm flush Oc Oo Ar family Oc Op Fl fib Ar number | ||||
rstone: BTW, this is wrong. The syntax implies that "flush" is an argument accepted by the -n flag… | |||||
rgrimesUnsubmitted Not Done Inline ActionsThe whole man page could use some reworking. Including expanding out the various correct forms in the SYNOPSIS section and removing the scattering of syntax info. Has anyone run this page through, um, igor from ports? rgrimes: The whole man page could use some reworking. Including expanding out the various correct… | |||||
rstoneAuthorUnsubmitted Not Done Inline ActionsI did run it through igor. It complains about "aggregatable", believing that it's not a real word (Google seems to disagree). Other than that the file is clean. rstone: I did run it through igor. It complains about "aggregatable", believing that it's not a real… | |||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
If the | If the | ||||
.Cm flush | .Cm flush | ||||
command is specified, | command is specified, | ||||
.Nm | .Nm | ||||
will ``flush'' the routing tables of all gateway entries. | will ``flush'' the routing tables of all gateway entries. | ||||
When the address family may is specified by any of the | When the address family may is specified by any of the | ||||
Show All 14 Lines | |||||
.Fl inet6 | .Fl inet6 | ||||
modifiers. | modifiers. | ||||
When a | When a | ||||
.Fl fib | .Fl fib | ||||
option is specified, the operation will be applied to | option is specified, the operation will be applied to | ||||
the specified FIB | the specified FIB | ||||
.Pq routing table . | .Pq routing table . | ||||
.Pp | .Pp | ||||
The other commands have the following syntax: | The add command has the following syntax: | ||||
.Pp | .Pp | ||||
.Bd -ragged -offset indent -compact | .Bd -ragged -offset indent -compact | ||||
.Nm | .Nm | ||||
.Op Fl n | .Op Fl n | ||||
.Ar command | .Cm add | ||||
.Op Fl net No \&| Fl host | .Op Fl net No \&| Fl host | ||||
.Ar destination gateway | .Ar destination gateway | ||||
.Op Ar netmask | .Op Ar netmask | ||||
.Op Fl fib Ar number | |||||
.Ed | |||||
.Pp | |||||
and the other commands have the following syntax: | |||||
.Pp | |||||
.Bd -ragged -offset indent -compact | |||||
.Nm | |||||
.Op Fl n | |||||
.Ar command | |||||
.Op Fl net No \&| Fl host | |||||
.Ar destination | |||||
.Op Ar gateway Op Ar netmask | |||||
.Op Fl fib Ar number | .Op Fl fib Ar number | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
where | where | ||||
.Ar destination | .Ar destination | ||||
is the destination host or network, | is the destination host or network, | ||||
.Ar gateway | .Ar gateway | ||||
is the next-hop intermediary via which packets should be routed. | is the next-hop intermediary via which packets should be routed. | ||||
▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines |
BTW, this is wrong. The syntax implies that "flush" is an argument accepted by the -n flag (you can check out "man route" to see how this is rendered and that it is clearly wrong). I have opened a separate review that fixes this: https://reviews.freebsd.org/D14401