Welcome, Guest. Please login or register.

Author Topic: NeDiO14 "Ignoring duplicate neighbor"  (Read 3818 times)

dohco

  • Newbie
  • *
  • Posts: 33
    • View Profile
NeDiO14 "Ignoring duplicate neighbor"
« on: April 16, 2015, 11:33:36 AM »
Hi
I've been using a couple of the recent versions of NeDi without any problems, it just works!

With NeDiO14 I ran into a problem that I could use some help understanding and find a resolution for.
We have a "hub and spoke"-setup on one of our routers and NeDi refuses to add more then one neighbor per interface.

nedi.pl -v -a 192.168.x.xx
...
...
DisProtocol  ------------------------------------------------------------------
SNMP:Connect 192.168.x.xx XXXXXX v2 Tout:7s MaxMS:4095 Retry:1 NB:0
NEB :10123.1321
CDP :core-edu,Gi1/0/24 192.168.xxx.x on Gi1/0/23
NEB :10124.1308
CDP :core-adm,Gi1/0/24 192.168.x.x on Gi1/0/24
NEB :10101.1698
CDP :router1,Fa4 192.168.xxx.xx on Gi1/0/1
NEB :10101.1730
CDP :Ignoring duplicate neighbor router2
NEB :10101.1441
CDP :Ignoring duplicate neighbor router3
NEB :10101.1722
CDP :Ignoring duplicate neighbor router4
NEB :10101.1509
CDP :Ignoring duplicate neighbor router5
NEB :10101.1708
...
...

This problem is new (for me) to NeDiO14
My current production version of NeDi (1.1.155) does not have this "problem".

Any thoughts?

Thanks in advance
/Conny

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2774
    • View Profile
    • NeDi
Re: NeDiO14 "Ignoring duplicate neighbor"
« Reply #1 on: April 18, 2015, 02:44:30 PM »
I've added this, because ProCurve switches happily report CDP and LLDP neighbors all the same. Could you explain how several neighbors are connecting to Gi1/0/1?

Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dohco

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: NeDiO14 "Ignoring duplicate neighbor"
« Reply #2 on: April 20, 2015, 08:29:00 AM »
Hi Rickli

I've attached a picture to discribe the setup.
In short:
We rent L2-connections to our small offices from a ISP in Sweden. These connections can be anywhere within the country.
The L2-connections are then delivered to us via a trunk, hence the hub and spoke layout.

BTW, I googled the specifications for CDP and found:
"CDP can discover up to 256 neighbors per port if the port is connected to a hub with 256 connections."

/Conny

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2774
    • View Profile
    • NeDi
Re: NeDiO14 "Ignoring duplicate neighbor"
« Reply #3 on: April 21, 2015, 12:10:20 PM »
Ok got it. For now you can comment lines 2077 and 2078 in inc/libsnmp.pm...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dohco

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: NeDiO14 "Ignoring duplicate neighbor"
« Reply #4 on: June 05, 2015, 03:15:26 PM »
Hi Rickli

Now I finaly found the time to do another upgrade to NeDi 1.4 and try your solution.
Sadly it didn't work as expected. If i commented out only those lines (2077 and 2078) there was of course errors, so I tried to comment out the whole statement (se below).
When the whole block was commented out then NeDi didn't save any neighbors at all in the database.

libsnmp.pm:
2077      unless($misc::portprop{$na}{$lif}{lnk} eq 'S'){                      # No DP link if static exists on this IF
2078           &db::WriteLink( $na,
2079                        $lif,
2080                        $neb{$i}{$n}{'na'},
2081                        $neb{$i}{$n}{'if'},
2082                        $neb{$i}{$n}{'dp'},
2083                        $main::int{$na}{$i}{spd},
2084                        $neb{$i}{$n}{'dx'},
2085                        $neb{$i}{$n}{'vl'},
2086                        "Neighbor discovered as $neb{$i}{$n}{'ty'} with IP $neb{$i}{$n}{'ip'}") if !$main::opt{'t'};
2087            $main::int{$na}{$i}{lty} = substr($neb{$i}{$n}{'dp'},0,3);
2088      }

Could it be a typo from your end, and it should be 2077 and 2088?

/Conny
« Last Edit: June 05, 2015, 03:17:37 PM by dohco »

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2774
    • View Profile
    • NeDi
Re: NeDiO14 "Ignoring duplicate neighbor"
« Reply #5 on: June 05, 2015, 07:20:28 PM »
 :-[ a  typo indeed, but it should be 2055 and 2056. The comment indicates what it does...sorry about that, got butterfingers!
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dohco

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: NeDiO14 "Ignoring duplicate neighbor"
« Reply #6 on: June 15, 2015, 04:13:49 PM »
I can confirm that the solution works.
Thanks.

/Conny