<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[network topology on the switch some interface not success to establish peernode]]></title><description><![CDATA[<p dir="auto">When performing network topology on the switch, the results of lldp and fdb are obtained at the same time, resulting in a conflict and failure to establish the peernode.</p>
<pre><code>[color=#1f1f1f][size=5][font=Verdana, Arial, Helvetica, sans-serif]In the following log record, I found that two record is[/font][/size][/color]
</code></pre>
<p dir="auto">2024.10.16 23:13:55.965 *D* [topology.link      ] LinkLayerNeighbors::isDuplicate: inconsistent data: FDB(ifLocal=2 remote=76050/5) FDB(ifLocal=41 remote=76040/5)<br />
2024.10.16 23:13:55.965 *D* [topology.link      ] LinkLayerNeighbors::isDuplicate: inconsistent data: FDB(ifLocal=2 remote=76050/5) FDB(ifLocal=42 remote=76048/5)</p>
<pre><code>[color=#1f1f1f][size=5][font=Verdana, Arial, Helvetica, sans-serif]As a result, I was supposed to find 5 but then I only found 2.[/font][/size][/color]
</code></pre>
<p dir="auto">The netxms I use is 5.0.8 and the switch is dlink dgs-1510-52<br />
Other switches of the same type Also having the same issue. The switches are connected to computers and operating systems with the same hardware specifications.<br />
I would like to ask what is the reason for this result, which makes me very confused. I've found that this issue may not be limited to a certain type of network switch.</p>
<p dir="auto">2024.10.16 23:13:51.088 *D* [topology.fdb      ] GetSwitchForwardingDatabase(sw-203-dlink [47278]): 165 entries read from dot1qTpFdbTable<br />
2024.10.16 23:13:51.177 *D* [topology.fdb      ] GetSwitchForwardingDatabase(sw-203-dlink [47278]): 0 entries read from dot1dTpFdbTable<br />
2024.10.16 23:13:51.177 *D* [poll.topology      ] Switch forwarding database retrieved for node sw-203-dlink [47278]<br />
2024.10.16 23:13:51.177 *D* [topology.link      ] BuildLinkLayerNeighborList(sw-203-dlink [47278]): building link level topology<br />
2024.10.16 23:13:51.177 *D* [topology.driver    ] Collecting topology information from driver DLINK for node sw-203-dlink [47278]<br />
2024.10.16 23:13:51.177 *D* [topology.driver    ] Driver for node sw-203-dlink [47278] cannot provide link layer topology information<br />
2024.10.16 23:13:51.177 *D* [topology.lldp      ] Collecting LLDP topology information for node sw-203-dlink [47278]<br />
2024.10.16 23:13:55.690 *D* [topology.lldp      ] 5 entries in LLDP-MIB connection database for node sw-203-dlink [47278]<br />
2024.10.16 23:13:55.690 *D* [topology.lldp      ] Finished collecting LLDP topology information for node sw-203-dlink [47278]<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): FDB retrieved<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found single MAC A0:36:BC:5B:19:A7 on interface eth1/0/2<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found remote interface ethernet 2 [76051]<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found single MAC A0:36:BC:5B:18:1C on interface eth1/0/3<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found remote interface ethernet [75986]<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found single MAC A0:36:BC:5B:18:D9 on interface eth1/0/41<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found remote interface ethernet 2 [76041]<br />
2024.10.16 23:13:55.965 *D* [topology.link      ] LinkLayerNeighbors::isDuplicate: inconsistent data: FDB(ifLocal=2 remote=76050/5) FDB(ifLocal=41 remote=76040/5)<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found single MAC A0:36:BC:5B:1A:E0 on interface eth1/0/42<br />
2024.10.16 23:13:55.965 *D* [poll.topology      ] Node::addHostConnections(sw-203-dlink [47278]): found remote interface ethernet 2 [76049]<br />
2024.10.16 23:13:55.965 *D* [topology.link      ] LinkLayerNeighbors::isDuplicate: inconsistent data: FDB(ifLocal=2 remote=76050/5) FDB(ifLocal=42 remote=76048/5)<br />
2024.10.16 23:13:55.965 *D* [topology.link      ] BuildLinkLayerNeighborList(sw-203-dlink [47278]): 2 connections found</p>
]]></description><link>https://forum.netxms.org/topic/8048/network-topology-on-the-switch-some-interface-not-success-to-establish-peernode</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:18:27 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8048.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Oct 2024 16:14:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to network topology on the switch some interface not success to establish peernode on Thu, 17 Oct 2024 08:14:21 GMT]]></title><description><![CDATA[<p dir="auto">nodeid 76050 have a interface(objectId=76051) ifindex=5 mac address A0:36:BC:5B:19:A7 is physical link on the sw-203-dlink(dgs-1510-52) switch eth1/0/2<br />
nodeid 76040 have a interface(objectId=76041) ifindex=5 mac address A0:36:BC:5B:18:D9 is physical link on the sw-203-dlink(dgs-1510-52) switch eth1/0/41<br />
nodeid 76048 have a interface(objectId=76049) ifindex=5 mac address A0:36:BC:5B:1A:E0 is physical link on the sw-203-dlink(dgs-1510-52) switch eth1/0/42</p>
<p dir="auto">my nodeid 76050 76040 76048 's operation The operating systems are completely cloned. Only the hardware information is slightly different, such as the network card mac address and ip.<br />
in netxms i use topology sw-203-dlink switch forwarding database list result ,It is also consistent with the actual interface between the computer and the switch.</p>
<p dir="auto">so i search in source code<br />
In lln.cpp I find I saw the relevant code below</p>
<p dir="auto">Also, I have also directly queried the lldp of the switch and I get this result</p>
<p dir="auto">Name/OID: .1.0.8802.1.1.2.1.4.1.1.7.306145956.42.9; Value (OctetString): A0-36-BC-5B-1A-E0<br />
Name/OID: .1.0.8802.1.1.2.1.4.1.1.7.306145970.41.17; Value (OctetString): A0-36-BC-5B-18-D9<br />
Name/OID: .1.0.8802.1.1.2.1.4.1.1.7.306146123.2.15; Value (OctetString): A0-36-BC-5B-19-A7</p>
<p dir="auto">The information on lldp also confirms that the node is on the correct interface.<br />
so,Is it possible that some misjudgment or mistake occurred here?</p>
<p dir="auto">/**<br />
* Check if given information is duplicate<br />
*/<br />
bool LinkLayerNeighbors::isDuplicate(const LL_NEIGHBOR_INFO&amp; info)<br />
{<br />
    for(int i = 0; i &lt; m_connections.size(); i++)<br />
    {<br />
      LL_NEIGHBOR_INFO *n = m_connections.get(i);<br />
        if (n-&gt;ifLocal == info.ifLocal)<br />
        {<br />
          if ((n-&gt;ifRemote != info.ifRemote) || (n-&gt;objectId != info.objectId))<br />
          {<br />
              nxlog_debug_tag(DEBUG_TAG_TOPO_LINK, 5, _T("LinkLayerNeighbors::isDuplicate: inconsistent data: %s(ifLocal=%d remote=%d/%d) %s(ifLocal=%d remote=%d/%d)"),<br />
                          GetLinkLayerProtocolName(n-&gt;protocol), n-&gt;ifLocal, n-&gt;objectId, n-&gt;ifRemote,<br />
                        GetLinkLayerProtocolName(info.protocol), info.ifLocal, info.objectId, info.ifRemote);<br />
          }<br />
        return true;<br />
        }<br />
      if (n-&gt;ifRemote == info.ifRemote)<br />
      {<br />
        if ((n-&gt;ifLocal != info.ifLocal) || (n-&gt;objectId != info.objectId))<br />
        {<br />
            nxlog_debug_tag(DEBUG_TAG_TOPO_LINK, 5, _T("LinkLayerNeighbors::isDuplicate: inconsistent data: %s(ifLocal=%d remote=%d/%d) %s(ifLocal=%d remote=%d/%d)"),<br />
                        GetLinkLayerProtocolName(n-&gt;protocol), n-&gt;ifLocal, n-&gt;objectId, n-&gt;ifRemote,<br />
                        GetLinkLayerProtocolName(info.protocol), info.ifLocal, info.objectId, info.ifRemote);<br />
        }<br />
        return true;<br />
      }<br />
    }<br />
    return false;<br />
}</p>
]]></description><link>https://forum.netxms.org/post/33912</link><guid isPermaLink="true">https://forum.netxms.org/post/33912</guid><dc:creator><![CDATA[hmjvaline]]></dc:creator><pubDate>Thu, 17 Oct 2024 08:14:21 GMT</pubDate></item></channel></rss>