xref: /openbsd-src/usr.sbin/ldpctl/ldpctl.8 (revision 43003dfe3ad45d1698bed8a37f2b0f5b14f20d4f)
1.\"	$OpenBSD: ldpctl.8,v 1.1 2009/06/01 20:59:45 michele Exp $
2.\"
3.\" Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
4.\" Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd $Mdocdate: June 1 2009 $
19.Dt LDPCTL 8
20.Os
21.Sh NAME
22.Nm ldpctl
23.Nd control the Label Distribution Protocol daemon
24.Sh SYNOPSIS
25.Nm
26.Ar command
27.Op Ar argument ...
28.Sh DESCRIPTION
29The
30.Nm
31program controls the
32.Xr ldpd 8
33daemon.
34.Pp
35The following commands are available:
36.Bl -tag -width Ds
37.It Cm lfib couple
38Insert the learned routes into the Label Forwarding Information Base a.k.a.
39the kernel routing table.
40.It Cm lfib decouple
41Remove the learned routes from the Label Forwarding Information Base a.k.a.
42the kernel routing table.
43.It Cm show lfib Op Ar destination | filter
44Show the Label Forwarding Information Base.
45.Ar destination
46can be specified to show the route matching a destination IP address.
47.Ar filter
48can be any of the following:
49.Pp
50.Bl -tag -width "interfaceXXinterfaceXX" -compact
51.It Cm connected
52Show only connected routes.
53.It Cm interface
54Show only interfaces.
55.It Cm static
56Show only static routes.
57.El
58.Pp
59.Cm connected ,
60and
61.Cm static
62may be specified together.
63.It Cm show interfaces
64Show details for all interfaces.
65.It Cm show neighbor
66Show neighbors.
67.It Cm show lib
68Show the Label Information Base.
69.El
70.Sh FILES
71.Bl -tag -width "/var/run/ldpd.sockXX" -compact
72.It /var/run/ldpd.sock
73Unix-domain socket used for communication with
74.Xr ldpd 8 .
75.El
76.Sh SEE ALSO
77.Xr ldpd.conf 5 ,
78.Xr ldpd 8
79.Sh HISTORY
80The
81.Nm
82program first appeared in
83.Ox 4.6 .
84