RE: 'prefer older' does not work?

2019-05-13 Thread Arvin Gan
Hi Alexander, Suggest you confirm with the BGP route selection algorithm bgp_rte_better, the option "prefer older" will work only when all pervious selection options are the same. Best Regards, Arvin Gan -Original Message- From: Bird-users On Behalf Of Alexander S

BGP end mark

2019-03-26 Thread Arvin Gan
TRACE(D_PACKETS, "Sending END-OF-RIB"); - return (c->afi == BGP_AF_IPV4) ? + return (c->afi == BGP_AF_IPV4) && !c->ext_next_hop ? bgp_create_ip_end_mark(c, buf): bgp_create_mp_end_mark(c, buf); } Best Regards, Arvin Gan

RE: BGP import_table & graceful restart issue

2019-03-24 Thread Arvin Gan
think it's not a complete behavior. What's your opinion ? Best Regards, Arvin Gan -Original Message- From: Ondrej Zajicek Sent: Saturday, March 23, 2019 3:55 AM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP import_table & graceful restart issue On Thu, Mar 21, 20

BGP import_table & graceful restart issue

2019-03-20 Thread Arvin Gan
pability and MUST mark them as stale routing information." Best Regards, Arvin Gan

Help: BGP neighbor

2018-12-03 Thread Arvin Gan
nterface4 of DUT3. Best Regards, Arvin Gan

BGP neighbor

2018-10-15 Thread Arvin Gan
compare with interface prefix on DUT1, find the neighbor interface2 with prefix 2000::1/112 [interface2 on DUT2] BUT, actually, BGP peer TCP connection is not directly connected, and TCP connection don't using interface2 on DUT2, but using interface3 on DUT2 to connect interface4 of DUT3. Be

RE: vpn6-mpls routes on BIRD 2

2018-08-23 Thread Arvin Gan
Hi , From your protocols info, “BGP Next hop: ::” in channel vpn6-mpls, if next hop is empty, the route is withdrawn. Suggest to check it. Best Regards, Arvin Gan From: Bird-users On Behalf Of Chris Herdt Sent: Friday, August 24, 2018 5:48 AM To: bird-users@network.cz Subject: vpn6-mpls

RE: BGP resolvable issue

2018-08-21 Thread Arvin Gan
Hi Ondrej, Thanks for your info :) Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Tuesday, August 21, 2018 9:00 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP resolvable issue On Tue, Aug 21, 2018 at 01:43:58AM +, Arvin Gan wrote: > Ping, anyone kn

RE: BGP resolvable issue

2018-08-20 Thread Arvin Gan
Ping, anyone known it ?:) Thanks Arvin From: Arvin Gan Sent: Monday, August 13, 2018 5:42 PM To: bird-users@network.cz Subject: BGP resolvable issue Hi all, In RFC4271, If the NEXT_HOP attribute of a BGP route depicts an address that is not resolvable, or if it would become unresolvable if

BGP resolvable issue

2018-08-13 Thread Arvin Gan
Hi all, In RFC4271, If the NEXT_HOP attribute of a BGP route depicts an address that is not resolvable, or if it would become unresolvable if the route was installed in the routing table, the BGP route MUST be excluded from the Phase 2 decision function. Actually, BGP protocol is implemented

RE: bird 2 and vpn4 mpls

2018-08-07 Thread Arvin Gan
Hi Chris, From your config-file, table option is not assigned for protocol bgp peer1, but system will select the first table of given nettype. ‘---’ in the table column, that mean you don’t define table name, used the default one. table name Specify a table to which the channel is connected

lists issue

