LLDP Configuration I Table of Contents Table of Contents Chapter 1 Link Layer-2 Discovery Protocol (LLDP)...................................................................................1 1.1 LLDP Overview.................................................................................................................................1 1.1.1 Initializing the Protocol.........................................................................................................1 1.1.2 Initializing LLDP Transmit Mode.........................................................................................1 1.1.3 Initializing LLDP Reception Mode...................................................................................... 2 1.1.4 LLDP PDU Packet Structure Description..........................................................................2 1.2 LLDP Configuration Task List......................................................................................................... 3 1.3 LLDP Configuration Tasks...............................................................................................................4 1.3.1 Disabling/enablingLLDP...................................................................................................... 4 1.3.2 Configuringholdtime..............................................................................................................4 1.3.3 Configuring Timer..................................................................................................................5 1.3.4 Configuring Reinit................................................................................................................. 5 1.3.5 Configuring the To-Be-SentTLV..........................................................................................6 1.3.6 Specifying the Port’s Configuration and Selecting the To-Be-Sent Expanded TLV....7 1.3.7 Configuring the Transmission or Reception Mode.......................................................... 9 1.3.8 Specifying the Management IP Address of a Port.........................................................10 1.3.9 Sending Trap Notification to mib Database....................................................................10 1.3.10 Configuring the Location Information............................................................................ 11 1.3.11 Specifying a Port to Set the Location Information.......................................................13 1.3.12 Configuring Show-Relative Commands........................................................................14 1.3.13 Configuring the Deletion Commands............................................................................14 1.4 Configuration Example..................................................................................................................14 1.4.1 Network Environment Requirements...............................................................................14 1.4.2 Network Topology............................................................................................................... 15 1.4.3 Configuration Procedure....................................................................................................15 II LLDP Configuration Chapter 1 Link Layer-2 Discovery Protocol (LLDP) 1.1 LLDP Overview 802.1ABThe link layer discovery protocol (LLDP) at 802.1AB helps to detect network troubles easily and maintain the network topology. It enables the neighboring device to sending out notice of its own state information to other devices and each port of all devices stores information of defining themselves. If necessary, they can also sending update information to the neighboring devices and the neighboring devices will store the information in standard SNMP MIBs. The network management system can inquire the connection of current layer-2 from MIB. LLDPcan neither configure nor control the network element or traffic. It only reports configuration of layer-2. Simply, LLDP is a neighbor discovery protocol. It sets a standard method for the Ethernet network device, such as switches, routers and WAPs. It enables the Ethernet device notify its existence to other nodes and save the discovery information of neighboring devices. For instance, all information including the device configuration and the device identification can be notified through the protocol. Specifically, LLDP defines a universal notification information set, a transmission notification protocol and a method of storing all notification information. The device need to notify the notification information can transmit many notifications in a LAN data packet. The transmission type is TLV. TLV has three compulsory types: Chassis ID TLV, Port ID TLV and Time To Live TLV; five optional types: Port Description, System Name, System Description, System Capabilities and Management Address; and three extension TLVs: DOT1 (Port Vlan ID, Protocol Vlan ID, Vlan Name, Protocol Identity); DOT3 (MAC/PHY Configuration/Status, Power Via MDI, Link Aggregation, Max Frame Size); MED (MED Capability, Network Policy, Location Identification, Extended Power-via-MDI, Inventory (Hardware Revision, Firmware Revision, Software Revision, Serial Number, Manufacturer Name, Mode Name, Assert ID). LLDP is a unidirectional protocol. One LLDP agent transmits its state information and functions through its connected MSAP, or receives the current state information or function information about the neighbor. However, the LLDP agent cannot request any information from the peer through the protocol. During message exchange, message transmission and reception do not affect each other. You can configure only message transmission or reception or both. 1.1.1 Initializing the Protocol LLDP can work under three modes: transmit-only, receive-only and transmit-and-receive. The default mode is transmit-and-receive. 1.1.2 Initializing LLDP Transmit Mode Set LLDP to transmit-only in the interface mode. In transmit-only mode, the interface transmits LLDP packets when the state or value of one or more information elements (management object) of the local system change or the transmission timer is timeout. The interface will not transmit LLDP packets when disabling the function. 1 LLDP Configuration 1.1.3 Initializing LLDP Reception Mode Set LLDP to receive-only in the interface mode. In receive-only mode, the interface can receive LLDP packets from the neighbors and save tlv into the remote MIB. The interface will drop LLDP packets when disabling the function. 1.1.4 LLDP PDU Packet Structure Description In accordance with the order, LLDP PDU includes three compulsory TLVs in the front, one or more optional TLV in the middle and LLDPUD TLV in the end. As shown in figure 1: M must include TLV. Figure 1 LLDP PDU Format (1) Three compulsory TLVs should be listed in sequence at the beginning of LLDP PDU: 1. Chassis ID TLV 2. Port ID TLV 3. Time To Live TLV (2) Optional TLV selected by the network management can be listed randomly. 4. Port Description 5. System Name 6. System Description 7. System Capabilities 8. Management Address Three extensions (including DOT1): 9. Port Vlan ID 10. Protocol Vlan ID 11. Vlan Name 12. Protocol Identity 2 LLDP Configuration DOT3: 13. MAC/PHY Configuration/Status 14. Power Via MDI 15. Link Aggregation 16. Max Frame Size MED (TLV of MED is not transmitted by default. LLDP packets with MED TLV will be transmitted only when LLDP packets with MED TLV are received.) 17. MED Capability (TLV is compulsory if MED TLV is added.) 18. Network Policy 19. Location Identification 20. Extended Power-via-MDI 21. Inventory(包含 Hardware Revision、Firmware Revision、Software Revision、 Serial Number、Manufacturer Name、Mode Name、Assert ID) (3) The end TLV should be the last one in LLDP PDU. 1.2 LLDP Configuration Task List  Disabling/enabling LLDP  Configuring holdtime  Configuring Timer  Configuring Reinit  Configuring the To-Be-Sent TLV  Configuring the Transmission or Reception Mode  Specifying the Management IP Address of a Port  Sending Trap Notification to mib Database  Configuring Show-Relative Commands  Configuring the Deletion Commands 3 LLDP Configuration 1.3 LLDP Configuration Tasks 1.3.1 Disabling/enablingLLDP LLDP is disabled by default. You need start up LLDP before it runs. After enabling LLDP, the local port regularly forwards lldp frame to notify the information of the opposite local port. Run the following command in global configuration mode to enable LLDP: Procedur Command Purpose e Step1 config Enters the global configuration mode. Step2 lldp run Runs LLDP. Run the following command to disable LLDP: Procedur Command Purpose e Step1 config Enters the global configuration mode. Step2 no lldp run Disables LLDP. Caution: Only lldp function is enabled can the system process lldp packets. Otherwise, lldp frame will be directly forwarded. 1.3.2 Configuringholdtime In normal condition, the remote information stored in MIB will update before aging. But the frame may loss in sending and causes the information ages. For avoiding this, you need to set the value of TTL and ensure the update LLDP frame is forwarded time after time. You can control the timeout time of transmitting the LLDP message through modifying holdtime: Run the following command in global configuration mode to configure holdtime of LLDP: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 lldp holdtime time Configures the timeout time of LLDP. The value range from 0 to 65535. The default value is 120s. Resumes the timeout time to the default value: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 no lldp holdtime Resumes the timeout time to the default value, 120 seconds. 4 LLDP Configuration Caution: To ensure the former neighbor information is not lost owing to aging when receiving next LLDP frame, the timeout time should be longer than the LLDP packet transmit interval. 1.3.3 Configuring Timer You can control the interval of the switch to transmit message by configuring the timer of LLDP. Run the following command in global configuration mode to configure timer of LLDP: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 lldp timer time Configures the interval of message transmission of LLDP. The value ranges from 5 to 65534. The default time is 30 seconds. Resumes the default interval, that is, 30 seconds. Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 no lldp timer Resumes the default interval, that is, 30 seconds. 1.3.4 Configuring Reinit LLDP information will be forwarded automatically in two conditions: first, the status or value of one or more information elements (management objects) change; second, the sending timer timeouts. A single information change cause the LLDP packet is forwarded and a series of information change may cause many LLDP frames forwarded, but a frame can only report one change. For avoiding this, the web management defines the interval of two continuous LLDP frames. You can control the interval of the switch to continuously transmit two messages by configuring reinit of LLDP. Run the following command in global configuration mode to configure reinit of LLDP: Procedur Command Purpose e Step1 config Enters the global configuration mode. Step2 lldp reinit time Configures the interval of LLDP to continuously transmit message. The value ranges from 2 to 5. The default time is 2 seconds. Resumes the default value of reinit. Procedur Command Purpose e 5 LLDP Configuration Step1 config Enters the global configuration mode. Step2 no lldp reinit Resumes the default interval of continuously transmitting message; the default interval value is two seconds. 1.3.5 Configuring the To-Be-SentTLV You can choose TLV which requires to be sent by configuring tlv-select of LLDP. By default, all TLVs are transmitted. Run the following commands in global configuration mode to add or delete tlv of LLDP: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 lldp tlv-select management-address This step is optional. Transmits the management address tlv. The management address is usually layer-3 IP address which should be easy to use. Step3 lldp tlv-select port-description This step is optional. Transmits the port description tlv. The port description uses number or letters for description. Step4 lldp tlv-select system-capabilities This step is optional. Transmits the system performance tlv. The system performance refers to the system of transmitting packets such as the switch or router. Step5 lldp tlv-select system-description This step is optional. Transmits system description tlv. The system description is consist of texts including numbers and letters. The system description should include the full name of the system, the hardware version, the software system and the network software. Step6 lldp tlv-select system-name This step is optional. Transmits system name tlv. The system name domain is a specified name consisted of numbers and letters. The name of the system should be the name of the system manager. That is the name of the switch. Run the following commands in global configuration mode to delete to-be-sent TLV: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 no lldp tlv-select management-address This step is optional. Transmits the management address tlv. The management 6 LLDP Configuration address is usually layer-3 IP address which should be easy to use. Step3 no lldp tlv-select port-description This step is optional. Transmits the port description tlv. The port description uses number or letters for description. Step4 no lldp tlv-select system-capabilities This step is optional. Transmits the system performance tlv. The system performance refers to the system of transmitting packets such as the switch or router. Step5 no lldp tlv-select system-description This step is optional. Transmits system description tlv. The system description is consist of texts including numbers and letters. The system description should include the full name of the system, the hardware version, the software system and the network software. Step6 no lldp tlv-select system-name This step is optional. Transmits system name tlv. The system name domain is a specified name consisted of numbers and letters. The name of the system should be the name of the system manager. That is the name of the switch. 1.3.6 Specifying the Port’s Configuration and Selecting the To-Be-Sent Expanded TLV Through the configuration of dot1-tlv-select/ dot3-tlv-select/ med-tlv-select of LLDP on a port, you can select expanded TLV to be sent. By default, TLV of both DOT1 and DOT3 will be transmitted while TLV of MED will not be transmitted. Run the following commands in port configuration mode to add the to-be-sent TLV: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 interface intf-type intf-id Enters the interface configuration mode. Step3 lldp dot1-tlv-select port-vlan-id (Optional) Sends the 802.1-defined TLV and notifies the PVID of a port. Step4 lldp dot1-tlv-select protocol-vlan-id (Optional) Sends the 802.1-defined TLV and notifies the PPVID of a port. Step5 lldp dot1-tlv-select vlan-name (Optional) Sends the 802.1-defined TLV and notifies the VLAN name of a port. Step6 lldp dot3-tlv-select macphy-confg (Optional) Sends the 802.3-defined TLV. The following contents are contained: a) The bit rate and the communication mode (duplex) on the physical layer; 7 LLDP Configuration b) Current duplex and the set bit rate; c) Showing whether the setting is the results of auto-negotiation in the initial connection phase or is a compulsory manual behavior; Step7 lldp dot3-tlv-select power (Optional) Sends the 802.3-defined TLV and shows the interface allows the power supply connecting to the non-power system through the link. Step8 lldp dot3-tlv-select link-aggregation (Optional) Sends the 802.3-defined TLV and specifies a port to identify the aggregation if the link can be aggregated. Step9 lldp dot3-tlv-select max-frame-size (Optional) Sends the 802.3-defined TLV and specifies the size of the maximum frame on a port(byte) . Step10 lldp med-tlv-select network-policy (Optional) Sends the MED-defined TLV and the interface can effectively discover and diagnose VLAN configured error-matching flow and the attribute of layer-2 and layer-3 Step11 lldp med-tlv-select location (Optional) Sends the MED-defined TLV and specifies the address. a) coordinate-based LCI, which is defined in IETF 3825[6]; b) city's address LCI, which is defined in IETF (refer to Annex B); c) ELIN code of the urgency call service; Step12 lldp med-tlv-select (Optional) Sends the MED-defined TLV and power-management shows the information of power supply. Step13 lldp med-tlv-select inventory (Optional) Sends the MED-defined TLV and shows the attribute of detailed inventory. Run the following commands in global configuration mode to delete to-be-sent TLV: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 interface intf-type intf-id Enters the interface configuration mode. Step3 no lldp dot1-tlv-select port-vlan-id (Optional) Sends the 802.1-defined TLV and notifies the PVID of a port. Step4 no lldp dot1-tlv-select protocol-vlan-id (Optional) Sends the 802.1-defined TLV and notifies the PPVID of a port. Step5 no lldp dot1-tlv-select vlan-name (Optional) Sends the 802.1-defined TLV and notifies the VLAN name of a port. Step6 no lldp dot3-tlv-select macphy-confg (Optional) Sends the 802.3-defined TLV. The following contents are contained: 8 LLDP Configuration a) The bit rate and the communication mode (duplex) on the physical layer; b) Current duplex and the set bit rate; c) Showing whether the setting is the results of auto-negotiation in the initial connection phase or is a compulsory manual behavior; Step7 no lldp dot3-tlv-select power (Optional) Sends the 802.3-defined TLV and shows the interface allows the power supply connecting to the non-power system through the link. Step8 no lldp dot3-tlv-select (Optional) Sends the 802.3-defined TLV and link-aggregation specifies a port to identify the aggregation if the link can be aggregated. Step9 no lldp dot3-tlv-select max-frame-size (Optional) Sends the 802.3-defined TLV and specifies the size of the maximum frame on a port(byte) . Step10 no lldp med-tlv-select network-policy (Optional) Sends the MED-defined TLV and the interface can effectively discover and diagnose VLAN configured error-matching flow and the attribute of layer-2 and layer-3. Step11 no lldp med-tlv-select location (Optional) Sends the MED-defined TLV and specifies the address. a) coordinate-based LCI, which is defined in IETF 3825[6]; b) city's address LCI, which is defined in IETF (refer to Annex B); c) ELIN code of the urgency call service; Step12 no lldp med-tlv-select (Optional) Sends the MED-defined TLV and power-management shows the information of power supply. Step13 no lldp med-tlv-select inventory (Optional) Sends the MED-defined TLV and shows the attribute of detailed inventory. 1.3.7 Configuring the Transmission or Reception Mode LLDP can work under three modes: transmit-only, receive-only and transmit-and-receive. By default, LLDP works under the transmit-and-receive mode. You can modify the working mode of LLDP through the following commands. Run the following commands in the interface configuration mode and set lldp to the transmit-and-receive mode. Procedure Command Purpose Step1 config Enters the global configuration mode. 9 LLDP Configuration Step2 interface intf-type intf-id Enters the interface configuration mode. Step3 no lldp transmit Disables the transmit-only mode of the port. Step4 no lldp receive Disables the receive-only mode of the port. Run the following commands in the interface configuration mode and set lldp to the transmit-and-receive mode. Procedu re Command Purpose Step1 config Enters the global configuration mode. Step2 interface intf-type intf-id Enters the interface configuration mode. Step3 lldp transmit Enables the transmit mode of the port. Step4 lldp receive Enables the receive mode of the port. Note: Except the above mode, the interface can also be configured to the transmit-only mode or the receive-only mode. 1.3.8 Specifying the Management IP Address of a Port In port configuration state, you can randomly configure the management address of the port, from which the LLDP packets are transmitted. This management address should be an IP address related with this port, and only in this way the normal communication of this port can be guaranteed. Run the following commands in port configuration mode to set the management IP address: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 interface intf-type intf-id Enters the interface configuration mode. Step3 lldp management-ip A.B.C.D Sets the management IP address of a port. Note: Both the no lldp command and the management-ip command can be used to resume the default management address of the port and the default management address is the IP address of the VLAN interface that corresponds to the PVID port. When the corresponding VLAN interface does not exist, the management address is 0.0.0.0. 1.3.9 Sending Trap Notification to mib Database Sending Trap Notification to lldp mib databaseor ptopomib database. Run the following commands in the global configuration mode to sending trap notification to lldp mib database or ptopo mib database. Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 lldp trap-send lldp-mib Sends trap notification to lldp mib database. 10 LLDP Configuration Sends trap notification to ptopo mib Step3 lldp trap-send ptopo-mib database. Note: Both the no lldp command and the management-ip command can be used to resume the default management address of the port and the default management address is the IP address of the VLAN interface that corresponds to the PVID port. When the corresponding VLAN interface does not exist, the management address is 0.0.0.0. 1.3.10 Configuring the Location Information The location configuration is used to determine the address of the local machine. Run the following commands in global configuration mode to configure the location information: Procedure Command Purpose Step1 config Enters the global configuration mode. Sets the location elin information, in which id is the elin identifier number and WORD stands for the elin information, which ranges Step2 location elin identifier id WORD from 10 to 25 bytes. Step3 location civic identifier id Enters the location configuration mode. Step4 language WORD Sets the language. Sets the state’s (provincial) name, such as Step5 state WORD shanghai. Step6 county WORD Sets the name of a county. Step7 city WORD Sets the name of a city. Step8 division WORD Sets the name of a division. Step9 neighborhood WORD Sets the name of neighborhood. Step10 street WORD Sets the name of a street. Sets the direction of a main street, such as N Step11 leading-street-dir WORD (north). Step12 trailing-street-suffix WORD Sets the suffix of a small street, such as SW. Step13 street-suffix WORD Sets the suffix of a street, such as platz. Step14 number WORD Sets the street number, such as number 123. Sets the suffix of the street number, such as Step15 street-number-suffix WORD number 1/2 of A road. Sets the landmark, such as Colombia Step16 landmark WORD University. Step17 additional-location WORD Sets the additional location. Sets the information about a resident, such Step18 name WORD as Joe’s haircut shop. 11 LLDP Configuration Step19 postal-code WORD Sets the postal code. Step20 building WORD Sets the information about a building. Step21 unit WORD Sets the information about a unit. Step22 floor WORD Sets the information about a floor. Step23 room WORD Sets the information about a room. Step24 type-of-place WORD Sets the type of a place, such as office. Step25 postal-community WORD Sets the name of a postal office. Sets the name of a postal box, such as Step26 post-office-box WORD 12345. Step27 additional-code WORD Sets the additional code. Step28 country WORD Sets the name of a country. Step29 script WORD Sets the script. Run the following commands in global configuration mode to delete the location information: Procedu re Command Purpose Step1 config Enters the global configuration mode. Deletes the location enlin information of elin Step2 no location elin identifier id identifier. Deletes the location enlin information of id, Step3 no location civic identifier id which is the number of civic identifier. Step4 location civic identifier id Enters the location configuration mode. Step5 no language Deletes the language. Deletes the state’s (provincial) name, such Step6 no state as shanghai. Step7 no county Deletes the name of a county. Step8 no city Deletes the name of a city. Step9 no division Deletes the name of a division. Step10 no neighborhood Deletes the name of neighborhood. Step11 no street Deletes the name of a street. Deletes the direction of a main street, such Step12 no leading-street-dir as N (north). Deletes the suffix of a small street, such as Step13 no trailing-street-suffix SW. Step14 no street-suffix Deletes the suffix of a street, such as platz. Deletes the street number, such as number Step15 no number 123. 12 LLDP Configuration Deletes the suffix of the street number, such Step16 no street-number-suffix as number 1/2 of A road. Deletes the landmark, such as Colombia Step17 no landmark University. Step18 no additional-location Deletes the additional location. Deletes the information about a resident, Step19 no name such as Joe’s haircut shop. Step20 no postal-code Deletes the name of a postal office. Step21 no building Deletes the information about a building. Step22 no unit Deletes the information about a unit. Step23 no floor Deletes the information about a floor. Step24 no room Deletes the information about a room. Step25 no type-of-place Deletes the type of a place, such as office. Step26 no postal-community Deletes the name of a postal office. Deletes the name of a postal box, such as Step27 no post-office-box 12345. Step28 no additional-code Deletes the additional code. Step29 no country Deletes the name of a country. Step30 no script Deletes the script. 1.3.11 Specifying a Port to Set the Location Information The following commands can be used to set the location information for a port and bear the location information in TLV. Run the following commands in port configuration mode to set the location information: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 interface intf-type intf-id Enters the interface configuration mode. Step3 location civic id Sets the location information of civic id. Step4 location elin id Sets the location information of elin id. Run the following commands in port configuration mode to delete the location information: Procedure Command Purpose Step1 config Enters the global configuration mode. Step2 interface intf-type intf-id Enters the interface configuration mode. 13 LLDP Configuration Step3 no location civic Deletes the location information of civic id. Step4 no location elin Deletes the location information of elin id. 1.3.12 Configuring Show-Relative Commands You can observe the information about the neighbor, statistics or port state received by the LLDP module by running show-relative commands.. Run the following commands in EXEC or global configuration mode: Command Purpose Displays the error information about the LLDP Show lldp errors module. Show lldp interface interface-name Displays the information about port state, that is, the transmission mode and the reception mode. Show lldp neighbors Displays the abstract information about the neighbor. Show lldp neighbors detail Displays the detailed information about the neighbor. Show lldp traffic Displays all received and transmitted statistics information. Show location elin Displays the information of location elin. Show location civic Displays the information of location civic. 1.3.13 Configuring the Deletion Commands You can delete the received neighbor lists and all statistics information by running the following command. Run the following commands in EXEC mode: Command Purpose clear lldp counters Deletes all statistics data. clear lldp table Deletes all received neighbor information. 1.4 Configuration Example 1.4.1 Network Environment Requirements Configure LLDP protocol on the port connecting two switches. 14 LLDP Configuration 1.4.2 Network Topology Figure 2 Network Topology 1.4.3 Configuration Procedure 1. Basic Settings Configuring switch S1: Switch_config#lldp run Switch_config# Configuring switch S2: Switch_config#lldp run Switch_config# The information of Neighbor B will be displayed on Switch A about 1 minute later. MED-TLV information is not sent by default. S1: Switch_config#show lldp neighbors Capability Codes: (R)Router,(B)Bridge,(C)DOCSIS Cable Device,(T)Telephone (W)WLAN Access Point, (P)Repeater,(S)Station,(O)Other Device-ID Local-Intf Hldtme Port-ID Capability Switch Gig0/8 99 Gig0/1 B Total entries displayed: 1 Switch_config#show lldp neighbors detail 15 LLDP Configuration chassis id: 00e0.0fac.32ff port id: Gig0/1 port description: GigaEthernet0/1 system name: Switch system description: SWITCH Software, Version 4.1.0B Serial: S24090103 Compiled: 2011-9-21 9:24:8 by WRL Time remaining: 96 system capabilities: R B enabled capabilities: B Management Address: IP: 90.0.0.21 Port VLAN ID: 1 PPVID: 1 VLAN 1 name: Default Auto Negotiation: supported,enabled Physical media capabilities: 1000baseX(FD) 1000baseX(HD) 100baseTX(FD) 100baseTX(HD) Operational MAU type: 2 pair category 5 UTP, full duplex mode(16) Power Via MDI: MDI power support -- 16 LLDP Configuration PSE MDI power support: support Port class: PSE PSE MDI power state: enabled PSE pairs selection control ability: can not be controlled PSE power pair: signal Power Classification: Class 0 Link Aggregation: Aggregation capability: capable of being aggregated Aggregation status: not currently in aggregation Maximum frame size: 1500 ------------------------------------------ Total entries displayed: 1 2. TLV Configuration Configuring switch S1: Switch_config#lldp run Switch_config# Configuring switch S2: Switch_config#lldp run Switch_config# no lldp tlv-select system-name Switch_config#int g0/8 Switch_config_g0/8#no lldp dot1-tlv-select port-vlan-id Switch_config_g0/8#no lldp dot3-tlv-select max-frame-size Switch_config_g0/8# The information of Neighbor B will be displayed on Switch A about 1 minute later, which is highlighted in red. To differentiate, the information displayed in the basic configuration of 1.4.3.1 is highlighted in blue. 17 LLDP Configuration S1: Switch_config#show lldp neighbors Capability Codes: (R)Router,(B)Bridge,(C)DOCSIS Cable Device,(T)Telephone (W)WLAN Access Point, (P)Repeater,(S)Station,(O)Other Device-ID Local-Intf Hldtme Port-ID Capability Switch Gas0/8 92 Gig0/1 R B Total entries displayed: 1 Switch_config#show lldp neighbors detail chassis id: 00e0.0fac.32ff port id: Gig0/1 port description: GigaEthernet0/1 system name: -- not advertised system description: SWITCH Software, Version 4.1.0B Serial: S24090103 Compiled: 2011-9-21 9:24:8 by WRL Time remaining: 95 system capabilities: R B enabled capabilities: B Management Address: IP: 90.0.0.21 Port VLAN ID -- not advertised PPVID: 1 18 LLDP Configuration VLAN 1 name: Default Auto Negotiation: supported,enabled Physical media capabilities: 1000baseX(FD) 1000baseX(HD) 100baseTX(FD) 100baseTX(HD) Operational MAU type: 2 pair category 5 UTP, full duplex mode(16) Power Via MDI: MDI power support -- PSE MDI power support: support Port class: PSE PSE MDI power state: enabled PSE pairs selection control ability: can not be controlled PSE power pair: signal Power Classification: Class 0 Link Aggregation: Aggregation capability: capable of being aggregated Aggregation status: not currently in aggregation ------------------------------------------ Total entries displayed: 1 3. Location Configuration Configuring switch S1: Switch_config#lldp run Switch_config# 19 LLDP Configuration Configuring switch S2: Switch_config#lldp run Switch_config#location elin identifier 1 1234567890 //Configuring elin information Switch_config#location civic identifier 1 //Entering location configuration mode Switch_config_civic#language English Switch_config_civic#city Shanghai Switch_config_civic#street Curie Switch_config_civic#script EN //The above configured is civic information Switch_config_civic#quit Switch_config#int g0/8 Switch_config_g0/8#location elin 1 //Set elin id for the interface Switch_config_g0/8#location elin 1 //Set civic id for the interface Switch_config_g0/8#show location elin //Display elin configuration information elin information: elin 1: 1234567890 total: 1 Switch_config_g0/8#show location elin //Display civic configuration information civic address information: identifier: 1 City: Shanghai Language: English Script: EN Street: Curie ------------------------------------- 20 LLDP Configuration total: 1 Switch_config_g0/8# The information of Neighbor B will be displayed on Switch A about 1 minute later. S1: Switch_config#show lldp neighbors Capability Codes: (R)Router,(B)Bridge,(C)DOCSIS Cable Device,(T)Telephone (W)WLAN Access Point, (P)Repeater,(S)Station,(O)Other Device-ID Local-Intf Hldtme Port-ID Capability Switch Gig0/8 115 Gig0/1 B Total entries displayed: 1 Switch_config#show lldp neighbors detail chassis id: 00e0.0fac.32ff port id: Gig0/1 port description: GigaEthernet0/1 system name: Switch system description: SWITCH Software, Version 4.1.0B Serial: S24090103 Compiled: 2011-9-21 9:24:8 by WRL Time remaining: 109 system capabilities: R B enabled capabilities: B Management Address: 21 LLDP Configuration IP: 90.0.0.21 Port VLAN ID: 1 Auto Negotiation: supported,enabled Physical media capabilities: 1000baseX(FD) 1000baseX(HD) 100baseTX(FD) 100baseTX(HD) Operational MAU type: 2 pair category 5 UTP, full duplex mode(16) Power Via MDI: MDI power support -- PSE MDI power support: support Port class: PSE PSE MDI power state: enabled PSE pairs selection control ability: can not be controlled PSE power pair: signal Power Classification: Class 0 MED Information: MED Codes: (CA)Capabilities, (NP)Network Policy, (LI)Location Identification (PS)Power via MDI ¨CPSE, (PD)Power via MDI ¨CPD, (IN)Inventory Hardware Revision: 0.4.0 Software Revision: 4.1.0B Serial Number: S24090103 Manufacturer Name: 22 LLDP Configuration Model Name: SWITCH Asset ID: S24090103 Capabilities: CA,NP,LI,PS,IN Device type: Network Connectivity Network Policy: Voice Policy: Unknown Power requirements: Type: PSE Device Source: Unknown Priority: Low Value: 150(0.1 Watts) Civic address location: Language: English City: Shanghai Street: Curie Script: EN ELIN location: ELIN: 1234567890 ------------------------------------------ Total entries displayed: 1 Switch_config# 23