]> git.ipfire.org Git - thirdparty/lldpd.git/blame - man/lldpd.8
Update ISC license wording.
[thirdparty/lldpd.git] / man / lldpd.8
CommitLineData
43c02e7b
VB
1.\" Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
2.\" Copyright (c) 2008 Vincent Bernat <bernat@luffy.cx>
3.\"
51434125 4.\" Permission to use, copy, modify, and/or distribute this software for any
43c02e7b
VB
5.\" purpose with or without fee is hereby granted, provided that the above
6.\" copyright notice and this permission notice appear in all copies.
7.\"
8.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15.\"
16.Dd $Mdocdate: August 21 2008 $
17.Dt LLDPD 8
18.Os
19.Sh NAME
20.Nm lldpd
21.Nd LLDP daemon
22.Sh SYNOPSIS
23.Nm
537a8043 24.Op Fl dxcseiklr
0765b92d 25.Op Fl S Ar description
740d517e 26.Op Fl X Ar socket
43c02e7b 27.Op Fl m Ar management
89840df0 28.Op Fl M Ar class
42b39485 29.Op Fl H Ar hide
43c02e7b
VB
30.Sh DESCRIPTION
31.Nm
32is a daemon able to receive and send
33.Em LLDP
34frames. The Link Layer Discovery Protocol is a vendor-neutral Layer 2
35protocol that allows a network device to advertise its identity and
36capabilities on the local network.
37.Pp
38.Nm
39also implements an SNMP subagent using AgentX protocol to interface to
40a regular SNMP agent like Net-SNMP. To enable this subagent, you need
41something like that in your
42.Xr snmpd.conf 5 :
43.Bd -literal -offset indent
44master agentx
45.Ed
46.Pp
47This daemon implements both reception and sending. It will collect
48various information to send LLDP frames to all Ethernet interfaces,
49including management address, speed and VLAN names.
50.Pp
51The options are as follows:
52.Bl -tag -width Ds
53.It Fl d
54Do not daemonize.
55If this option is specified,
56.Nm
57will run in the foreground and log to
58.Em stderr .
59This option can be specified many times to increase verbosity.
de1b1b3a
VB
60.It Fl k
61Disable advertising of kernel release, version and machine. Kernel name
62(ie: Linux) will still be shared, and Inventory software version will be set
63to 'Unknown'.
0765b92d
VB
64.It Fl S Ar description
65Override system description with the provided description. The default
66description is the kernel name, the node name, the kernel version, the
67build date and the architecture (except if you use the
68.Fl k
69flag described above).
43c02e7b 70.It Fl x
740d517e 71Enable SNMP subagent.
43c02e7b
VB
72With this option,
73.Nm
74will enable an SNMP subagent using AgentX protocol. This allows to get
75information about local system and remote systems through SNMP.
740d517e
V
76.It Fl X Ar socket
77Enable SNMP subagent using the specified socket.
78.Nm
79will enable an SNMP subagent using AgentX protocol for the given
80socket. This option implies the previous one. The default socket is
81usally
82.Em /var/agentx/master .
83You can specify a socket like
84.Em tcp:127.0.0.1:705
85for example. Since the process that will open this socket is enclosed
86in a chroot, you need to specify an IP address (not a hostname) when
87using a TCP or UDP socket.
43c02e7b
VB
88.It Fl c
89Enable the support of CDP protocol to deal with Cisco routers that do
0c877af0
VB
90not speak LLDP. If repeated, CDPv1 packets will be sent even when
91there is no CDP peer detected.
031118c4
VB
92.It Fl f
93Enable the support of FDP protocol to deal with Foundry routers that do
0c877af0
VB
94not speak LLDP. If repeated, FDP packets will be sent even when there
95is no FDP peer detected.
43c02e7b
VB
96.It Fl s
97Enable the support of SONMP protocol to deal with Nortel routers and
0c877af0
VB
98switches that do not speak LLDP. If repeated, SONMP packets will be
99sent even when there is no SONMP peer detected.
43c02e7b
VB
100.It Fl e
101Enable the support of EDP protocol to deal with Extreme routers and
0c877af0
VB
102switches that do not speak LLDP. If repeated, EDP packets will be sent
103even when there is no EDP peer detected.
104.It Fl l
105Force to send LLDP packets even when there is no LLDP peer detected
106but there is a peer speaking another protocol detected. By default,
107LLDP packets are sent when there is a peer speaking LLDP detected or
108when there is no peer at all.
537a8043
VB
109.It Fl r
110Receive-only mode. With this switch,
111.Nm
112will not send any frame. It will only listen to neighbors.
43c02e7b
VB
113.It Fl m Ar management
114Specify the management address of this system.
115.Nm
116only sends one management address. It will use the first one that it
117finds or the one that you specify with this option. This option can
118use wildcards.
89840df0
VB
119.It Fl M Ar class
120Enable emission of LLDP-MED frame. The class should be one of the
121following value:
122.Bl -tag -width "0:XX" -compact
115ff55c 123.It Sy 1
89840df0 124Generic Endpoint (Class I)
115ff55c 125.It Sy 2
89840df0 126Media Endpoint (Class II)
115ff55c 127.It Sy 3
89840df0 128Communication Device Endpoints (Class III)
115ff55c 129.It Sy 4
89840df0 130Network Connectivity Device
43c02e7b 131.El
e809a587
VB
132.It Fl i
133Disable LLDP-MED inventory TLV transmission.
134.Nm
135will still receive (and publish using SNMP if enabled) those LLDP-MED
136TLV but will not send them. Use this option if you don't want to
137transmit sensible information like serial numbers.
42b39485 138.It Fl H Ar hide
8482abe9
VB
139Filter neighbors. See section
140.Sx FILTERING NEIGHBORS
141for details.
142.El
143.Sh FILTERING NEIGHBORS
42b39485
VB
144In a heterogeneous network, you may see several different hosts on the
145same port, even if there is only one physically plugged to this
146port. For example, if you have a Nortel switch running LLDP which is
147plugged to a Cisco switch running CDP and your host is plugged to the
148Cisco switch, you will see the Nortel switch as well because LLDP
149frames are forwarded by the Cisco switch. This may not be what you
150want. The
151.Fl H Ar hide
152parameter will allow you to tell
153.Nm
154to discard some frames that it receives and to avoid to send some
8482abe9
VB
155other frames.
156.Pp
157Incoming filtering and outgoing filtering are
158unrelated. Incoming filtering will hide some remote ports to get you a
159chance to know exactly what equipment is on the other side of the
160network cable. Outgoing filtering will avoid to use some protocols to
161avoid flooding your network with a protocol that is not handled by the
162nearest equipment. Keep in mind that even without filtering,
163.Nm
164will speak protocols for which at least one frame has been received
165and LLDP otherwise (there are other options to change this behaviour,
166for example
167.Fl cc , ss , ee , ll
168and
169.Fl ff
170).
171.Pp
172When enabling incoming filtering,
173.Nm
174will try to select one protocol and filter out neighbors using other
175protocols. To select this protocol, the rule is to take the less used
176protocol. If on one port, you get 12 CDP neighbors and 1 LLDP
177neighbor, this mean that the remote switch speaks LLDP and does not
178filter CDP. Therefore, we select LLDP. When enabling outgoing
179filtering,
180.Nm
181will also try to select one protocol and only speaks this
182protocol. The filtering is done per port. Each port may select a
183different protocol.
184.Pp
185There are two additional criteria when enabling filtering: allowing
186one or several protocols to be selected (in case of a tie) and
187allowing one or several neighbors to be selected. Even when allowing
188several protocols, the rule of selecting the protocols with the less
189neighbors still apply. If
190.Nm
191selects LLDP and CDP, this means they have the same number of
192neighbors. The selection of the neighbor is random. Incoming filtering
193will select a set of neighbors to be displayed while outgoing
194filtering will use the selected set of neighbors to decide which
195protocols to use: if a selected neighbor speaks LLDP and another one
196CDP,
197.Nm
198will speak both CDP and LLDP on this port.
199.Pp
200There are some corner cases. A typical example is a switch speaking
201two protocols (CDP and LLDP for example). You want to get the
202information from the best protocol but you want to speak both
203protocols because some tools use the CDP table and some other the LLDP
204table.
205.Pp
206The table below summarize all accepted values for the
207.Fl H Ar hide
208parameter. The default value is
209.Em 15
210which corresponds to the corner case described above. The
211.Em filter
212column means that filtering is enabled. The
213.Em 1proto
214column tells that only one protocol will be kept. The
215.Em 1neigh
216column tells that only one neighbor will be kept.
217.Pp
218.Bl -column -compact -offset indent "HXXX" "filterX" "1protoX" "1neighX" "filterX" "1protoX" "1neighX"
219.It Ta Ta incoming Ta Ta outgoing Ta
220.It Ta Em filter Ta Em 1proto Ta Em 1neigh Ta Em filter Ta Em 1proto Ta Em 1neigh
221.It Em 0 Ta Ta Ta Ta Ta Ta
222.It Em 1 Ta x Ta x Ta Ta x Ta x Ta
223.It Em 2 Ta x Ta x Ta Ta Ta Ta
224.It Em 3 Ta Ta Ta Ta x Ta x Ta
225.It Em 4 Ta x Ta Ta Ta x Ta Ta
226.It Em 5 Ta x Ta Ta Ta Ta Ta
227.It Em 6 Ta Ta Ta Ta x Ta Ta
228.It Em 7 Ta x Ta x Ta x Ta x Ta x Ta
229.It Em 8 Ta x Ta x Ta x Ta Ta Ta
230.It Em 9 Ta x Ta Ta x Ta x Ta x Ta
231.It Em 10 Ta Ta Ta Ta x Ta Ta x
232.It Em 11 Ta x Ta Ta x Ta Ta Ta
233.It Em 12 Ta x Ta Ta x Ta x Ta Ta x
234.It Em 13 Ta x Ta Ta x Ta x Ta Ta
235.It Em 14 Ta x Ta x Ta Ta x Ta Ta x
236.It Em 15 Ta x Ta x Ta Ta x Ta Ta
237.It Em 16 Ta x Ta x Ta x Ta x Ta Ta x
238.It Em 17 Ta x Ta x Ta x Ta x Ta Ta
239.It Em 18 Ta x Ta Ta Ta x Ta Ta x
240.It Em 19 Ta x Ta Ta Ta x Ta x Ta
de44f068 241.El
43c02e7b 242.Sh FILES
461bd490 243.Bl -tag -width "/var/run/lldpd.socketXX" -compact
43c02e7b
VB
244.It /var/run/lldpd.socket
245Unix-domain socket used for communication with
246.Xr lldpctl 8 .
247.El
248.Sh SEE ALSO
249.Xr lldpctl 8 ,
250.Xr snmpd 8
251.Sh HISTORY
252The
253.Nm
254program is inspired from a preliminary work of Reyk Floeter.
255.Sh AUTHORS
256.An -nosplit
257The
258.Nm
259program was written by
260.An Pierre-Yves Ritschard Aq pyr@openbsd.org ,
261and
262.An Vincent Bernat Aq bernat@luffy.cx .