No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - System Management 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - System Management
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Basic LLDP Functions

Configuring Basic LLDP Functions

After devices are configured with LLDP, the NMS can obtain network topology information, and information about the capabilities, management address, device ID, and interface ID of each device.

Applicable Environment

LLDP is used to obtain neighbor information and discover network topology. As shown in Figure 4-2, if the NMS needs to collect topology information about DeviceA and DeviceB, you can enable LLDP for DeviceA and DeviceB. DeviceA and DeviceB send packets encapsulated with status information to each other, allowing the NMS to obtain the topology information.

Figure 4-2 Networking diagram for the LLDP application

Pre-configuration Tasks

Before configuring LLDP, complete the following tasks:

  • Configuring reachable routes between devices and the NMS and configuring SNMP parameters

  • Configuring an IP address for LLDP management on a device

Configuration Procedures

Figure 4-3 Flowchart for configuring basic LLDP functions

Enabling LLDP

When a device and its neighbors are all enabled with LLDP, the device notifies the neighbors of its status and obtains their status information by exchanging LLDP packets with them.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run lldp enable

    LLDP is enabled globally.

    LLDP can be enabled globally or on an interface. The relationships are as follows:
    • LLDP is disabled on all interfaces after LLDP is disabled globally.
    • An interface can send and receive LLDP packets only when LLDP is enabled globally and on the interface.
    • The command to enable or disable LLDP on an interface is invalid when LLDP is disabled globally.
    NOTE:
    • If some interfaces need to have LLDP enabled but some need to have LLDP disabled, you can globally enable LLDP and run the undo lldp enable command in the interface view to disable LLDP for the required interfaces.

    • For Eth-Trunk interfaces, LLDP can be configured only on Eth-Trunk member interfaces. Enabling or disabling LLDP on an Eth-Trunk member interface does not affect other member interfaces.

    • Interfaces that support LLDP must be physical interfaces. Logical interfaces such as VLANIF and Eth-Trunk interfaces do not support LLDP.

    • Interfaces do not support LLDP packets carrying the VLAN tag. If LLDP is used and the peer device is a non-Huawei router, configure the peer device not to carry the VLAN tag in sent LLDP packets.

  3. Run commit

    The configuration is submitted.

(Optional) Configuring an LLDP Management Address

This section describes how to configure an LLDP management address, so that the NMS can identify a device based on this management address to detect network topology.

Context

The LLDP management address is carried in the Management Address TLV field in LLDP packets. It is used by the NMS to identify a device, and this helps to detect network topology and facilitate network management.

The LLDP management address is selected based on the following principles:
  1. If the LLDP management address has been configured using the lldp management-address command, the device uses this LLDP management address.
  2. If no LLDP management address has been configured using the lldp management-address command, and the management address is not bound to any interface, the device searches the IP address list and automatically specifies an IP address as the LLDP management address. If no default IP address is available, the device uses the bridge MAC address as the LLDP management address.
    NOTE:
    The device searches IP addresses of the following interfaces in sequence for the LLDP management address: Loopback interface, management network interface, and VLANIF interface. The device selects the smallest IP address of the same type of interface as the LLDP management address.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run lldp management-address ip-address

    The LLDP management address is configured.

  3. Run commit

    The configuration is committed.

(Optional) Configuring Types of TLVs Allowed to be Advertised by LLDP

During the process of exchanging Link Layer Discovery Protocol (LLDP) packets between devices, the LLDP data unit (LLDPDU) encapsulated in an LLDP packet carries different type-length-values (TLVs) as needed. A device sends its status information and receives neighbor status information based on these different TLVs.

Background Information

TLVs that can be encapsulated into an LLDPDU include basic TLVs, TLVs defined by IEEE 802.1, and TLVs defined by IEEE 802.3. Descriptions about the three types of TLVs are as follows:
  • Basic TLVs implement basic LLDP functions. Except for optional management-address, port-description, system-capability, system-description, and system-name TLVs, basic TLVs also include four mandatory TLVs that must be encapsulated into an LLDPDU to be advertised. For details, see "LLDP Feature Description" in the NE20E Feature Description - System Management.
  • TLVs defined by IEEE 802.1, and TLVs defined by IEEE 802.3 are optional TLVs used to enhance the LLDP function. You can decide whether to encapsulate these TLVs into an LLDPDU to be advertised based on their functions and your actual requirements. For details, see "LLDP Feature Description" in the NE20E Feature Description - System Management.
