OcNOS DC : Layer 2 Guide : Layer 2 Configuration : Link Layer Discovery Protocol Configuration
Link Layer Discovery Protocol Configuration
This chapter contains a complete sample Link Layer Discovery Protocol (LLDP) configuration.
LLDP is a neighbor discovery protocol that defines a method for network access devices using Ethernet connectivity to advertise themselves to other devices on the same physical LAN, and then to store information about the network. It allows a device to learn higher-layer management reachability and connection endpoint information from adjacent devices. Using LLDP, a network device is able to advertise its identity, its capabilities and its media-specific configuration, as well as learn the same information from other connected devices.
Note: The lldp-agent command is not supported for SVLAN, VLAN, and loop-back interfaces.
Topology
Figure 8-17 displays a sample LLDP topology.
LLDP Topology
LLDPv2 (Interface Mode TLV)
Default Agent
All configuration commands in the table below should be followed for each machines.
 
#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)#set lldp chassis-id-tlv ip-address
Configure the subtype for chassis-id TLV
(if-lldp-agent)#set lldp port-id-tlv mac-address
Configure the subtype for port-id TLV
(if-lldp-agent)# lldp tlv basic-mgmt port-description select
Enable the port-description TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt system-name select
Enable the system-name TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt system-capabilities select
Enable the system-capabilities TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt system-description select
Enable the system-description TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt management-address select
Enable the management-address TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific port-vlanid select
Enable the VLAN-id TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific vlan-name select
Enable the VLAN-NAME TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific port-ptcl-vlanid select
Enable the Port and Protocol VLAN id TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific ptcl-identity select
Enable the Protocol Identity TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific vid-digest select
Enable the VID Usage Digest TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific mgmt-vid select
Enable the Management VID TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific link-agg select
Enable the Link Aggregation TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8023-org-specific mac-phy select
Enable the MAC/PHY Configuration/Status TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8023-org-specific max-mtu-size select
Enable the Maximum Frame Size TLV to be transmitted on the port
(if-lldp-agent)#set lldp timer msg-fast-tx 5
Defines the time interval during fast transmission periods
(if-lldp-agent)#set lldp tx-fast-init 6
Defines the number of LLDPDUs that are transmitted during a fast transmission period
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#commit
Commit the transaction.
(config-if)#exit
Exit interface mode.
Validation
1. Verify the LLDP configurations in the local machine
#show running-config lldp
!
interface eth0
lldp-agent
!
interface eth1
lldp-agent
set lldp enable txrx
set lldp chassis-id-tlv ip-address
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
lldp tlv-select ieee-8021-org-specific port-vlanid
lldp tlv-select ieee-8021-org-specific vlan-name
lldp tlv-select ieee-8021-org-specific port-ptcl-vlanid
lldp tlv-select ieee-8021-org-specific ptcl-identity
lldp tlv-select ieee-8021-org-specific vid-digest
lldp tlv-select ieee-8021-org-specific mgmt-vid
lldp tlv-select ieee-8021-org-specific link-agg
lldp tlv-select ieee-8023-org-specific mac-phy
lldp tlv-select ieee-8023-org-specific max-mtu-size
set lldp timer msg-fast-tx 5
set lldp tx-fast-init 6
!
interface eth2
lldp-agent
!
interface eth3
lldp-agent
 
2. Verify the LLDP port statistics
#show lldp interface eth1 nearest-bridge
 
Agent Mode : Nearest bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 5
Message transmit interval : 30
Message fast transmit interval : 6
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : N
Device Type : Not Defined
Traffic statistics :
Total frames transmitted : 0
Total entries aged : 0
Total frames received : 5
Total error frames received : 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
Customer Bridge
All configuration commands in the table below should be followed for each machine.
 
