aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Bergling <gbe@FreeBSD.org>2021-04-13 04:44:04 +0000
committerGordon Bergling <gbe@FreeBSD.org>2023-03-14 10:49:16 +0000
commit5b99fbfb72891a058838bf1485f88d8c5bb3e1e0 (patch)
tree55fec878612b0bcc784076943d85cfe5a467b258
parent71d88613d12984f6a9058f4ef7044e00853727ed (diff)
downloadsrc-5b99fbfb72891a058838bf1485f88d8c5bb3e1e0.tar.gz
src-5b99fbfb72891a058838bf1485f88d8c5bb3e1e0.zip
route(8): Add an example how to print the routing tables
The manual page currently doesn't show an example how to print the routing table, so add one and .Xr netstat while here. PR: 231579 Reported by: Pekka Järvinen <pekka dot jarvinen at gmail dot com> Reviewed by: debdrup Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D29702 (cherry picked from commit bc54f5f1cd5c01aa5f941234034839fb0b8f54ed)
-rw-r--r--sbin/route/route.87
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/route/route.8 b/sbin/route/route.8
index 6f34795ce883..c353bfb73d62 100644
--- a/sbin/route/route.8
+++ b/sbin/route/route.8
@@ -28,7 +28,7 @@
.\" @(#)route.8 8.3 (Berkeley) 3/19/94
.\" $FreeBSD$
.\"
-.Dd January 9, 2019
+.Dd April 11, 2021
.Dt ROUTE 8
.Os
.Sh NAME
@@ -453,6 +453,10 @@ Delete a static route from the routing table:
Remove all routes from the routing table:
.Pp
.Dl route flush
+.Pp
+List all routing tables:
+.Pp
+.Dl netstat -r
.Sh DIAGNOSTICS
.Bl -diag
.It "add [host \&| network ] %s: gateway %s flags %x"
@@ -493,6 +497,7 @@ The next-hop gateway should be reachable through a different route.
.El
.Sh SEE ALSO
.\".Xr esis 4 ,
+.Xr netstat 1 ,
.Xr netintro 4 ,
.Xr route 4 ,
.Xr arp 8 ,