API Guide

Example: Advertise TLVs configuration
The following configuration example describes how to configure the system to advertise LLDP TLVs.
Sample configuration on R1:
Enable the list of LLDP TLVs needs to be advertised from R1.
R1# configure terminal
R1(config)# interface ethernet 1/1/7
R1(conf-if-eth1/1/7)# switchport
R1(conf-if-eth1/1/7)# no shutdown
R1(conf-if-eth1/1/7)# lldp tlv-select basic-tlv system-name
R1(conf-if-eth1/1/7)# lldp tlv-select dot3tlv macphy-config
R1(conf-if-eth1/1/7)# lldp tlv-select dot3tlv max-framesize
R1(conf-if-eth1/1/7)# lldp tlv-select dot1tlv link-aggregation
R1(conf-if-eth1/1/7)# lldp tlv-select dot1tlv port-vlan-id
R1(conf-if-eth1/1/7)# lldp management-addr-tlv ipv4 virtual-ip
Sample configuration on R2:
Enable the list of LLDP TLVs needs to be advertised from R2.
R1# configure terminal
R2(config)# interface ethernet 1/1/5
R2(conf-if-eth1/1/5)# switchport
R2(conf-if-eth1/1/5)# no shutdown
R2(conf-if-eth1/1/5)# lldp tlv-select basic-tlv system-name
R2(conf-if-eth1/1/5)# lldp tlv-select dot3tlv macphy-config
R2(conf-if-eth1/1/5)# lldp tlv-select dot3tlv max-framesize
R2(conf-if-eth1/1/5)# lldp tlv-select dot1tlv link-aggregation
R2(conf-if-eth1/1/5)# lldp tlv-select dot1tlv port-vlan-id
R1(conf-if-eth1/1/5)# lldp management-addr-tlv ipv4 virtual-ip
View LLDP configuration
View the LLDP configuration.
OS10# show running-configuration
View LLDP error messages.
show lldp errors
View LLDP errors
OS10# show lldp errors
Total Memory Allocation Failures : 0
Total Input Queue Overflows : 0
Total Table Overflows : 0
View the LLDP traffic details.
show lldp traffic
View LLDP global traffic
OS10# show lldp traffic
LLDP traffic statistics:
Total Frames Out : 0
Total Entries Aged : 0
Layer 2
443