#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 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)#set lldp chassis-id-tlv ip-address
Configure the subtype for chassis-id TLV
(if-lldp-agent)#set lldp port-id-tlv mac-address
Configure the subtype for port-id TLV
(if-lldp-agent)# lldp tlv basic-mgmt port-description select
Enable the port-description TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv basic-mgmt system-name select
Enable the system-name TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv basic-mgmt system-capabilities select
Enable the system-capabilities TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv basic-mgmt system-description select
Enable the system-description TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv basic-mgmt management-address select
Enable the management-address TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv ieee-8021-org-specific port-vlanid select
Enable the VLAN-id TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv ieee-8021-org-specific vlan-name select
Enable the VLAN-NAME TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv ieee-8021-org-specific port-ptcl-vlanid select
Enable the Port and Protocol VLAN id TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv ieee-8021-org-specific ptcl-identity select
Enable the Protocol Identity TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv ieee-8021-org-specific vid-digest select
Enable the VID Usage Digest TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific mgmt-vid select
Enable the Management VID TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv ieee-8021-org-specific link-agg select
Enable the Link Aggregation TLV to be transmitted on the port.
(if-lldp-agent)# lldp tlv ieee-8023-org-specific mac-phy select
Enable the MAC/PHY Configuration/Status TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8023-org-specific max-mtu-size select
Enable the Maximum Frame Size TLV to be transmitted on the port.
(if-lldp-agent)#set lldp timer msg-fast-tx 5
Defines the time interval during fast transmission periods.
(if-lldp-agent)#set lldp tx-fast-init 6
Defines the number of LLD PDUs that are transmitted during a fast transmission period.
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#commit
Commit the transaction.
(config-if)#exit
Exit interface mode.
Validation
1. Verify the LLDP configurations in the local machine
#show running-config lldp
!
interface eth1
lldp-agent customer-bridge
set lldp enable txrx
set lldp chassis-id-tlv ip-address
set lldp port-id-tlv mac-address
lldp tlv basic-mgmt port-description select
lldp tlv basic-mgmt system-name select
lldp tlv basic-mgmt system-description select
lldp tlv basic-mgmt system-capabilities select
lldp tlv basic-mgmt management-address select
lldp tlv ieee-8021-org-specific port-vlanid select
lldp tlv ieee-8021-org-specific port-ptcl-vlanid select
lldp tlv ieee-8021-org-specific vlan-name select
lldp tlv ieee-8021-org-specific ptcl-identity select
lldp tlv ieee-8021-org-specific vid-digest select
lldp tlv ieee-8021-org-specific mgmt-vid select
lldp tlv ieee-8021-org-specific link-agg select
lldp tlv ieee-8023-org-specific mac-phy select
lldp tlv ieee-8023-org-specific max-mtu-size select
set lldp timer msg-fast-tx 5
set lldp tx-fast-init 6
!
2. Verify the LLDP port statistics
#show lldp interface eth1 customer-bridge
 
Agent Mode : Customer-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 5
Message transmit interval : 30
Message fast transmit interval : 6
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : N
Device Type : Not Defined
Traffic statistics :
Total frames transmitted : 5
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
 
Non-Tpmr-Bridge
The below configurations should be followed for each machines.
 
#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 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)#set lldp chassis-id-tlv ip-address
Configure the subtype for chassis-id TLV
(if-lldp-agent)#set lldp port-id-tlv mac-address
Configure the subtype for port-id TLV
(if-lldp-agent)# lldp tlv basic-mgmt port-description select
Enable the port-description TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt system-name select
Enable the system-name TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt system-capabilities select
Enable the system-capabilities TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt system-description select
Enable the system-description TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv basic-mgmt management-address select
Enable the management-address TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific port-vlanid select
Enable the VLAN-id TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific vlan-name select
Enable the VLAN-NAME TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific port-ptcl-vlanid select
Enable the Port and Protocol VLAN id TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific ptcl-identity select
Enable the Protocol Identity TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific vid-digest select
Enable the VID Usage Digest TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific mgmt-vid select
Enable the Management VID TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8021-org-specific link-agg select
Enable the Link Aggregation TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8023-org-specific mac-phy select
Enable the MAC/PHY Configuration/Status TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv ieee-8023-org-specific max-mtu-size select
Enable the Maximum Frame Size TLV to be transmitted on the port
(if-lldp-agent)#set lldp timer msg-fast-tx 5
Defines the time interval during fast transmission periods
(if-lldp-agent)#set lldp tx-fast-init 6
Defines the number of LLD PDUs that are transmitted during a fast transmission period
(if-lldp-agent)#exit
Exit the lldp agent mode
(config-if)#commit
Commit the transaction.
(config-if)#exit
Exit interface mode.
Validation
1. Verify the LLDP configurations in the local machine
#show running-config lldp
!
interface eth1
lldp-agent non-tpmr-bridge
set lldp enable txrx
set lldp chassis-id-tlv ip-address
set lldp port-id-tlv mac-address
lldp tlv basic-mgmt port-description select
lldp tlv basic-mgmt system-name select
lldp tlv basic-mgmt system-description select
lldp tlv basic-mgmt system-capabilities select
lldp tlv basic-mgmt management-address select
lldp tlv ieee-8021-org-specific port-vlanid select
lldp tlv ieee-8021-org-specific port-ptcl-vlanid select
lldp tlv ieee-8021-org-specific vlan-name select
lldp tlv ieee-8021-org-specific ptcl-identity select
lldp tlv ieee-8021-org-specific vid-digest select
lldp tlv ieee-8021-org-specific mgmt-vid select
lldp tlv ieee-8021-org-specific link-agg select
lldp tlv ieee-8023-org-specific mac-phy select
lldp tlv ieee-8023-org-specific max-mtu-size select
set lldp timer msg-fast-tx 5
set lldp tx-fast-init 6
!
2. Verify the LLDP port statistics
#show lldp interface eth1 non-tmpr-bridge
 
