Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2009 12:13:11 +0100
From:      Michal Buchtik <buchtajz@borsice.net>
To:        "Li, Qing" <qing.li@bluecoat.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: issue with openbgpd + 8.0
Message-ID:  <1261048391.1705.54.camel@manwe.buchtikov.borsice.sfn>
In-Reply-To: <B583FBF374231F4A89607B4D08578A4306235E6B@bcs-mail03.internal.cacheflow.com>
References:  <35F73C4F-3C77-4B40-9D7D-16BEB8FE6EAD@adam.gs> <B583FBF374231F4A89607B4D08578A4306235E6B@bcs-mail03.internal.cacheflow.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
thanks for help.

Li, Qing píše v st 16. 12. 2009 v 15:39 -0800:
> Hi,
> 
> You have reported issues regarding openbgp/bgpd exiting 
> abnormally. Please apply patch:
> 
>     http://people.freebsd.org/~qingli/bgpd-patch-121615.diff
> 
> and let me know if it fixes your issue. I performed limited 
> unit testing.
> 
- bgpd don't terminate, it's OK

but there appeared some new problems:

TEST: bgpd is running, vlan3 not exists
----------------------------------------------------------------------
# netstat -rnf inet
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif
Expire
default            10.8.20.1          UGS         5   135040   bge0
10.8.20.0/24       link#1             U           0        0   bge0
10.8.20.20         link#1             UHS         0        0    lo0
127.0.0.1          link#4             UH          0       35    lo0

$ bgpctl show fib
flags: * = valid, B = BGP, C = Connected, S = Static
       N = BGP Nexthop reachable via this route
       r = reject route, b = blackhole route

flags prio destination          gateway
*S      48 0.0.0.0/0            10.8.20.1
*C      48 10.8.20.0/24         link#1
*C      48 10.8.20.20/32        link#4
*C       0 127.0.0.1/8          link#0
*C      48 127.0.0.1/32         link#4

# ifconfig vlan3 create
# ifconfig vlan3 172.16.1.1/24
# netstat -rnfinet
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif
Expire
default            10.8.20.1          UGS         2   136107   bge0
10.8.20.0/24       link#1             U           0        0   bge0
10.8.20.20         link#1             UHS         0        0    lo0
127.0.0.1          link#4             UH          0       35    lo0
172.16.1.0/24      link#6             U           0        0  vlan3
172.16.1.1         link#6             UHS         0        0    lo0

$ bgpctl show fib
*C      48 10.8.20.0/24         link#1
*C      48 10.8.20.20/32        link#4
*C       0 127.0.0.1/8          link#0
*C      48 127.0.0.1/32         link#4
 C      48 172.16.1.0/24        link#6

/* there is 172.16.1.1/32  link#4  missing
and 172.16.1.0/24 is not marked as valid */

# ifconfig vlan3 alias 172.16.1.2/32
$ bgpctl show fib
*C      48 10.8.20.0/24         link#1
*C      48 10.8.20.20/32        link#4
*C       0 127.0.0.1/8          link#0
*C      48 127.0.0.1/32         link#4
 C      48 172.16.1.0/24        link#6
 C      48 172.16.1.2/32        link#6

new alias /32 is added correctly

after restart bgpd, it prints this:

# netstat -rnfinet
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif
Expire
default            10.8.20.1          UGS         6   141282   bge0
10.8.20.0/24       link#1             U           0        0   bge0
10.8.20.20         link#1             UHS         0        0    lo0
127.0.0.1          link#4             UH          0       35    lo0
172.16.1.0/24      link#6             U           0        0  vlan3
172.16.1.1         link#6             UHS         0        0    lo0
172.16.1.2         link#6             UHS         0        0    lo0 =>
172.16.1.2/32      link#6             U           0        0  vlan3

$ bgpctl show fib
flags: * = valid, B = BGP, C = Connected, S = Static
       N = BGP Nexthop reachable via this route
       r = reject route, b = blackhole route

flags prio destination          gateway
*S      48 0.0.0.0/0            10.8.20.1
*C      48 10.8.20.0/24         link#1
*C      48 10.8.20.20/32        link#4
*C       0 127.0.0.1/8          link#0
*C      48 127.0.0.1/32         link#4
*C      48 172.16.1.0/24        link#6
*C      48 172.16.1.1/32        link#4
*C      48 172.16.1.2/32        link#4
*C      48 172.16.1.2/32        link#6

/* So, after bgpd restart, it registered new interface and all routes
correctly and routes are valid.

When I start bgpd >after< creating vlan3 (without ip adresses), it's
behavior is same, but routes in "bgpctl show fib" output are displayed
as valid (with *) 

*/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1261048391.1705.54.camel>