Configuring LLDP
By configuring LLDP on devices, you can obtain detailed information about the network devices, such as topology and interface status.
Prerequisites
- The health status of the storage system is normal.
- The host or switch supports and has enabled the LLDP.
Context
- The Link Layer Discovery Protocol (LLDP) is a standard Layer 2 topology discovery protocol defined in IEEE 802.1ab. LLDP allows a device to send local management information such as management IP address, device ID, and port ID to neighbors. Neighbors save the received information in their management information bases (MIBs). The network management system (NMS) can search required information in MIBs to determine link status.
- If the host or switch connected to the front-end service port of the storage system also supports the LLDP, the host or switch can discover the port information of the storage system through the LLDP.
Precautions
- Only storage systems of V500R007C73SPC100 and later versions support link discovery between storage systems and switches through the LLDP.
- For Ethernet ports on a 4 U device, only their owning controller sends LLDP packets. In addition, the peer device only displays the neighbor information of the owning controller.
Procedure
- In developer mode, run the change system lldp working_mode=? command to change the LLDP working mode.
In the preceding command, the default value of the working_mode field is lldp_mode_disable. Its value can be any of the following:
- lldp_mode_disable: indicates that LLDP packets can neither be sent nor received.
- lldp_mode_tx: indicates that LLDP packets can only be sent.
- lldp_mode_rx: indicates that LLDP packets can only be received.
- lldp_mode_txrx: indicates that LLDP packets can be sent and received.
Example:
developer:/>change system lldp working_mode=lldp_mode_txrx WARNING: You are about to change the LLDP working mode. After the working mode of the LLDP protocol is changed, the host or switch may discover the array port information through the LLDP protocol, and the host or switch information may also be discovered by the array through the LLDP protocol. Suggestion: Before performing this operation, ensure that you want to perform this operation. Have you read warning message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
You can run the change user_mode current_mode user_mode=developer command to enter the developer mode.
- In developer mode, run the show system lldp command to check whether the LLDP working mode is successfully changed.
Example:
developer:/>show system lldp Working Mode : lldp_mode_txrx
- In the diagnostic view, run the eam showlldpallinfo -devm or eam showlldpallinfo -app_data command to view the neighbor information of the Ethernet ports.
The commands vary with product models and versions. If an error message is displayed in the command output, try the other command.
Example:
admin:/diagnose>eam showlldpallinfo -devm Show lldp info begin. ----Show port 0x1000000020100 remote info---- sys chassid = 74:5a:aa:ce:c4:90 sys name = A03-b17 sys desc = S5710-52C-EI Huawei Versatile Routing Platform Software VRP (R) software, Version 5.130 (S5710 V200R003C00SPC300) Copyright (C) 2000-2013 HUAWEI TECH CO., LTD port ID = 74:5a:aa:ce:c4:90 port name = GigabitEthernet0/0/43 ----Show port 0x1000000020101 remote info---- sys chassid = 74:5a:aa:ce:c4:90 sys name = A03-b17 sys desc = S5710-52C-EI Huawei Versatile Routing Platform Software VRP (R) software, Version 5.130 (S5710 V200R003C00SPC300) Copyright (C) 2000-2013 HUAWEI TECH CO., LTD port ID = 74:5a:aa:ce:c4:90 port name = GigabitEthernet0/0/45 ----Show port 0x1000000020102 remote info---- sys chassid = 74:5a:aa:ce:c4:90 sys name = A03-b17 sys desc = S5710-52C-EI Huawei Versatile Routing Platform Software VRP (R) software, Version 5.130 (S5710 V200R003C00SPC300) Copyright (C) 2000-2013 HUAWEI TECH CO., LTD port ID = 74:5a:aa:ce:c4:90 port name = GigabitEthernet0/0/29 ----Show port 0x1000000020103 remote info---- sys chassid = 74:5a:aa:ce:c4:90 sys name = A03-b17 sys desc = S5710-52C-EI Huawei Versatile Routing Platform Software VRP (R) software, Version 5.130 (S5710 V200R003C00SPC300) Copyright (C) 2000-2013 HUAWEI TECH CO., LTD port ID = 74:5a:aa:ce:c4:90 port name = GigabitEthernet0/0/34 ----Show port 0x1000000020500 remote info---- Public info is NULL. ----Show port 0x1000000020501 remote info---- Public info is NULL. ----Show port 0x1000000022000 remote info---- Public info is NULL. ----Show port 0x1000000022001 remote info---- Public info is NULL. Show lldp info end.
In developer mode, type debug and press Enter to go to the diagnostic view.