NOTE:

When configuring a device to advertise basic TLVs, TLVs defined by IEEE 802.1, and TLVs defined by IEEE 802.3:

  • If you specify the all parameter, all optional TLVs of the same type will be advertised.

  • If you do not specify the all parameter, only one optional TLV of the same type can be configured and advertised at a time. You can configure the device repeatedly to advertise multiple optional TLVs of different types.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run lldp tlv-enable { basic-tlv { all | management-address | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | protocol-identity } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size } }

    Types of TLVs allowed to be advertised by LLDP are configured.

  4. Run commit

    The configuration is submitted.

(Optional) Optimizing LLDP Performance

This section describes how to adjust LLDP parameters based on the load of a network to reduce the consumption of system resources and optimize the LLDP performance.

Background Information

LLDP parameters include: interval for sending LLDP packets, delay for sending LLDP packets, time multiplier of device information held in neighbors, delay for initializing LLDP on interfaces, and number of LLDP packets being sent in quick succession to neighbors. Values of these parameters should be appropriate. You can adjust these parameters based on the load of a network. Table 4-1 describes the usage scenarios of LLDP parameters.
Table 4-1 LLDP parameters

Parameter Name

Parameter Description

Value Description

message-transmission interval

Sets the interval for sending LLDP packets to adjust the frequency of network topology discovery.

  • The longer the interval, the lower the frequency of LLDP packets being exchanged. This saves system resources. However, if the interval for sending LLDP packets is too long, the device cannot notify neighbors of its status in a timely manner, reducing network topology discovery efficiency.
  • The shorter the interval, the higher the frequency of the local status information being sent to neighbors. This ensures prompt network topology discovery. However, if the interval is too short, LLDP packets are exchanged too frequently, increasing the system load and wasting resources.

message-transmission delay

Sets the delay for sending LLDP packets to avoid network flapping of neighbors caused by LLDP packets being frequently sent to neighbors.

When the status of a device changes frequently:
  • The longer the delay, the lower the frequency of the local status information being sent to neighbors. This saves system resources. However, if the delay for sending LLDP packets is too long, the device cannot notify neighbors of its status in a timely manner, reducing network topology discovery efficiency.
  • The shorter the delay, the higher the frequency of the local status information being sent to neighbors. This ensures prompt network topology discovery. However, if the interval is too short, LLDP packets are exchanged too frequently, increasing the system load and wasting resources.

message-transmission hold-multiplier

Sets the time multiplier of device information held in neighbors to calculate the valid time of LLDP packets being sent to neighbors. The time of device information held in neighbors can be adjusted by setting this parameter.

  • The higher the time multiplier, the lower the frequency of network topology changes of neighbors. However, if the time of device information held in neighbors is too long, the device cannot notify neighbors of its status in a timely manner, reducing network topology discovery efficiency.
  • The lower the time multiplier, the higher the frequency of network topology changes of neighbors. This ensures prompt network topology discovery. However, if the time multiplier is too low, neighbors refresh local status information frequently, increasing the system load and wasting resources.

restart-delay

Sets the delay for initializing LLDP on interfaces to avoid network flapping caused by frequent LLDP status changes on interfaces.

  • The longer the delay, the lower the frequency of network topology changes on a device. However, if the delay for initializing LLDP on interfaces is too long, the device cannot trace changes of neighbor status. As a result, the device cannot detect network topology of neighbors in a timely manner.
  • The shorter the delay, the higher the frequency of network topology changes on a device. This ensures prompt network topology discovery. However, if the delay is too short, the device refreshes status information about neighbors frequently, increasing the system load and wasting resources.

fast-count

Sets the number of LLDP packets being sent in quick succession to neighbors to help neighbors quickly obtain information about the local device, and help the NMS quickly detect network topology.

