File: lldptool-vdp.8

package info (click to toggle)
lldpad 1.1%2Bgit20221028.aa18720-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,184 kB
  • sloc: ansic: 47,343; sh: 2,006; lex: 1,037; makefile: 140
file content (102 lines) | stat: -rw-r--r-- 2,883 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.TH lldptool 8 "February 2010" "open-lldp" "Linux"
.SH NAME
vdp \- Show / manipulate VDP TLV configuration
.SH SYNOPSIS
.B lldptool -t -i ethx -V vdp -c enableTx
.sp
.B lldptool -T -i ethx -V vdp -c enableTx=[yes|no]
.sp
.B lldptool -t -i ethx -V vdp -c mode
.sp
.B lldptool -T -i ethx -V vdp -c mode=<mode>,<mgrid>,<typeid>,<typeidversion>,<instanceid>,<mac>,<vlan>
.sp
.B lldptool -t -i ethx -V vdp -c role
.sp
.B lldptool -T -i ethx -V vdp -c role=[station|bridge]
.sp
.SH DESCRIPTION
The VSI discovery protocol (VDP) is \fINOT\fR a TLV in the LLDP sense but
rather a protocol to manage the association and deassociation of virtual
station interfaces (VSIs) between the station and an adjacent switch. VDP
uses ECP as transport for VDP TLVs. An ECP frame may contain multiple VDP
TLVs. Each VDP TLVs contains a mode, typeid, version, instanceid, mac and
vlan for a VSI.

.SH ARGUMENTS
.TP
.B enableTx
Enables or disables VDP
.TP
.B mode
shows or sets modes for VSIs with the following parameters:
.RS
.IP <mode>
mode (0=preassociate, 1=preassociate with RR, 2=associate, 3=deassociate)
.IP <mgrid>
manager (database) id
.IP <typeid>
VSI type id
.IP <version>
VSI type id version
.IP <instanceid>
VSI instance id
.IP <format>
VDP filter info format
.IP <mac>
VSI mac address
.IP <vlan>
VSI vlan id
.RE

.TP
.B role
shows or sets the role of the local machine to act as either station
(default) or bridge.

.SH Theory of Operation
The VDP protocol is used to pre-associate, associate or deassociate VSIs to
and adjacent switch. Information about the VSIs is formatted into VDP TLVs
which are then handed to ECP for lower-level transport. Each ECP frame may
contain multiple VDP TLVs.

Two ways to receive VSI information exist in llpdad: via netlink or with
lldptool. netlink is used by libvirt to communicate VSIs to lldpad. lldptool
can be used to associate/deassociate VSIs from the command line. This is
especially helpful for testing purposes.

.SH EXAMPLE & USAGE
.TP
Display if vdp is enabled on \fIeth8\fR
.B lldptool -t -i eth8 -V vdp -c enableTx
.TP
Enable vdp on \fIeth8\fR
.B lldptool -T -i eth8 -V vdp -c enableTx=yes
.TP
Display the currently configured VSIs for \fIeth8\fR
.B lldptool -t -i eth8 -V vdp -c mode
.TP
Associate a VSI on \fIeth8\fR
.B lldptool -T -i eth8 -V vdp -c mode=2,12,1193046,1,fa9b7fff-b0a0-4893-8e0e-beef4ff18f8f,2,52:54:00:C7:3E:CE,3
.TP
Display the locally configured role for VDP on \fIeth8\fR
.B lldptool -t -i eth8 -V vdp -c role
.TP
Set the local role for VDP on \fIeth8\fR
.B lldptool -T -i eth8 -V vdp -c role=bridge

.SH SOURCE
.TP
o
IEEE 802.1Qbg (http://www.ieee802.org/1/pages/802.1bg.html)

.SH NOTES
Currently the code in lldpad reflects draft 0 of the upcoming standard.
ECP/VDP TLVs on the wire can be decoded with wireshark > v1.8.

.SH SEE ALSO
.BR lldptool-evb (8),
.BR lldptool (8),
.BR lldpad (8)

.SH AUTHOR
Jens Osterkamp