pawan agarwal | 7 Feb 19:56 2016
Picon

[quagga-users 14226] OSPFD crashing with segmentation fault error

Hi,

I am trying to enable opaque lsa in quagga ospf.

but at shutdown when it is trying free interface list in ospf_finish_final it is carsahing

1ST:

static void
free_opaque_info_per_type (void *val)
{
  struct opaque_info_per_type *oipt = (struct opaque_info_per_type *) val;
  struct opaque_info_per_id *oipi;
  struct ospf_lsa *lsa;
  struct listnode *node, *nnode;

  /* Control information per opaque-id may still exist. */
  for (ALL_LIST_ELEMENTS (oipt->id_list, node, nnode, oipi))
    {
      if ((lsa = oipi->lsa) == NULL)
        continue;
      if (IS_LSA_MAXAGE (lsa))
        continue;
      ospf_opaque_lsa_flush_schedule (lsa);
    }



  /* Remove "oipt" from its owner's self-originated LSA list. */
  switch (oipt->lsa_type)
    {
    case OSPF_OPAQUE_LINK_LSA:
      {
        struct ospf_interface *oi = (struct ospf_interface *)(oipt->owner);
        listnode_delete (oi->opaque_lsa_self, oipt);
        break;



 next = node->next;
      if (list->del)
        (*list->del) (node->data);
      listnode_free (node);


This two operation happening on same node one after another, So when it is trying free same node second time it crashing .








2ND:

void
ospf_opaque_lsa_flush_schedule (struct ospf_lsa *lsa0)
{
  struct opaque_info_per_type *oipt;
  struct opaque_info_per_id *oipi;
  struct ospf_lsa *lsa;

  if ((oipt = lookup_opaque_info_by_type (lsa0)) == NULL
  ||  (oipi = lookup_opaque_info_by_id (oipt, lsa0)) == NULL)
    {
      zlog_warn ("ospf_opaque_lsa_flush_schedule: Invalid parameter?");
      goto out;
    }

  /* Given "lsa0" and current "oipi->lsa" may different, but harmless. */
  if ((lsa = oipi->lsa) == NULL)
    {
      zlog_warn ("ospf_opaque_lsa_flush_schedule: Something wrong?");
      goto out;
    }

  /* Delete this lsa from neighbor retransmit-list. */
  switch (lsa->data->type)
    {
    case OSPF_OPAQUE_LINK_LSA:
    case OSPF_OPAQUE_AREA_LSA:
      ospf_ls_retransmit_delete_nbr_area (lsa->area, lsa);
      break;
    case OSPF_OPAQUE_AS_LSA:
      ospf_ls_retransmit_delete_nbr_as (lsa0->area->ospf, lsa);
      break;
    default:
      zlog_warn ("ospf_opaque_lsa_flush_schedule: Unexpected LSA-type(%u)", lsa->data->type);
      goto out;
   }

  /* Dequeue listnode entry from the list. */
  listnode_delete (oipt->id_list, oipi);


static void
free_opaque_info_per_type (void *val)
{
  struct opaque_info_per_type *oipt = (struct opaque_info_per_type *) val;
  struct opaque_info_per_id *oipi;
  struct ospf_lsa *lsa;
  struct listnode *node, *nnode;

  /* Control information per opaque-id may still exist. */
  for (ALL_LIST_ELEMENTS (oipt->id_list, node, nnode, oipi))
    {
      if ((lsa = oipi->lsa) == NULL)
        continue;
      if (IS_LSA_MAXAGE (lsa))
        continue;
      ospf_opaque_lsa_flush_schedule (lsa);
    }

Here it is looping the list and inside "ospf_opaque_lsa_flush_schedule"

make free the wole list, so once it enter in schedule function and come out this loop trigger on invalid memory.

Please suggest me best solution for this two error.

Regards
Paban





_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
Krist van Besien | 2 Feb 18:02 2016
Picon

[quagga-users 14224] Unnumbered interfaces not working.

Hello,

I'm trying to get unnumbered PtP links working. Without success however...

Our situation: We run cumulus linux on switches. We run RHEL 7.2 on the servers. We want to connect our servers redundantly to the switches, and run ospf. This means running quagga on the server.

This works if we use x.x.x.x/30 networks for the PtP links between the servers and the cumulus boxes, but keeping track of huge numbers of PtP networks is not something we are looking forward to, so we would rather use unnumbered PtP links.

We followed the usual recipes we found on the net, and got it to work between cumulus linux boxes, but not between RHEL and cumulus boxes.

What seems to be missing is some configuration options that appear to be valid on the quagga that cumulus runs, but not on the one that RHEL ships.

One problem I am running in to is that I can't set the "area": on an interface. So for example on the cumulus box we have:

interface swp47
  ip ospf network point-to-point
  ip ospf area 0.0.2.3

on the RHEL box I would like to do the same thing for it's ptp interfaces, but the "area"  command is not know. I have the impression that this is what might be missing.

But why?

On Cumulus quagga is version 0.99.23.1
On RHEL it is 0.99.22.4
Is the older version on RHEL the reason? I would have thought not, as unnumbered ptp links have been around for a while...

Any help towards getting this to work is appreciated.




_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
Mike Tancsa | 26 Jan 20:55 2016
Picon

[quagga-users 14214] missing routes to iBGP peers

I have an odd situation where I am seeing missing routes from my one
border router not being advertised to my other ibgp peers.  Doing a
tcpdump confirms the peer is not sending them as part of their updates.
 For example, the prefix (first 2 octects changed for posting sake)

192.168.250.0/24

On a border router (T) that gets it via ebgp, with the following being
the best path

1 2 3
    10.108.34.12 from 10.108.34.12 (xxxxxxxx)
      Origin EGP, metric 4000, localpref 116, weight 114, valid,
external, best
      Last update: Wed Jan 20 05:08:41 2016

But on an iBGP peer, if I clear the session between border router (T)
and one of its iBGP peers, looking at the pcap, I dont see it being
advertised as a possible route to the peer despite having higher prefs etc.

Not sure if this is a bug or an issue with various weights and
preferences ? Any thoughts on where to look ?  Am I safe in trying a
copy directly out of GIT, or is that developmental still ?

On the ibgp peer, it sees the best route as

Paths: (4 available, best #1, table Default-IP-Routing-Table)
  Not advertised to any peer
  5 1 2 3
    10.211.165.121 (metric 1) from 10.211.165.121 (xxxx)
      Origin EGP, localpref 100, weight 112, valid, internal, best
      Community: 5:50 5:1000 5:1300 5:1306
      Last update: Sat Nov 28 05:15:35 2015

Note the ibgp peer does not even see the shorter path, with higher local
pref as an option that border router (T) has available to it.  I am
running Quagga 0.99.24.1 on FreeBSD.

Thanks,

	---Mike

--

-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike@...
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
Joe Moog | 26 Jan 16:01 2016

[quagga-users 14213] Re: Quagga-users Digest, Vol 150, Issue 10

On Jan 24, 2016, at 6:00 AM, Glenn Comiskey wrote:

I've installed Quagga a couple of times on Ubuntu, and familiar with setting
things up, but now trying to install a copy on a FreeBSD machine but finding
the file structure used is different and can't get things to run error free.
Currently have a problem getting OSPF to start properly, as it reports
"OSPF: Can't create pid lock file /var/run/quagga/ospfd.pid (No such file or
directory)". Seems no that such directory has be created as part of the
install, and I'm not sure if it is in fact not meant to be using
/usr/pbi/quagga-amd64/run/quagga - which also doesn't exist.


Does anyone have a step-by-step guide of installing and setting-up Quagga on
FreeBSA.



Here are two resources that helped when we started out with quagga on FreeBSD:



There are interesting bits abound for configuring BSD and quagga (zebra, bgpd, ripd, ospfd) though the majority are somewhat mutually exclusive, and all assume some prior knowledge of FreeBSD and/or quagga. There are few resources that I have found yet that are comprehensive for the whole bowl of nuts. In essence, the first link I’ve provided will get you a working install of quagga on FreeBSD; specifics can be found afterwards by focusing on the individual bits, be that FreeBSD config or quagga, and searching the web accordingly. Fortunately for us, our deployment of quagga is quite simplistic so this was all we needed to get up and running.

Best of luck

Joe

_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
Glenn Comiskey | 24 Jan 01:15 2016
Picon

[quagga-users 14208] FreeBSD Set-up

Hi,

 

I’ve installed Quagga a couple of times on Ubuntu, and familiar with setting things up, but now trying to install a copy on a FreeBSD machine but finding the file structure used is different and can’t get things to run error free. Currently have a problem getting OSPF to start properly, as it reports “OSPF: Can't create pid lock file /var/run/quagga/ospfd.pid (No such file or directory)”. Seems no that such directory has be created as part of the install, and I’m not sure if it is in fact not meant to be using /usr/pbi/quagga-amd64/run/quagga – which also doesn’t exist.

 

Does anyone have a step-by-step guide of installing and setting-up Quagga on FreeBSA.

 

TIA,

 

Glenn

_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
Pieter De Wit | 18 Jan 19:21 2016
Picon

[quagga-users 14204] Debugging why a route isn't added to the kernel

Hi Guys,

 

I have bgp running with bgp multiple-instance turned on. I have 2 AS' that I am connecting as and I have a view configured per AS. The routes that I am learning is not making it into the kernel. How can I debug as to why ?

 

Thanks,

 

Pieter

 
_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
BITAG TOBOY | 18 Jan 08:57 2016
Picon

[quagga-users 14201] Modify SPF calculation in OSPFd

How would I enhance spf calculation using a different technique like ant colony optimization? Thanks
_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
Pieter De Wit | 15 Jan 01:44 2016
Picon

[quagga-users 14198] Zebra not updating kernel due to multiple instances

Hi Guys,

 

I found a post (to this list I believe) that contained the answer that Zebra won't automatically put learned routes into the kernel routing table if you are running multiple instances. Is this true and if so, how do I get the route into the kernel ?

 

Here is a snip of the config:

 

router bgp 65000 view AWS_RDS
bgp router-id id.id.id.id
network pri.pri.pri.pri/16
network net.net.net.net/30
redistribute kernel
neighbor 169.254.247.21 remote-as 7224
neighbor 169.254.247.21 soft-reconfiguration inbound
!

 

I learn a single route from them:

 

# show ip bgp
*> 172.17.32.0/19 rem.rem.rem.mem 100 32768 ?
* rem.rem.rem.rem 100 0 7224 i

 

But the kernel shows nothing about that route :(

 

Thanks,

 

Pieter

 

 

 
_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
tbgu | 12 Jan 05:15 2016
Picon

[quagga-users 14196] can't install quagga patch successfully

Hi guys,

I'm doing some BGP convergence time experiment by using Quagga. I need to install the patch "[quagga-dev, 14154,13/89]bgpd: Event-driven router announcement taking into account min route advertisement interval", I downloaded the patch from this link: http://patchwork.quagga.net/patch/1630/

But I can't install the patch successfully. It seems that the quagga version currently I installed doesn't math the patch.
Does anybody know what quagga version I can install for the patch?

I have tried the newest released quagga version 0.99.24.1, also tried to download the latest code from qugga github.
But both don't work for me.

Thanks very much for your help

Best
Tianbo

_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
Luc Paulin | 5 Jan 20:32 2016
Picon

[quagga-users 14194] Inactive route

Hi, 
I am currently configuration OSPF to eventually get rid of bgd for our internal routing. 

However when I look at the route table in zebra, I do see imported networks from OSPF and zebra but look like most of the OSPF route are mark as inactive. 

Can I get more information as what inactive mean, not sure to understand it 

O   192.168.88.0/24 [110/30] via 172.20.90.1 inactive, 02:44:24
B>* 192.168.88.0/24 [20/0] via 172.20.198.2 (recursive is directly connected, gre80), 6d01h24m

Thanx! 


--
                         !!!!!
                       ( o o )
 --------------oOO----(_)----OOo--------------
   Luc Paulin
   email: paulinster(at)gmail.com
   Skype: paulinster

_______________________________________________
Quagga-users mailing list
Quagga-users@...
https://lists.quagga.net/mailman/listinfo/quagga-users
Sim | 30 Dec 12:15 2015
Picon

[quagga-users 14193] Two eBGP with iBGP (between them) and OSPF not advertise external route

Hello!
I'm using Quagga from more than 10 years without any problem but now
I've a strange situation/question.
Quagga1 not advertise route from External AS (eBGP) to Quagga2 (iBGP).
Quagga2 advertise correctly route from External AS (eBGP) to Quagga1 (iBGP).

---------------
QUAGGA1:

router bgp with:
- external AS (X) -> "route-map in" local-preference 150
- internal AS with QUAGGA2 (same AS)

router ospf
- network
- redistribute connected
- redistribute static

NB: bgp and ospf router-id are equal
---------------
QUAGGA2:

router bgp with:
- external AS (Y) -> "route-map in" local-preference 150
- internal AS with QUAGGA1 (same AS)

router ospf
- network
- redistribute connected
- redistribute static

NB: bgp and ospf router-id are equal
---------------

This is the simple "iBGP" (in this example my AS is 123) without
route-map or without prefix-list filter

 neighbor ... remote-as 123
 neighbor ... update-source ...
 neighbor ... timers 10 30
 neighbor ... timers connect 15
 neighbor ... next-hop-self

Removing "redistribute connected" and "redistribute static" from OSPF
and adding to BGP (from both Quagga),
the only wait to advertise route (connected and static) is to add
"route-map out" from Quagga1 to Quagga2.
But also in this case no other acquired external route (from AS X) are
advertised from Quagga1 to Quagga2.
The problem is also present changing local-preference to HI value
(example 300) into Quagga1 external AS (X).

Quagga2 advertise always and in all cases correctly external route to Quagga1.
Quagga1 and 2 configurations are much the same....

Is it a problem about "double" internal routing (iBGP + OSPF) or other issue?

Thanks for your time!

---
Sim

Gmane