1*328c3f4bSjmc.\" $OpenBSD: ldpctl.8,v 1.14 2023/03/02 17:09:53 jmc Exp $ 2ab0c2486Smichele.\" 3ab0c2486Smichele.\" Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> 4ab0c2486Smichele.\" Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> 5ab0c2486Smichele.\" 6ab0c2486Smichele.\" Permission to use, copy, modify, and distribute this software for any 7ab0c2486Smichele.\" purpose with or without fee is hereby granted, provided that the above 8ab0c2486Smichele.\" copyright notice and this permission notice appear in all copies. 9ab0c2486Smichele.\" 10ab0c2486Smichele.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11ab0c2486Smichele.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12ab0c2486Smichele.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13ab0c2486Smichele.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14ab0c2486Smichele.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15ab0c2486Smichele.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16ab0c2486Smichele.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17ab0c2486Smichele.\" 18*328c3f4bSjmc.Dd $Mdocdate: March 2 2023 $ 19ab0c2486Smichele.Dt LDPCTL 8 20ab0c2486Smichele.Os 21ab0c2486Smichele.Sh NAME 22ab0c2486Smichele.Nm ldpctl 23*328c3f4bSjmc.Nd control the LDP routing daemon 24ab0c2486Smichele.Sh SYNOPSIS 25ab0c2486Smichele.Nm 26ab0c2486Smichele.Ar command 27ab0c2486Smichele.Op Ar argument ... 28ab0c2486Smichele.Sh DESCRIPTION 29ab0c2486SmicheleThe 30ab0c2486Smichele.Nm 31ab0c2486Smicheleprogram controls the 32ab0c2486Smichele.Xr ldpd 8 33ab0c2486Smicheledaemon. 3407646b1eSsthenCommands may be abbreviated to the minimum unambiguous prefix; for example, 3507646b1eSsthen.Cm s i 3607646b1eSsthenfor 3707646b1eSsthen.Cm show interfaces . 38ab0c2486Smichele.Pp 39ab0c2486SmicheleThe following commands are available: 40ab0c2486Smichele.Bl -tag -width Ds 413f117ed9Srenato.It Xo 423f117ed9Srenato.Cm clear neighbors 433f117ed9Srenato.Op Ar address 443f117ed9Srenato.Xc 453f117ed9SrenatoDelete entries from the neighbor table. 463f117ed9Srenato.Ar address 473f117ed9Srenatocan be used to limit the scope of the command to the given neighbor. 4892dd8dc8Sclaudio.It Cm fib couple 494c2188a7SrenatoInsert the learned labels into the Label Forwarding Information Base a.k.a. 50ab0c2486Smichelethe kernel routing table. 5192dd8dc8Sclaudio.It Cm fib decouple 524c2188a7SrenatoRemove the learned labels from the Label Forwarding Information Base a.k.a. 53ab0c2486Smichelethe kernel routing table. 54c3319070Sclaudio.It Cm log brief 55c3319070SclaudioDisable verbose debug logging. 56be74ec1aSjmc.It Cm log verbose 57be74ec1aSjmcEnable verbose debug logging. 58fe91619eSrenato.It Cm reload 59fe91619eSrenatoReload the configuration file. 606fb6d103Srenato.It Xo 616fb6d103Srenato.Cm show fib 626fb6d103Srenato.Op Cm family Ar family 636fb6d103Srenato.Op Ar destination | filter 646fb6d103Srenato.Xc 65ab0c2486SmicheleShow the Label Forwarding Information Base. 666fb6d103Srenato.Ar family , 676fb6d103Srenatoif given, limit the output to the given address family. 68ab0c2486Smichele.Ar destination 69ab0c2486Smichelecan be specified to show the route matching a destination IP address. 70ab0c2486Smichele.Ar filter 71ab0c2486Smichelecan be any of the following: 72ab0c2486Smichele.Pp 73ab0c2486Smichele.Bl -tag -width "interfaceXXinterfaceXX" -compact 74ab0c2486Smichele.It Cm connected 75ab0c2486SmicheleShow only connected routes. 76ab0c2486Smichele.It Cm interface 77ab0c2486SmicheleShow only interfaces. 78ab0c2486Smichele.It Cm static 79ab0c2486SmicheleShow only static routes. 80ab0c2486Smichele.El 81ab0c2486Smichele.Pp 82ab0c2486Smichele.Cm connected , 83ab0c2486Smicheleand 84ab0c2486Smichele.Cm static 85ab0c2486Smichelemay be specified together. 866fb6d103Srenato.It Xo 876fb6d103Srenato.Cm show interfaces 886fb6d103Srenato.Op Cm family Ar family 896fb6d103Srenato.Xc 90ab0c2486SmicheleShow details for all interfaces. 916fb6d103Srenato.Ar family , 926fb6d103Srenatoif given, limit the output to the given address family. 936fb6d103Srenato.It Xo 946fb6d103Srenato.Cm show discovery 956fb6d103Srenato.Op Cm family Ar family 966fb6d103Srenato.Xc 97e971b041SrenatoShow adjacencies. 986fb6d103Srenato.Ar family , 996fb6d103Srenatoif given, limit the output to the given address family. 1006fb6d103Srenato.It Xo 1016fb6d103Srenato.Cm show neighbor 1026fb6d103Srenato.Op Cm family Ar family 1036fb6d103Srenato.Xc 104ab0c2486SmicheleShow neighbors. 1056fb6d103Srenato.Ar family , 1066fb6d103Srenatoif given, limit the output to the given address family. 1076fb6d103Srenato.It Xo 1086fb6d103Srenato.Cm show lib 1096fb6d103Srenato.Op Cm family Ar family 1106fb6d103Srenato.Xc 1116fb6d103SrenatoShow the Label Information Base. 1126fb6d103Srenato.Ar family , 1136fb6d103Srenatoif given, limit the output to the given address family. 114a94c7fd0Srenato.It Cm show l2vpn bindings 115a94c7fd0SrenatoShow the PWID Label Information Base. 116a94c7fd0Srenato.It Cm show l2vpn pseudowires 117a94c7fd0SrenatoShow the status of the configured pseudowires. 118ab0c2486Smichele.El 119ab0c2486Smichele.Sh FILES 120ab0c2486Smichele.Bl -tag -width "/var/run/ldpd.sockXX" -compact 1210037dff8Ssobrado.It Pa /var/run/ldpd.sock 122580cb82bSsobrado.Ux Ns -domain 123580cb82bSsobradosocket used for communication with 124ab0c2486Smichele.Xr ldpd 8 . 125ab0c2486Smichele.El 126ab0c2486Smichele.Sh SEE ALSO 127ab0c2486Smichele.Xr ldpd.conf 5 , 128ab0c2486Smichele.Xr ldpd 8 129ab0c2486Smichele.Sh HISTORY 130ab0c2486SmicheleThe 131ab0c2486Smichele.Nm 132ab0c2486Smicheleprogram first appeared in 133ab0c2486Smichele.Ox 4.6 . 134