lldptool(8)
β¨ lldptool(8) β¨ β the LLDP-MED one, bestie π
okay so this is lldptool(8), the Linux manual page for the LLDP-MED stuff β aka Show / manipulate MED TLV configurations. sit down, grab a strawberry π, we're doing Link Layer Discovery today and it's gonna be lowkey fun.
πΈ NAME πΈ
LLDP-MED β Show / manipulate MED TLV configurations π
π SYNOPSIS π
like, here's the whole vibe in one glance:
lldptool -t -i ethx -V [ TLV_TYPE ] enableTx
lldptool -T -i ethx -V [ TLV_TYPE ] enableTx = { yes | no }
lldptool -T -i ethx -V LLDP-MED devtype = { class1 | class2 | class3 |
none }
lldptool -t -i ethx -V LLDP-MED devtype
TLV_TYPE : = {LLDP-MED | medCap | medPolicy | medLoc | medPower | medHwRev |
medFwRev | medSwRev | medSerNum | medManuf | medModel | medAssetID }
not me writing-tlowercase for query and-Tuppercase for *set*β¦ yes bestie, case matters, they are literally different flags π
π¦ DESCRIPTION π¦
so the LLDP-MED extensions are here to support the Link Layer Discovery Protocol for Media Endpoint Devices, which is defined in the ANSI/TIA-1057-2006 document β iconic, no notes.
Every single TLV can be configured as a class1, class2 or class3 device, and the class system goes like this:
- Class I devices are the most basic class of Endpoint Device.
- Class II devices support media stream capabilities.
- Class III devices directly support end users of the IP communication system.
want the actual clarification of class types? go read ANS-TIA-1057, periodt. (yes, that's spelled exactly like that up there, i'm just the messenger π«Ά)
π ARGUMENTS π
enableTxβ Enables the TLV to be transmitted. it's giving "turn it on so it actually goes out" β¨devtypeβ Set or query the class type of the device. main character energy, honestly π
π TLV_TYPE π
the list of supported TLV specifiers that apply to Media Endpoint Devices β collect them all like pokΓ©mon:
LLDP-MEDβ apply arguments to all supported MED TLVs. the "do it to everything" button, obsessed πmedCAPβ LLDP-MED Capabilities TLVmedPolicyβ LLDP-MED Network Policy TLVmedLocβ LLDP-MED Location TLVmedPowerβ LLDP-MED Extended Power-via-MDI TLVmedHwRevβ LLDP-MED Hardware Revision TLVmedFwRevβ LLDP-MED Firmware Revision TLVmedSwRevβ LLDP-MED Software Revision TLVmedSerNumβ LLDP-MED Serial Number TLVmedManufβ LLDP-MED Manufacturer Name TLmedModelβ LLDP-MED Model Name TLVmedAssetIDβ LLDP-MED Asset ID TLV
π yesmedCAPup there has the capitals and the synopsis spells itmedCap. and yes,medManufsays "TL" not "TLV". i am not fixing it, i am reporting it. fr fr.
π₯ EXAMPLE & USAGE π₯
here's where it gets good. three little recipes, chef's kiss π©βπ³
Enable class1 MED device on eth2
lldptool -T -i eth2 -V LLDP-MED enableTx=yes devtype=class1
Query class type of MED on eth2
lldptool -t -i eth2 -V LLDP-MED -c devtype
Query transmit state of medPolicy on device eth2
lldptool -t -i eth2 -V medPolicy -c enableTx
see the pattern? -T to set, -t to peek, -c to say what you wanna peek at. ate π
β SOURCE β
- Link Layer Discovery Protocol for Media Endpoint Devices (
http://www.tiaonline.org/standards/technology/voip/documents/ANSI-TIA-1057_final_for_publication.pdf)
π§ NOTES π§
literally nothing here. the NOTES section is empty, bestie. it's giving "silence is a valid note". enjoy the peace and quiet πΈ
π SEE ALSO π
go read your siblings, they're all icons:
π AUTHOR π
John Fastabend
and that's the whole page, no cap π this one came from open-lldp and it's dated June 2011 β yes, 2011, vintage, retro, still slaying π¦ ty for reading bestie, go configure some TLVs, i believe in you π«Άβ¨
π¦ where this page comes from
- alpine 3.22: open-lldp-doc 1.1-r2 Β· GPL-2.0-only
- alpine 3.23: open-lldp-doc 1.1-r3 Β· GPL-2.0-only
- alpine 3.24: open-lldp-doc 1.1-r3 Β· GPL-2.0-only
- centos-stream 10: lldpad 1.1.1-4.gitf1dd9eb.el10 Β· GPL-2.0-only
- centos-stream 9: lldpad 1.1.1-5.gitf1dd9eb.el9 Β· GPL-2.0-only
- centos-stream 9: lldpad 1.1.1-5.gitf1dd9eb.el9 Β· GPL-2.0-only
- debian bookworm: lldpad 1.1+git20221028.aa18720-1 Β· GPL-2.0-only
- debian trixie: lldpad 1.1.1-1+b1 Β· GPL-2.0-only
- fedora 43: lldpad 1.1.0-14.git85e5583.fc43 Β· GPL-2.0-only
- fedora 43: lldpad 1.1.0-14.git85e5583.fc43 Β· GPL-2.0-only
- fedora 44: lldpad 1.1.0-16.git85e5583.fc44 Β· GPL-2.0-only
- fedora 44: lldpad 1.1.0-16.git85e5583.fc44 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- ubuntu jammy: lldpad 1.1-1 Β· GPL-2.0-only
- ubuntu noble: lldpad 1.1+git20221028.aa18720-2 Β· GPL-2.0-only
- ubuntu questing: lldpad 1.1.1-1build1
- ubuntu resolute: lldpad 1.1.1-1build2 Β· GPL-2.0-only
- ubuntu stonking: lldpad 1.1.1-1build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms