OcNOS-SP : Layer 2 Guide : Layer 2 Configuration Guide : Link Layer Discovery Protocol Configuration : Interface Mode TLV
Interface Mode TLV
Default Agent
All configuration commands in the table below should be followed for each switch.
 
#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 candidate configuration to the running configuration.
(config-if)#exit
Exit interface mode.
Validation
1. Verify the LLDP configurations in the local switch
#show running-config lldp
!
interface eth1
lldp-agent
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 nearest-bridge
 
Agent Mode : Nearest 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 : 3
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 switch.
 
#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 candidate configuration to the running configuration.
(config-if)#exit
Exit interface mode.
Validation
1. Verify the LLDP configurations in the local switch:
#show #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
Reinitialisation delay : 2
MED Enabled : N
Device Type : Not Defined
Traffic statistics :
Total frames transmitted : 8
Total entries aged : 0
Total frames received : 7
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 switch.
 
#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 candidate configuration to the running configuration.
(config-if)#exit
Exit interface mode.
Validation
1. Verify the LLDP configurations in the local switch:
#show running-config lldp
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
Reinitialisation delay : 2
MED Enabled : Y
Device Type : Not Defined
Traffic statistics :
Total frames transmitted : 17
Total entries aged : 0
Total frames received : 6
Total error frames received: 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
Media Endpoint Devices TLV
Switch A
 
(config)#interface eth1
Enter interface mode.
(config-if)#lldp-agent
Enter the default agent.
(if-lldp-agent)#set lldp enable txrx
Set the admin status of the LLDP agent.
(if-lldp-agent)#exit
Exit agent mode.
(config-if)#lldp-agent customer-bridge
Enter the customer-bridge agent.
(if-lldp-agent)#set lldp enable txrx
Set the admin status of the LLDP agent.
(if-lldp-agent)#exit
Exit agent mode.
(config-if)#lldp-agent non-tpmr-bridge
Enter the non-tpmr-bridge agent.
(if-lldp-agent)#set lldp enable txrx
Set the admin status of the LLDP agent.
(if-lldp-agent)#exit
Exit agent mode.
(config-if)#set lldp med-devtype net-connect
Enter the med-devtype agent and set the device type to network connectivity.
(config-if)#exit
Exit agent mode.
(config-if)#commit
Commit the candidate configuration to the running configuration.
Validation
#show run 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
!
#
 
#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 : 97
Total entries aged : 1
Total frames received : 92
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 : 89
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 : 90
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
#
Switch B
 
(config)#interface eth1
Enter interface mode.
(config-if)#lldp-agent
Enter the default agent.
(if-lldp-agent)#set lldp enable txrx
Set the admin status of the LLDP agent.
(if-lldp-agent)#exit
Exit agent mode.
(config-if)#lldp-agent customer-bridge
Enter the customer-bridge agent.
(if-lldp-agent)#set lldp enable txrx
Set the admin status of the LLDP agent.
(if-lldp-agent)#exit
Exit agent mode.
(config-if)#lldp-agent non-tpmr-bridge
Enter the non-tpmr-bridge agent.
(if-lldp-agent)#set lldp enable txrx
Set the admin status of the LLDP agent.
(if-lldp-agent)#exit
Exit agent mode.
(config-if)#set lldp med-devtype ep-class3
Enter the med-devtype agent and set the device type to endpoint class 3.
(config-if)#exit
Exit agent mode.
(config-if)#commit
Commit the candidate configuration to the running configuration.
Validation
#show running-config lldp
!
!
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
!
#
 
#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 : 11
Total entries aged : 0
Total frames received : 12
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 : 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 : Y
Device Type : End Point Class-3
Traffic statistics :
Total frames transmitted : 8
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: 07/06/2023