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

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
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).
Example for Configuring LLDP on a Device that Has a Single Neighbor

Example for Configuring LLDP on a Device that Has a Single Neighbor

Networking Requirements

As shown in Figure 6-7, RouterA and RouterB are directly connected; RouterA and ME are directly connected. The NMS has reachable routes to RouterA and RouterB, and SNMP configuration has been complete.

A network administrator wants to use the NMS to obtain communication information between RouterA and ME, and between RouterA and RouterB, as well as the traps about function changes on RouterA and RouterB. According to the preceding information, network administrator can know the detailed network topology and whether configuration conflicts exist on the network.

Figure 6-7  Single-neighbor network

Configuration Roadmap

The LLDP function can meet the network administrator's requirement. The configuration roadmap is as follows:
  1. Enable global LLDP on RouterA and RouterB.
  2. Configure management IP addresses for RouterA and RouterB.
  3. Enable the LLDP trap function on RouterA and RouterB so that trap messages can be sent to the NMS in a timely manner.

Procedure

  1. Enable global LLDP on RouterA and RouterB.

    # Configure RouterA.
    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] lldp enable
    # Configure RouterB.
    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] lldp enable

  2. Configure management IP addresses for RouterA and RouterB.

    # Configure RouterA.
    [RouterA] lldp management-address 10.10.10.1
    # Configure RouterB.
    [RouterB] lldp management-address 10.10.10.2

  3. Enable the LLDP trap function on RouterA and RouterB.

    # Configure RouterA.
    [RouterA] snmp-agent trap enable feature-name lldptrap
    # Configure RouterB.
    [RouterB] snmp-agent trap enable feature-name lldptrap

  4. Verify the configurations.

    • Check RouterA.

      # Check the RouterA configuration.

      <RouterA> display lldp local
      System information
      Chassis type   :macAddress
      Chassis ID     :00e0-11fc-1710
      System name    :RouterA
      System description  :Huawei AR2240 Huawei Versatile Routing Platform Software
      VRP (R) software,Version 5.130 (AR2240 V300R003)
      Copyright (C) 2011-2013 Huawei Technologies Co., Ltd
      System capabilities supported   :bridge
      System capabilities enabled     :bridge
      LLDP Up time   :2012/05/8 11:40:49
      
      MED system information
      Device class   :Network Connectivity
      (MED inventory information of master board)
      HardwareRev       :AR01SRU1A VER.A
      FirmwareRev       :NA
      SoftwareRev       :V300R003
      SerialNum         :NA
      Manufacturer name :HUAWEI TECH CO., LTD
      Model name        :NA
      Asset tracking identifier :NA
      
      System configuration
      LLDP Status                     :enabled             (default is disabled)
      LLDP Message Tx Interval        :30                  (default is 30s)
      LLDP Message Tx Hold Multiplier :4                   (default is 4)
      LLDP Refresh Delay              :2                   (default is 2s)
      LLDP Tx Delay                   :2                   (default is 2s)
      LLDP Notification Interval      :5                   (default is 5s)
      LLDP Notification Enable        :enabled             (default is enabled)
      Management Address              :IP: 10.10.10.1  MAC: 00e0-11fc-1710
      
      Remote Table Statistics:
      Remote Table Last Change Time   :0 days, 5 hours, 57 minutes, 32 seconds
      Remote Neighbors Added          :15
      Remote Neighbors Deleted        :13
      Remote Neighbors Dropped        :0
      Remote Neighbors Aged           :0
      Total Neighbors                 :2
      
      Port information:
      
      Interface Ethernet2/0/0:
      LLDP Enable Status       :enabled             (default is disabled)
      Total Neighbors          :1
      
      Port ID subtype     :interfaceName
      Port ID             :Ethernet2/0/0
      Port description    :HUAWEI, AR Series,Ethernet2/0/0 Interface
              ---- More ----
      

      # Check neighbor information for RouterA.

      <RouterA> display lldp neighbor interface ethernet 2/0/0
      Ethernet2/0/0 has 1 neighbors:
      
      Neighbor index : 1
      Chassis type   :macAddress
      Chassis ID     :00e0-11fc-1710
      Port ID type   :interfaceName
      Port ID        :Ethernet2/0/0
      Port description    :HUAWEI, AR Series,Ethernet2/0/0 Interface
      System name         :RouterB
      System description  :Huawei AR2240 Huawei Versatile Routing Platform Software
      VRP (R) software,Version 5.130 (AR2240 V300R003)
      Copyright (C) 2011-2013 Huawei
      Technologies Co., Ltd
      System capabilities supported   :bridge
      System capabilities enabled     :bridge
      Management address type  :ipV4
      Management address       : 10.10.10.2
      Expired time   :104s
        ---- More ----
      
    • Check RouterB.

      Refer to the steps for checking RouterA.

Configuration Files

  • RouterA configuration file

    #
     sysname RouterA
    #
     lldp enable
    #
     lldp management-address  10.10.10.1
    #
    return
    
  • RouterB configuration file

    #
     sysname RouterB
    #
     lldp enable
    #
     lldp management-address 10.10.10.2
    #
    return
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 30880

Downloads: 177

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