A device sends LLDP packets to neighbors every second if LLDP packets are being sent in quick succession and are not restricted by the delay time. After sending a specified number of LLDP packets in quick succession, the device periodically sends LLDP packets to neighbors based on the set interval.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run lldp message-transmission interval interval

    The global interval for a device to send LLDP packets is configured.

    It is recommended that you use the default interval for sending LLDP packets.

  3. Run lldp message-transmission delay delay

    The delay for sending LLDP packets is configured.

    It is recommended that you use the default delay for sending LLDP packets unless otherwise noted.

    The parameters interval and delay for sending LLDP packets affect each other. Take the value of delay into consideration when adjusting the value of interval.
    • Increasing the value of interval is not restricted by the value of delay. interval can be any number from 5 to 32768.
    • Decreasing the value of interval is not restricted by the value of delay. The target value of interval must be greater than or equal to four times the value of delay. Otherwise, the value of delay must be adjusted to be less than or equal to a quarter of the target value of interval.

  4. Run lldp message-transmission hold-multiplier hold-multiplier

    Time multiplier of device information held in neighbors is configured.

    It is recommended that you use the default time multiplier of device information held in neighbors unless otherwise noted.

    NOTE:
    • You can increase the value of hold-multiplier to prolong the time that device information is held in neighbors.
    • The value of hold-multiplier ranges from 2 to 10. The configuration does not take effect if the value of hold-multiplierxinterval is greater than 65535.

  5. Run lldp restart-delay delay

    The delay for initializing LLDP on interfaces is configured.

    It is recommended that you use the default delay for initializing LLDP unless otherwise noted.

  6. Run lldp fast-count count

    The number of LLDP packets being sent in quick succession to neighbors is configured.

    To help neighbors quickly obtain information about a local device, the local device sends a number of LLDP packets to neighbors when the local device detects a new neighbor (that is, when the device receives an LLDP packet from a transmitting device for which it has no information), or when LLDP is enabled for the device that previously had LLDP disabled, or the interface connected to a neighbor goes Up.

  7. Run commit

    The configuration is submitted.

Verifying the Configuration of Basic LLDP Functions

After configuring basic LLDP functions, verify the configuration.

Prerequisites

All configurations of basic LLDP functions are complete.

Procedure

  • Run the display lldp local [ interface interface-type interface-number ] command to check local LLDP status information about all interfaces or a specified interface.
  • Run the display lldp neighbor [ interface interface-type interface-number ] command to check LLDP status information about neighbors connected to all interfaces or the neighbor connected to a specified interface.
  • Run the display lldp neighbor brief command to check the summary LLDP status information about a neighbor.
  • Run the display lldp tlv-config [ interface interface-type interface-number ] command to check information about optional TLVs that are allowed to be advertised by all interfaces or a specified interface.

Example

The display lldp local command output shows basic information about a device, configuration information about the device, and statistics about the neighbors of the device.

<HUAWEI> display lldp local
System information
--------------------------------------------------------------------------
Chassis type                       :macAddress
Chassis ID                         :384b-7e21-1220
System name                        :HUAWEI                        
System description                 :Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (NE20E V800R010C10)
Copyright (C) 2012-2015 Huawei Technologies Co., Ltd.
HUAWEI NE20E

System capabilities supported      :bridge router 
System capabilities enabled        :bridge router 
LLDP Up time                       :2015/04/23 02:24:44

System configuration
--------------------------------------------------------------------------
LLDP Status                        :enabled              (default is disabled)         
LLDP Message Tx Interval           :15                   (default is 30s)              
LLDP Message Tx Hold Multiplier    :4                    (default is 4)                
LLDP Refresh Delay                 :3                    (default is 2s)               
LLDP Tx Delay                      :1                    (default is 2s)               
LLDP Notification Interval         :5                    (default is 5s)               
LLDP Notification Enable           :enabled              (default is disabled)          
Management Address                 :ipv4: 1.2.3.4                                
LLDP Fast Message Count            :3                    (default is 4)                

Remote Table Statistics:
--------------------------------------------------------------------------
Remote Table Last Change Time      :5 days,1 hours, 06 minutes,50 seconds
Remote Neighbors Added             :1
Remote Neighbors Deleted           :0
Remote Neighbors Dropped           :0
Remote Neighbors Aged              :0
Total Neighbors                    :1

