xref: /openbsd-src/usr.sbin/ospfctl/ospfctl.8 (revision 328c3f4b3a396065bb78dcb935b4c3fd9b96b0ca)
1*328c3f4bSjmc.\"	$OpenBSD: ospfctl.8,v 1.28 2023/03/02 17:09:53 jmc Exp $
2b49634deSclaudio.\"
32090e587Snorby.\" Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
4b49634deSclaudio.\"
5b49634deSclaudio.\" Permission to use, copy, modify, and distribute this software for any
6b49634deSclaudio.\" purpose with or without fee is hereby granted, provided that the above
7b49634deSclaudio.\" copyright notice and this permission notice appear in all copies.
8b49634deSclaudio.\"
9b49634deSclaudio.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10b49634deSclaudio.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11b49634deSclaudio.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12b49634deSclaudio.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13b49634deSclaudio.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14b49634deSclaudio.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15b49634deSclaudio.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16b49634deSclaudio.\"
17*328c3f4bSjmc.Dd $Mdocdate: March 2 2023 $
18b49634deSclaudio.Dt OSPFCTL 8
19b49634deSclaudio.Os
20b49634deSclaudio.Sh NAME
21b49634deSclaudio.Nm ospfctl
22*328c3f4bSjmc.Nd control the OSPF routing daemon
23b49634deSclaudio.Sh SYNOPSIS
24b49634deSclaudio.Nm
25d1b94773Sreyk.Op Fl s Ar socket
26b49634deSclaudio.Ar command
2766761d00Ssobrado.Op Ar argument ...
28b49634deSclaudio.Sh DESCRIPTION
29b49634deSclaudioThe
30b49634deSclaudio.Nm
31b49634deSclaudioprogram controls the
32b49634deSclaudio.Xr ospfd 8
33b49634deSclaudiodaemon.
3407646b1eSsthenCommands may be abbreviated to the minimum unambiguous prefix; for example,
3507646b1eSsthen.Cm s s
3607646b1eSsthenfor
3707646b1eSsthen.Cm show summary .
38b49634deSclaudio.Pp
3993e254afSjmcThe following options are available:
40d1b94773Sreyk.Bl -tag -width Ds
41d1b94773Sreyk.It Fl s Ar socket
42d1b94773SreykUse
43d1b94773Sreyk.Ar socket
44d1b94773Sreykinstead of the default
45d1b94773Sreyk.Pa /var/run/ospfd.sock
46d1b94773Sreykto communicate with
47d1b94773Sreyk.Xr ospfd 8 .
48d1b94773Sreyk.El
49d1b94773Sreyk.Pp
50b49634deSclaudioThe following commands are available:
51b49634deSclaudio.Bl -tag -width Ds
52f5cc25dcSclaudio.It Cm fib couple
532ba2458eSsteveskInsert the learned routes into the Forwarding Information Base
542ba2458eSsteveska.k.a. the kernel routing table.
55f5cc25dcSclaudio.It Cm fib decouple
562ba2458eSsteveskRemove the learned routes from the Forwarding Information Base
572ba2458eSsteveska.k.a. the kernel routing table.
58f5cc25dcSclaudioDecoupling the FIB from an OSPF router may create routing loops and could cause
59f5cc25dcSclaudiomajor routing issues in the complete OSPF cloud.
60213af647SjmcOnly routers with just one link to the OSPF cloud can safely decouple the FIB.
61119f0f1dSdlg.It Cm fib reload
62119f0f1dSdlgRefetches and relearns the routes in the Forwarding Information Base
63119f0f1dSdlga.k.a. the kernel routing table.
64c3319070Sclaudio.It Cm log brief
65c3319070SclaudioDisable verbose debug logging.
66be74ec1aSjmc.It Cm log verbose
67be74ec1aSjmcEnable verbose debug logging.
683bf5c74bSpyr.It Cm reload
693bf5c74bSpyrReload the configuration file.
70bf8469c0Sstevesk.It Cm show database Op Ar filter
7132286112SnorbyShow the link state database.
7232286112Snorby.Ar filter
732e6bef9fSjmccan be any one of the following:
7432286112Snorby.Pp
752e6bef9fSjmc.Bl -tag -width "self-originatedXX" -compact
762e6bef9fSjmc.It Cm area Ar ID
77bf8469c0SsteveskShow only LSAs from the specified area
78bf8469c0Sstevesk.Ar ID .
7932286112Snorby.It Cm asbr
8032286112SnorbyShow only ASBR LSAs.
8132286112Snorby.It Cm external
8232286112SnorbyShow only AS-External LSAs.
8332286112Snorby.It Cm network
8432286112SnorbyShow only Network LSAs.
8532286112Snorby.It Cm router
8632286112SnorbyShow only Router LSAs.
8704cd5268Snorby.It Cm self-originated
882e6bef9fSjmcShow only self-originated LSAs.
8932286112Snorby.It Cm summary
9032286112SnorbyShow only Summary LSAs.
9132286112Snorby.El
92bf8469c0Sstevesk.It Cm show fib Op Ar destination | filter
93e4381622SsteveskShow the Forwarding Information Base.
94e4381622Sstevesk.Ar destination
95bf8469c0Ssteveskcan be specified to show the route matching a destination IP address.
96e4381622Sstevesk.Ar filter
97bf8469c0Ssteveskcan be any of the following:
98e4381622Sstevesk.Pp
99bf8469c0Sstevesk.Bl -tag -width "interfaceXXinterfaceXX" -compact
100e4381622Sstevesk.It Cm connected
101e4381622SsteveskShow only connected routes.
102bf8469c0Sstevesk.It Cm interface Op Ar interface
103bf8469c0SsteveskShow only interfaces or the specified
104bf8469c0Sstevesk.Ar interface .
105e4381622Sstevesk.It Cm ospf
106e4381622SsteveskShow only OSPF routes.
107e4381622Sstevesk.It Cm static
108e4381622SsteveskShow only static routes.
109e4381622Sstevesk.El
110bf8469c0Sstevesk.Pp
111bf8469c0Sstevesk.Cm connected ,
112bf8469c0Sstevesk.Cm ospf
113bf8469c0Ssteveskand
114bf8469c0Sstevesk.Cm static
115bf8469c0Ssteveskmay be specified together.
116bf8469c0Sstevesk.It Cm show interfaces Op Ar interface
117bf8469c0SsteveskShow details for all interfaces or the specified
118bf8469c0Sstevesk.Ar interface .
119bf8469c0Sstevesk.It Cm show neighbor Op Cm detail
120bf8469c0SsteveskShow neighbors.
121bf8469c0Sstevesk.Cm detail
122bf8469c0Ssteveskcan be specified for additional detail.
123bf8469c0Sstevesk.It Cm show rib Op Cm detail
124e4381622SsteveskShow the Routing Information Base.
125bf8469c0Sstevesk.Cm detail
126bf8469c0Ssteveskcan be specified for additional detail.
12759df52c7Snorby.It Cm show summary
128bf8469c0SsteveskShow summary information.
12987b69d6eSjmc.El
130b49634deSclaudio.Sh FILES
1311d4b32ceSstevesk.Bl -tag -width "/var/run/ospfd.sockXX" -compact
1320037dff8Ssobrado.It Pa /var/run/ospfd.sock
133f829369eSsobrado.Ux Ns -domain
134f829369eSsobradosocket used for communication with
1351d4b32ceSstevesk.Xr ospfd 8 .
136b49634deSclaudio.El
137b49634deSclaudio.Sh SEE ALSO
1381d4b32ceSstevesk.Xr ospfd.conf 5 ,
139b49634deSclaudio.Xr ospfd 8
140b49634deSclaudio.Sh HISTORY
141b49634deSclaudioThe
142b49634deSclaudio.Nm
143b49634deSclaudioprogram first appeared in
144b49634deSclaudio.Ox 3.7 .
145