Agent Mode : Non-TPMR-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 5
Message transmit interval : 30
Message fast transmit interval : 6
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : N
Device Type : Not Defined
Traffic statistics :
Total frames transmitted : 6
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
LLDPV2 (Global Mode TLV)
LLDPv2 TLVs can be configured globally, making it applicable for all interfaces where LLDP is enabled.
Topology
LLDP topology
SW1
 
SW1#configure terminal
Enter Configure mode
SW1(config)#lldp tlv-select basic-mgmt port-description
Enable LLDP port description TLV in global mode
SW1(config)#lldp tlv-select basic-mgmt system-name
Enable LLDP system name TLV in global mode
SW1(config)#lldp tlv-select basic-mgmt system-capabilities
Enable LLDP system capabilities TLV in global mode
SW1(config)#lldp tlv-select basic-mgmt system-description
Enable LLDP system description TLV in global mode
SW1(config)#lldp tlv-select basic-mgmt management-address
Enable LLDP port description TLV in global mode
SW1(config)#interface eth1
Enter interface mode
SW1(config-if)#lldp-agent
Enter LLDP interface mode
SW1(if-lldp-agent)#set lldp enable txrx
Enable LLDP TLV transmit and receive for the nearest bridge
SW1(if-lldp-agent)#exit
Exit LLDP mode
SW1(config-if)#commit
Commit the transaction.
SW1(config-if)#exit
Exit the configure mode
SW2
 
SW2(config)#lldp tlv-select basic-mgmt port-description
Enable LLDP port description TLV in global mode
SW2(config)#lldp tlv-select basic-mgmt system-name
Enable LLDP system name TLV in global mode
SW2(config)#lldp tlv-select basic-mgmt system-capabilities
Enable LLDP system capabilities TLV in global mode
SW2(config)#lldp tlv-select basic-mgmt system-description
Enable LLDP system description TLV in global mode
SW2(config)#lldp tlv-select basic-mgmt manage-ment-address
Enable LLDP manage ment address TLV in global mode
SW2(config)#interface eth1
Enter interface mode
SW2(config-if)#lldp-agent
Enter LLDP interface mode
SW2(if-lldp-agent)#set lldp enable txrx
Enable LLDP TLV transmit and receive for the nearest bridge
SW2(if-lldp-agent)#exit
Exit LLDP mode
SW2(config-if)#commit
Commit the transaction.
SW2(config)#end
Exit the configure mode
Validation
SW1#show running-config lldp
!
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
!
 
 
SW1#show lldp neighbors
Loc PortID Rem Host Name Rem Chassis Id Rem Port Id Agent Mode
 
--------------------------------------------------------------------------------
Eth1 OcNOS cc37.ab56.6d80 cc37.abbb.ed81 Nearest bridge
 
 
 
SW1#show lldp neighbors detail
 
--------------------------------------------------------------------------------
 