Port information:
--------------------------------------------------------------------------
Interface Gigabitethernet0/3/0:
LLDP Enable Status                 :txAndRx              (default is disabled)
Total Neighbors                    :1

Port ID subtype                    :interfaceName
Port ID                            :Gigabitethernet0/3/0
Port description                   :

Port and Protocol VLAN ID(PPVID)   :unsupported
Port VLAN ID(PVID)                 :0
VLAN name of VLAN                 :--
Protocol identity                  :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported         :Yes
Auto-negotiation enabled           :No
OperMau                            :speed (10000) /duplex (Full)
Link aggregation supported         :Yes
Link aggregation enabled           :No
Aggregation port ID                :0
Maximum frame Size                 :9216

The display lldp neighbor command output shows the number of neighbors that an interface has, chassis ID, port ID, system name, system description, management address of each neighbor, and expiry time of information about each neighbor.

<HUAWEI> display lldp neighbor
Gigabitethernet0/3/0 has 1 neighbor(s):

Neighbor index                     :1
Chassis type                       :macAddress
Chassis ID                         :387e-d111-1110
Port ID type                       :interfaceName
Port ID                            :Gigabitethernet0/3/0
Port description                   :--
System name                        :HUAWEI
System description                 :Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (NE20E V800R010C10)
Copyright (C) 2012-2015 Huawei Technologies Co., Ltd.
HUAWEI NE20E

System capabilities supported      :bridge router
System capabilities enabled        :bridge router
Management address type            :ipv4
Management address                 :10.138.216.1
Expired time                       :104s

Port VLAN ID(PVID)                 :1
Port and Protocol VLAN ID(PPVID)   :unsupported
Port and Protocol VLAN supported   :--
Port and Protocol VLAN enabled     :--
VLAN name of VLAN 1                :VLAN1
Protocol identity                  :STP RSTP/MSTP LACP
Auto-negotiation supported         :Yes
Auto-negotiation enabled           :No
OperMau                            :speed (0) /duplex (Auto)
Link aggregation supported         :Yes
Link aggregation enabled           :No
Aggregation port ID                :0
Maximum frame Size                 :9216
Discovered time                    :2015-10-25 09:44:40

The output of the display lldp neighbor brief command shows the local interface name, neighbor name, neighbor interface name, and expiry time of information about a neighbor.

<HUAWEI> display lldp neighbor brief
Local Intf                     Neighbor Dev         Neighbor Intf                         Exptime (sec)
-------------------------------------------------------------------------------------------------------
Gigabitethernet0/1/0           HUAWEI               Gigabitethernet0/1/0                  101
Gigabitethernet0/1/1           HUAWEI               Gigabitethernet0/1/1                  101
Gigabitethernet0/1/7           HUAWEI               Gigabitethernet0/1/7                  101
Gigabitethernet0/2/0           HUAWEI               Gigabitethernet0/2/1                  118
Gigabitethernet0/2/0           HUAWEI               Gigabitethernet0/2/2                  118
Gigabitethernet0/2/0           HUAWEI               Gigabitethernet0/2/3                  118

The output of the display lldp tlv-config command shows information about optional TLVs allowed to be advertised by the current device.

<HUAWEI> display lldp tlv-config interface GigabitEthernet 0/1/1
LLDP tlv-config of port [GigabitEthernet 0/1/1]:
-----------------------------------------------------
Name                                Status    Default
-----------------------------------------------------
                                                     
Basic optional TLV:                                  
-------------------------------------------------
Port Description TLV                Yes       Yes    
System Name TLV                     Yes       Yes    
System Description TLV              Yes       Yes    
System Capabilities TLV             Yes       Yes    
Management Address TLV              Yes       Yes    
                                                     
IEEE 802.1 extend TLV:                               
-------------------------------------------------
Port VLAN ID TLV                    Yes       Yes    
Port And Protocol VLAN ID TLV       Yes       Yes    
VLAN Name TLV                       Yes       Yes    
Protocol Identity TLV               No        No     
                                                     
IEEE 802.3 extend TLV:                               
-------------------------------------------------
MAC-Physic TLV                      Yes       Yes    
Link Aggregation TLV                Yes       Yes    
Maximum Frame Size TLV              Yes       Yes    
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055400

Views: 20164

Downloads: 30

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next