Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure LLDP Basic Functions Example

Network Requirement

  • Configure the LLDP function on Device1, Device2 and Device3, realizing the link- layer neighbor discovery.

Network Topology

Networking of configuring the LLDP basic functions

Figure 7-1 Networking of configuring the LLDP basic functions

Configuration Steps

Step 1: Enable the LLDP function on Device.

# Enable the LLDP function on Device1.

Device1#configure terminal
Device1(config)#lldp run

#Enable the LLDP function on Device2.

Device2#configure terminal
Device2(config)#lldp run

#Enable the LLDP function on Device3.

Device3#configure terminal
Device3(config)#lldp run

Step 2: Configure the LLDP function on the port.

#Enable the LLDP function on port gigabitethernet0/1 of Device1.

Device1(config)#interface gigabitethernet 0/1
Device1(config-if-gigabitethernet0/1)#lldp enable
Device1(config-if-gigabitethernet0/1)#exit

#Enable the LLDP function on port gigabitethernet0/1 and gigabitethernet0/2 of Device2.

Device2(config)#interface gigabitethernet 0/1
Device2(config-if-gigabitethernet0/1)#lldp enable
Device2(config-if-gigabitethernet0/1)#exit
Device2(config)#interface gigabitethernet 0/2
Device2(config-if-gigabitethernet0/2)#lldp enable
Device2(config-if-gigabitethernet0/2)#exit

#Enable the LLDP function on port gigabitethernet0/1 of Device3.

Device3(config)#interface gigabitethernet 0/1
Device3(config-if-gigabitethernet0/1)#lldp enable
Device3(config-if-gigabitethernet0/1)#exit

Step 3: Check the result.

#View the neighbor information on Device1.

Device1#show lldp neighbors  
 
1 neighbor entries in system
Capability codes: 
        (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device 
        (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other 
Index  Local  Intf   Hold-time  Capability       Peer    Intf   Device ID 
1      gi0/1         120        P,R,             gi0/1          Device2 
 
Total entries displayed: 1 

Device1 discovers neighbor Device2.

#View the details of Device1 neighbor.

Device1#show lldp neighbors detail  
Neighbor 1: 
1. Basic information 
Chassis ID....................... 0001.7a54.5d0b 
Interface ID                    : gi0/1 
Interface Description           : gigabitethernet0/1
System Name                     : Device2 
System Description              : MyPower (R) Operating System Software
Copyright (C) 2013 Maipu Communication Technology Co.,Ltd.All Rights Reserved.
Time Remaining                  : 111 seconds  
System Capabilities             : P,R,
Enabled Capabilities            : P,R,
Management Addresses            : IP,10.0.0.1 
 
2. 802.1 organizationally information 
Port VLAN ID                    : 1
Port And Protocol VLAN ID       : 0 
VLAN Name Of VLAN 1             : DEFAULT 
 
3. 802.3 organizationally information 
Auto Negotiation                : Supported, Enabled
OperMau                         : Speed(1000)/Duplex(Full)
Port Class                      : PSE 
PSE Power                       : Supported, Enabled
PSE Pairs Control Ability       : No 
Power Pairs                     : 1
Power Class                     : 1 
Link Aggregation                : Supported, Disabled
Link Aggregation ID             : 0 
Max Translate Unit              : 1824 
 
4. MED organizationally information
Capabilities                    : Not Supported
Class Type                      : Not Supported
Application Type                : Not Supported
Policy                          : Not Supported
VLAN Tagged                     : Not Supported
VLAN ID                         : Not Supported
L2 Priority                     : Not Supported
DSCP Value                      : Not Supported
Location ID                     : Not Supported
Power Type                      : Not Supported
Power Source                    : Not Supported
Power Priority                  : Not Supported
Power Value                     : Not Supported
HardwareRev                     : Not Supported
FirmwareRev                     : Not Supported
SoftwareRev                     : Not Supported
SerialNum                       : Not Supported
Manufacturer Name               : Not Supported
Model Name                      : Not Supported
Asset Tracking Identifier       : Not Supported 
 
Total entries displayed: 1 

note


  • For viewing the neighbor information of Device2 and Device3, refer to Device1.