Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13637

Discover LLDP topology on devices running MikroTik RouterOS

    XMLWordPrintable

Details

    • Story
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • Meridian-2021.1.4, 28.1.0
    • 29.0.0
    • Enhanced Linkd / Linkd
    • Security Level: Default (Default Security Scheme)
    • None
    • NB

    Description

      LLDP discovery with MikroTik devices running RouterOS or Cloud Hosted Router OS doesn’t work right now out of the box. From a first investigation, it seems like parts of the LLDP MIB are not fully implemented and Enhanced-Linked shows an error message LLDP_MIB not supported. A simple scenario can be build build and reproduced using the free available OVA files from MikroTik from https://download.mikrotik.com/routeros/6.49/chr-6.49.ova. After deployment you can log in with admin without a password. IP addresses come from DHCP by default.

      Enable snmp with

      snmp set enabled=yes
      snmp community add name=MY-COMMUNITY
      addresses=OPENNMS_IP_ADDRESS
      

      With two routers on the same bridge, you will see a very simple topology
      The LLDP topology in his example is extremely simple:

      The LLDP MIB output from router-1:

      (Unknown Module)::iso.0.8802.1.1.2.1.3.4.0 = String: MikroTik RouterOS 6.48.4 (stable) CHR
      (Unknown Module)::iso.0.8802.1.1.2.1.3.5.0 = String: (
      (Unknown Module)::iso.0.8802.1.1.2.1.3.6.0 = String:  
      (Unknown Module)::iso.0.8802.1.1.2.1.3.7.1.2.1 = Integer: 3
      (Unknown Module)::iso.0.8802.1.1.2.1.3.7.1.3.1 = String: 00:0C:29:0F:D9:BD
      (Unknown Module)::iso.0.8802.1.1.2.1.3.7.1.4.1 = String: ether1
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.4.0.0.1 = Integer: 4
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.5.0.0.1 = String: 00:0C:29:AD:3C:FD
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.6.0.0.1 = Integer: 5
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.7.0.0.1 = String: ether1
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.9.0.0.1 = String: router-2
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.10.0.0.1 = String: 
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.11.0.0.1 = String: .
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.12.0.0.1 = String: .
      (Unknown Module)::iso.0.8802.1.1.2.1.4.2.1.1.0.0.1 = Integer: 1
      (Unknown Module)::iso.0.8802.1.1.2.1.4.2.1.2.0.0.1 = String: 172.16.8.26
      

      The LLDP MIB output from router-2:

      (Unknown Module)::iso.0.8802.1.1.2.1.3.4.0 = String: MikroTik RouterOS 6.48.4 (stable) CHR
      (Unknown Module)::iso.0.8802.1.1.2.1.3.5.0 = String: (
      (Unknown Module)::iso.0.8802.1.1.2.1.3.6.0 = String:  
      (Unknown Module)::iso.0.8802.1.1.2.1.3.7.1.2.1 = Integer: 3
      (Unknown Module)::iso.0.8802.1.1.2.1.3.7.1.3.1 = String: 00:0C:29:AD:3C:FD
      (Unknown Module)::iso.0.8802.1.1.2.1.3.7.1.4.1 = String: ether1
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.4.0.0.1 = Integer: 4
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.5.0.0.1 = String: 00:0C:29:0F:D9:BD
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.6.0.0.1 = Integer: 5
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.7.0.0.1 = String: ether1
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.9.0.0.1 = String: router-1
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.10.0.0.1 = String: 
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.11.0.0.1 = String: .
      (Unknown Module)::iso.0.8802.1.1.2.1.4.1.1.12.0.0.1 = String: .
      (Unknown Module)::iso.0.8802.1.1.2.1.4.2.1.1.0.0.1 = Integer: 1
      (Unknown Module)::iso.0.8802.1.1.2.1.4.2.1.2.0.0.1 = String: 172.16.8.25
      

      Acceptance:

      • The two MikroTik devices are shown correctly in the LLDP topology discovered from our EnhancedLinkd.

      Original documented in https://opennms.discourse.group/t/lldp-topology-discovery-for-mikrotik-cloud-routeros/2159/2

      Attachments

        Issue Links

          Activity

            People

              rssntn67 Antonio Russo
              indigo Ronny Trommer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: