issue with openbgpd + 8.0
Michal Buchtik
buchtajz at borsice.net
Thu Dec 17 11:32:19 UTC 2009
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 *)
*/
More information about the freebsd-net
mailing list