diff options
Diffstat (limited to 'sbin/route/route.8')
-rw-r--r-- | sbin/route/route.8 | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/sbin/route/route.8 b/sbin/route/route.8 index 8f95eef343d..87517f0cb1f 100644 --- a/sbin/route/route.8 +++ b/sbin/route/route.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: route.8,v 1.91 2020/01/19 18:22:31 schwarze Exp $ +.\" $OpenBSD: route.8,v 1.92 2020/10/29 21:15:26 denis Exp $ .\" $NetBSD: route.8,v 1.6 1995/03/18 15:00:13 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)route.8 8.3 (Berkeley) 3/19/94 .\" -.Dd $Mdocdate: January 19 2020 $ +.Dd $Mdocdate: October 29 2020 $ .Dt ROUTE 8 .Os .Sh NAME @@ -197,6 +197,46 @@ If the priority is negative, then routes that do not match the numeric priority are shown. .El .Pp +.Bl -tag -width Fl -compact +.It Xo +.Ic route +.Op Fl T Ar rtable +.Tg +.Cm sourceaddr +.Op Fl inet Ns | Ns Fl inet6 +.Ar address +.Xc +.It Xo +.Ic route +.Op Fl T Ar rtable +.Tg +.Cm sourceaddr +.Op Fl inet Ns | Ns Fl inet6 +.Fl ifp +.Ar interface +.Xc +.Pp +Set the preferred source address. +If +.Ar address +is the word "default", 0.0.0.0 or ::, source address will be chosen by +the kernel for the matching address family. +If +.Fl ifp +is used, source will use IP assigned to +.Ar interface . +The preferred source will not be used when: +.Pp +.Bl -bullet -compact +.It +destination is on-link +.It +output interface is point-to-point +.It +source address is assigned to a disabled interface +.El +.El +.Pp .Tg destination .Tg gateway The other commands relating to adding, changing, or deleting routes |