OcNOS-SP : Layer 2 Guide : Layer 2 Configuration Guide : Link Layer Discovery Protocol Configuration : LLDP-MED
LLDP-MED
LLDP extensions and behavior requirements are described specifically in the areas of network Configuration and policy, device location (including for Emergency Call Service / E911), Power over Ethernet management, and inventory management.
Based on the device type, different TLVs are advertised by the Station.
LLDP-MED Network Connectivity Device
LLDP-MED Network Connectivity Devices, as defined in this Standard, provide access to the IEEE 802 based LAN infrastructure for LLDP-MED Endpoint Devices. An LLDP-MED Network Connectivity Device is a LAN access device based on any of the following technologies:
LAN Switch/Router
IEEE 802.1 Bridge
IEEE 802.3 Repeater (included for historical reasons)
IEEE 802.11 Wireless Access Point
Any device that supports the IEEE 802.1AB and MED extensions defined by this Standard and can relay IEEE 802 frames via any method.
Configuration Command
set lldp med-devtype net-connect
LLDP-MED Generic Endpoint (Class I)
The LLDP-MED Generic Endpoint (Class I) definition is applicable to all endpoint products that require the base LLDP discovery services, however do not support IP media or act as an end-user communication appliance. Such devices may include (but are not limited to) IP Communication Controllers, other communication related servers, or any device requiring basic services.
Configuration command:
set lldp med-devtype ep-class1
LLDP-MED Generic Endpoint (Class 2)
The LLDP-MED Media Endpoint (Class II) definition is applicable to all endpoint products that have IP media capabilities however may or may not be associated with a particular end user. Capabilities include all of the capabilities defined for the previous Generic Endpoint Class (Class I), and are extended to include aspects related to media streaming. Example product categories expected to adhere to this class include (but are not limited to) Voice / Media Gateways, Conference Bridges, Media Servers, and similar
Configuration command:
set lldp med-devtype ep-class2
LLDP-MED Generic Endpoint (Class 3)
The LLDP-MED Communication Endpoint (Class III) definition is applicable to all endpoint products that act as end user communication appliances supporting IP media. Capabilities include all of the capabilities defined for the previous Generic Endpoint (Class I) and Media Endpoint (Class II) classes, and are extended to include aspects related to end user devices. Example product categories expected to adhere to this class include (but are not limited to) end user communication appliances, such as IP Phones, PC-based softphones, or other communication appliances that directly support the end user.
Configuration command:
set lldp med-devtype ep-class3
Switch A
 
#configure terminal
Enter configure mode.
(config)#bridge 1 protocol ieee vlan-bridge
Configure an IEEE VLAN-aware bridge.
(config)#vlan database
Enter VLAN configure mode.
(config-vlan)#vlan 2 bridge 1 state enable
Configure a VLAN and add it to the bridge.
(config-vlan)#exit
Exit the VLAN configuration mode.
(config)#interface eth1
Enter interface mode.
(config-if)#switchport
Set switching characteristics on the port.
(config-if)#bridge-group 1
Associate the interface to the bridge.
(config-if)#lldp-agent
Enter into the default agent
(if-lldp-agent)#set lldp enable txrx
Enable an LLDP agent on the port.
(if-lldp-agent)#exit
Exit the lldp agent mode
(if-config-if)#lldp-agent customer-bridge
Enter into the customer-bridge agent.
(if-lldp-agent)#set lldp enable txrx
Enable an LLDP agent on the port.
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#lldp-agent non-tpmr-bridge
Enter into the non-tpmr-bridge agent
(if-lldp-agent)#set lldp enable txrx
Enable an LLDP agent on the port.
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#set lldp med-devtype net-connect
Configure the med device type
(config-if)#exit
Exit interface mode.
(config-if)#commit
Commit the candidate configuration to the running configuration.
Switch B
 
#configure terminal
Enter configure mode.
(config)#bridge 1 protocol ieee vlan-bridge
Configure an IEEE VLAN-aware bridge.
(config)#vlan database
Enter VLAN configure mode.
(config-vlan)#vlan 2 bridge 1 state enable
Configure a VLAN and add it to the bridge.
(config-vlan)#exit
Exit the VLAN configuration mode.
(config)#interface eth1
Enter interface mode.
(config-if)#switchport
Set switching characteristics on the port.
(config-if)#bridge-group 1
Associate the interface to the bridge.
(config-if)#lldp-agent
Enter into the default agent
(if-lldp-agent)#set lldp enable txrx
Enable an LLDP agent on the port.
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#lldp-agent customer-bridge
Enter into the customer-bridge agent
(if-lldp-agent)#set lldp enable txrx
Enable an LLDP agent on the port.
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#lldp-agent non-tpmr-bridge
Enter into the non-tpmr-bridge agent
(if-lldp-agent)#set lldp enable txrx
Enable an LLDP agent on the port.
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#set lldp med-devtype ep-class3
Configure the med device type
(config-if)#exit
Exit interface mode.
(config-if)#commit
Commit the candidate configuration to the running configuration.
Validation
1. Verify the LLDP configurations on Switch A:
#show running-config lldp
!
!
interface eth1
lldp-agent
set lldp enable txrx
set lldp med-devtype net-connect
lldp-agent non-tpmr-bridge
set lldp enable txrx
lldp-agent customer-bridge
set lldp enable txrx
!
2. Verify the LLDP port statistics on Switch A:
#show lldp interface eth1
Agent Mode : Customer-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Reinitialisation delay : 2
MED Enabled : Y
Device Type : Network Connectivity
Traffic statistics :
Total frames transmitted : 11
Total entries aged : 0
Total frames received : 10
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
Agent Mode : Non-TPMR-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Reinitialisation delay : 2
MED Enabled : N
Device Type : Network Connectivity
Traffic statistics :
Total frames transmitted : 7
Total entries aged : 0
Total frames received : 0
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
Agent Mode : Nearest bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Reinitialisation delay : 2
MED Enabled : N
Device Type : Network Connectivity
Traffic statistics :
Total frames transmitted : 7
Total entries aged : 0
Total frames received : 0
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
 
#show lldp interface eth1 non-tpmr-bridge
Agent Mode : Non-TPMR-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 5
Message transmit interval : 30
Reinitialisation delay : 2
MED Enabled : N
Device Type : Not Defined
Traffic statistics :
Total frames transmitted : 4
Total entries aged : 0
Total frames received : 0
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
3. Verify the LLDP configurations for end device ep-class3 on Switch B:
#show running-config lldp
!
interface eth1
set lldp med-devtype ep-class3
lldp-agent
set lldp enable txrx
lldp tlv med network-policy select
lldp-agent non-TPMR-bridge
set lldp enable txrx
lldp tlv med network-policy select
lldp-agent customer-bridge
set lldp enable txrx
lldp tlv med network-policy select
!
4. Verify the LLDP port statistics on Switch B:
 
#show lldp interface eth1
Agent Mode : Customer-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Reinitialisation delay : 2
MED Enabled : Y
Device Type : End Point Class-3
Traffic statistics :
Total frames transmitted : 124
Total entries aged : 0
Total frames received : 125
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
Agent Mode : Non-TPMR-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Reinitialisation delay : 2
MED Enabled : Y
Device Type : End Point Class-3
Traffic statistics :
Total frames transmitted : 120
Total entries aged : 0
Total frames received : 0
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
Agent Mode : Nearest bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Reinitialisation delay : 2
MED Enabled : Y
Device Type : End Point Class-3
Traffic statistics :
Total frames transmitted : 120
Total entries aged : 0
Total frames received : 0
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
#
 
Last modified date: 10/12/2023