2018-07-26 Thread Arvin Gan
Hi all, There may be an issue in blow function when deleted the node is the first one, that mean n->prev is NULL., similarly, same issue as the last one node is deleted. LIST_INLINE void rem_node(node *n) { node *z = n->prev; node *x = n->next; z->next = x; x->prev = z; n->

RE: BGP hostentry update

2018-06-27 Thread Arvin Gan
Any method to bypass this limitation ? thanks -Original Message- From: Arvin Gan Sent: Thursday, June 28, 2018 11:11 AM To: 'Ondrej Zajicek' Cc: bird-users@network.cz Subject: RE: BGP hostentry update Hi Ondrej, Thanks. It seems the limitation for iBGP is more impact, since

RE: BGP hostentry update

2018-06-27 Thread Arvin Gan
Hi Ondrej, Thanks. It seems the limitation for iBGP is more impact, since more than one levels of indirection NEXT_HOP for iBGP is regular application. Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Wednesday, June 27, 2018 7:22 PM To: Arvin Gan Cc: bird-users@network.cz

RE: BGP hostentry update

2018-06-27 Thread Arvin Gan
Hi Ondrej, Is any consideration/plan to optimize this limitation ? Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Wednesday, June 27, 2018 7:07 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP hostentry update On Wed, Jun 27, 2018 at 07:25:49AM +, Arvin

RE: BGP channel add/remove

2018-06-27 Thread Arvin Gan
Hi Ondrej, It's great, thanks. Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Wednesday, June 27, 2018 6:53 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP channel add/remove On Tue, Jun 26, 2018 at 10:43:59AM +0000, Arvin Gan wrote: > H

BGP hostentry update

2018-06-27 Thread Arvin Gan
Hi All, When I using bird 2.0.2 version ,I have an issue route include "unreachable", but I think this application is reasonable , anyone can help me ? Error is reported in codes: rt_update_hostentry() { if (a->hostentry) { /* Recursive route sho

RE: BGP channel add/remove

2018-06-26 Thread Arvin Gan
quot; ? Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Tuesday, June 26, 2018 6:22 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP channel add/remove On Fri, Jun 22, 2018 at 09:23:02AM +, Arvin Gan wrote: > Hi All, > I am using Bird 2.0.2 version, I create a BGP

RE: BGP channel add/remove

2018-06-25 Thread Arvin Gan
e(add/delete channel) Is my understand correct ? Thanks Arvin From: Arvin Gan Sent: Friday, June 22, 2018 5:23 PM To: bird-users@network.cz Subject: BGP channel add/remove Hi All, I am using Bird 2.0.2 version, I create a BGP instance with one channel IPV4, that all work normally. Then I mo

BGP channel add/remove

2018-06-22 Thread Arvin Gan
Hi All, I am using Bird 2.0.2 version, I create a BGP instance with one channel IPV4, that all work normally. Then I modified configuration file and add new channel IPV6, and using command "configure" under birdc , found the new added channel IPV6 is not announced to peer and channel ipv6 is d

RE: BGP: AS private number check

2018-06-15 Thread Arvin Gan
Hi , Suggest to refer to the example of 6.3 BGP from URL http://bird.network.cz/?get_doc&v=20&f=bird-6.html . Thanks Arvin From: zilhazur.rah...@novocom-bd.com Sent: Friday, June 15, 2018 4:53 PM To: Arvin Gan Cc: bird-users Subject: Re: BGP: AS private number check Hi Ar

RE: BGP: AS private number check

2018-06-14 Thread Arvin Gan
: Re: BGP: AS private number check Hi everyone Could you assist me how can I use local preference in BGP in Bird for traffic manipulation ? Regards Zilhaz From: "Arvin Gan" mailto:a...@advaoptical.com>> To: bird-users@network.cz<mailto:bird-use

Recall: BGP: AS private number check

2018-06-14 Thread Arvin Gan
Arvin Gan would like to recall the message, "BGP: AS private number check ".

Recall: BGP: AS private number check

2018-06-14 Thread Arvin Gan
Arvin Gan would like to recall the message, "BGP: AS private number check ".

RE: BGP: AS private number check

2018-06-14 Thread Arvin Gan
Hi all, Sorry, my understand is incorrect, can ignore the mail. Thanks Arvin From: Arvin Gan Sent: Friday, June 15, 2018 2:14 PM To: bird-users@network.cz Subject: BGP: AS private number check Hi All, According to RFC1930, the AS number 64512 to 65535 are reserved for private, I

BGP: AS private number check

2018-06-14 Thread Arvin Gan
Hi All, According to RFC1930, the AS number 64512 to 65535 are reserved for private, I cannot find the implementation for checking private AS number in BIRD, anybody know it or it's lost in BGP ? RFC1930 10. Reserved AS Numbers

RE: BGP keepalive_time

2018-06-12 Thread Arvin Gan
... Do you think so? Thanks Arvin -Original Message- From: Arvin Gan Sent: Wednesday, June 13, 2018 9:39 AM To: 'Ondrej Zajicek' Cc: bird-users@network.cz Subject: RE: BGP keepalive_time Hi Ondrej, Thanks for your response. My test step as below: 1. create bgp1: keepali

RE: BGP keepalive_time

2018-06-12 Thread Arvin Gan
y, June 12, 2018 7:43 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP keepalive_time On Tue, Jun 12, 2018 at 01:54:07AM +0000, Arvin Gan wrote: > Hi all, > > When I used bird, found a question that BGP session received OPEN > message, hold_time is updated wit

RE: BGP keepalive_time

2018-06-11 Thread Arvin Gan
Hi all, Anyone meet the issue as below reason that cause BGP hold timer timeout (keepalive_time > hold_time) and switch action between closing and opening session? Thanks Arvin From: Arvin Gan Sent: Friday, June 08, 2018 3:22 PM To: 'Ondrej Zajicek' Cc: bird-users@network.cz

BGP keepalive_time

2018-06-08 Thread Arvin Gan
Hi all, When I used bird, found a question that BGP session received OPEN message, hold_time is updated with min(config_hold_time, peer_hold_time), but keepalive_time is not updated if keepalive_time is not zero, that maybe cause keepalive_time is more than the updated hold_time after rec

RE: BGP origin attribute

2018-05-31 Thread Arvin Gan
from Cisco is all redistributed route are INCOMPLETE. What's your opinion ? Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Thursday, May 31, 2018 10:11 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP origin attribute On Thu, May 31, 2018 at 03:14:40AM

BGP origin attribute

2018-05-30 Thread Arvin Gan
Hi All, I notice the origin attribute in function bgp_update_attrs , if route source is BGP, I think it should set as ORIGIN_IGP, not INCOMPLETE, according to RFC or Cisco device . It seems there is mistake on Line 1443 in attrs.c . Line 1443: bgp_set_attr_u32(&attrs, pool, BA_ORIGIN, 0, src

BGP next hop

2018-05-09 Thread Arvin Gan
Hi all, I notice below description in user guide, my understand is source address mainly used for BGP session for TCP connection ,don't understand why this source is also used as next_hop_addr calculation. If source address is related with next hop calculation, this case is may not support: u

RE: BGP filter

2018-04-27 Thread Arvin Gan
-Original Message- From: Jan Maria Matejka Sent: Friday, April 27, 2018 8:41 PM To: Arvin Gan ; bird-users@network.cz Subject: Re: BGP filter On 04/25/2018 03:26 PM, Jan Maria Matejka wrote: > [...] > > On 04/25/2018 12:38 PM, Arvin Gan wrote: >> Thanks, I will try. > &

RE: BGP route selection

2018-04-26 Thread Arvin Gan
rs->src->proto->proto; } Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Wednesday, April 18, 2018 10:58 PM To: Arvin Gan Cc: bird-users@network.cz; Robert Blayzor Subject: Re: BGP route selection On Wed, Apr 18, 2018 at 03:35:43AM +, Arvin Gan wrote:

RE: BGP filter

2018-04-25 Thread Arvin Gan
Hi , Yes, I used GDB tools to trace, the coredump occurred on "0x0006ea88 in bug (msg=0x7b7c8 "Unknown instruction %d in same (%c)") at sysdep/unix/log.c:213". Thanks Arvin -Original Message- From: Jan Maria Matejka Sent: Wednesday, April 25, 2018 9:26 PM

RE: netlink support question for RFC 5549

2018-04-25 Thread Arvin Gan
: Arvin Gan Cc: bird-users@network.cz Subject: Re: netlink support question for RFC 5549 On Tue, Apr 24, 2018 at 10:38:03AM +, Arvin Gan wrote: > Hi All, > > I notice that BGP can support RFC 5549 using configuration > "ext_next_hop", bird can sync with kern

RE: BGP filter

2018-04-25 Thread Arvin Gan
Thanks, I will try. -Original Message- From: Bird-users On Behalf Of Jan Maria Matejka Sent: Wednesday, April 25, 2018 6:31 PM To: bird-users@network.cz Subject: Re: BGP filter >> 2.   config-file: >> >>   filter filter_bgp1{ >> >>  if format(net) = "0.0.

RE: BGP filter

2018-04-25 Thread Arvin Gan
Hi , Thanks for your response. Do you know the reason " show route filter {if format(net) = "0.0.0.0/0" then accept;}" is running correctly in birdc command ,but cause the coredump in config-file? Thanks Arvin -Original Message- From: Bird-users On Behalf Of Jan Maria Matejka Se

BGP filter

2018-04-25 Thread Arvin Gan
Hi All, I am implementing a function that send default route to BGP peer, and I am facing an issue about BGP filter, when I use "show route filter" in birdc, the filter result is correct; when I add this filter to config-file and start bird, the bird will occur coredump issue. Does anyone know

netlink support question for RFC 5549

2018-04-24 Thread Arvin Gan
Hi All, I notice that BGP can support RFC 5549 using configuration "ext_next_hop", bird can sync with kernel table using netlink assuming kernel support route with IPV4 DIP and IPV6 next hop. Sending route to kernel (nl_add_nexthop()) that don't check address family type that mean bird ca

RE: BGP route selection

2018-04-18 Thread Arvin Gan
roto > old->attrs->src->proto->proto; } Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Wednesday, April 18, 2018 10:58 PM To: Arvin Gan Cc: bird-users@network.cz; Robert Blayzor Subject: Re: BGP route selection On Wed, Apr 18, 2018 at 03:35:43AM +, Arvin

RE: BGP route selection

2018-04-17 Thread Arvin Gan
Hi all, Sorry, it's my ambiguous description. What I said default value is Cisco's admin distance value, eBGP is 20 and iBGP is 200. We plan to use preference to implement admin distance. Actually ,in bird, the preference of channel for BGP is BGP protocol default preference DEF_PREF_BGP (

RE: BGP attribute ext-next-hop

2018-04-17 Thread Arvin Gan
Hi, Thanks! Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Tuesday, April 17, 2018 8:22 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP attribute ext-next-hop On Wed, Apr 11, 2018 at 02:52:46PM +0200, Ondrej Zajicek wrote: > On Wed, Apr 11, 2018 at 09

BGP route selection

2018-04-17 Thread Arvin Gan
Hi, I notice that there is a description of route selection algorithm: The global best route selection algorithm is (roughly) as follows: * Preferences of the routes are compared. * Source protocol instance preferences are compared. * If source protocols are the same (e.g. BGP vs. B

RE: BGP attribute ext-next-hop

2018-04-11 Thread Arvin Gan
BGP, transmit IPV4 route and IPV6 route in one UPDATE message. Thanks Arvin -Original Message- From: Ondrej Zajicek Sent: Wednesday, April 11, 2018 5:26 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP attribute ext-next-hop On Wed, Apr 11, 2018 at 07:55:28AM +, Arvin

RE: BGP attribute ext-next-hop

2018-04-11 Thread Arvin Gan
April 11, 2018 5:26 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP attribute ext-next-hop On Wed, Apr 11, 2018 at 07:55:28AM +, Arvin Gan wrote: > Hi , > Thanks for your response. Could you help me for another question. > If ext-next-hop is enabled and AFI is BGP_AF_I

RE: BGP attribute ext-next-hop

2018-04-11 Thread Arvin Gan
Zajicek Sent: Tuesday, April 03, 2018 10:14 PM To: Arvin Gan Cc: bird-users@network.cz Subject: Re: BGP attribute ext-next-hop On Tue, Apr 03, 2018 at 09:42:18AM +, Arvin Gan wrote: > Hi all, > > The version of my bird is 2.0.0, I found the source code of bird can > support t

BGP attribute ext-next-hop

2018-04-03 Thread Arvin Gan
Hi all, The version of my bird is 2.0.0, I found the source code of bird can support the attribute ext_next_hop for BGP, and this attribute is also parsed in cf-parse.y, but cannot found in user's guide document. Does anyone know what configuration is coherent with the attribute ext_next_