Nearest bridge Neighbors
Interface Name : eth1
Mandatory TLVs
Chassis id type : MAC address [cc37.ab56.6d80]
Port id type : MAC address [cc37.abbb.ed81]
Time to live : 121
Basic Management TLVs
System Name : SW2
System Description : Hardware Model:CEL_BELGITE_E1070, Software version: Oc
NOS,6.3.2.47
Port Description : eth1
Remote System Capabilities : Bridge
Router
Capabilities Enabled : Router
Management Address : MAC Address [cc37.abbb.ed81]
Interface Number subtype : ifindex
Interface Number 10046
OID Number : 0
802.1 Org specific TLVs
Port vlan id : 0
Port & Protocol vlan id : 0
Remote Configured VLANs : None
Remote Protocols Advertised: None
Remote VID Usage Digest : 0
Remote Management Vlan : 0
Link Aggregation Capability: not capable of being aggregated
Link Aggregation Status : not currently in aggregation
Link Aggregation Port ID :
802.3 Org specific TLVs
AutoNego Support : Not-Supported
AutoNego Status : Disabled
AutoNego Capability : 0
Operational MAU Type : 0 [unknown]
Max Frame Size :
SW1#
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
Topology
SW 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)# lldp tlv med media-capabilities select
Enable the med media capabilities TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv med network-policy select
Enable the med network policy TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv med location select
Enable the med location TLV to be transmitted 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)# lldp tlv med media-capabilities select
Enable the med media capabilities TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv med network-policy select
Enable the med network policy TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv med location select
Enable the med location TLV to be transmitted 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)# lldp tlv med media-capabilities select
Enable the med media capabilities TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv med network-policy select
Enable the med network policy TLV to be transmitted on the port
(if-lldp-agent)# lldp tlv med location select
Enable the med location TLV to be transmitted 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)#commit
Commit the transaction.
SW 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-class1|ep-class2|ep-class3}
Configure the med device type
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the transaction.
Validation
1. Verify the LLDP configurations on Machine A
#show running-config lldp
!
interface eth0
lldp-agent
!
interface eth1
lldp-agent
set lldp enable txrx
lldp tlv med media-capabilities select
lldp tlv med network-policy select
lldp tlv med location select
set lldp med-devtype net-connect
lldp-agent non-tpmr-bridge
set lldp enable txrx
lldp tlv med media-capabilities select
lldp tlv med network-policy select
lldp tlv med location select
lldp-agent customer-bridge
set lldp enable txrx
lldp tlv med media-capabilities select
lldp tlv med network-policy select
lldp tlv med location select
!
 
2. Verify the LLDP port statistics on machine A
#show lldp interface eth1
 
Agent Mode : Customer-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Message fast transmit interval : 4
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : Y
Device Type : Network Connectivity
Traffic statistics :
Total frames transmitted : 33
Total entries aged : 0
Total frames received : 34
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
Message fast transmit interval : 4
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : Y
Device Type : Network Connectivity
Traffic statistics :
Total frames transmitted : 30
Total entries aged : 0
Total frames received : 31
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
Message fast transmit interval : 4
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : Y
Device Type : Network Connectivity
Traffic statistics :
Total frames transmitted : 30
Total entries aged : 0
Total frames received : 31
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 : 1
Message transmit interval : 30
Message fast transmit interval : 4
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : Y
Device Type : Network Connectivity
Traffic statistics :
Total frames transmitted : 32
Total entries aged : 0
Total frames received : 33
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 machine B
 
#show running-config lldp
!
interface eth0
lldp-agent
!
interface eth1
lldp-agent
set lldp enable txrx
set lldp chassis-id-tlv ip-address
set lldp med-devtype ep-class3
lldp-agent non-tpmr-bridge
set lldp enable txrx
set lldp chassis-id-tlv ip-address
lldp-agent customer-bridge
set lldp enable txrx
set lldp chassis-id-tlv ip-address
!
4. Verify the LLDP port statistics on machine B
 
#show lldp interface eth1
Agent Mode : Customer-bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmit interval : 30
Message fast transmit interval : 4
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : Y
Device Type : End Point Class-3
Traffic statistics :
Total frames transmitted : 0
Total entries aged : 0
Total frames received : 8
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
Message fast transmit interval : 4
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : Y
Device Type : End Point Class-3
Traffic statistics :
Total frames transmitted : 0
Total entries aged : 0
Total frames received : 8
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
Message fast transmit interval : 4
Maximum transmit credit : 5
Reinitialisation delay : 2
MED Enabled : Y
Device Type : End Point Class-3
Traffic statistics :
Total frames transmitted : 0
Total entries aged : 0
Total frames received : 8
Total error frames received : 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0