Hi, Since upgrading from openbgpd 4.5 to 4.7 (tried 4.6, too with bad results) openbgpd doesn't work on my vlan interface. I have two routers (10.0.100.2 and .3). That network is on vlan2; with carp2 running .1. Running .3 on 4.6 or 4.7 makes it immediately lose it's route to the 100.0/24 network when bgpd starts. bgpd is announcing 10.0.100.0/24 (and understands that it's a locally routed network, according to bgpctl show ip bgp, see below). ... but somehow the routing able gets changed to have that network routed to 10.0.100.2 (the other router, running 4.5) instead of 0.0.0.0/vlan2. I can't even ping 10.0.100.3 (the vlan2 IP) from the box itself. If I ping that IP from a box on a different network it works. Also, I can restore the route with route del -net 10.0.100.0/24 10.0.100.2 route add -net 10.0.100.0/24 -interface vlan2 ... but as soon as bgpd reconnects it will mess it up again. Any ideas? Am I doing it wrong? I understand that bgpd is exchanging the routes; but until v4.5 it'd keep the local interface as a preference. What's the proper forum to for the FreeBSD openbgpd port? I can't even find a changelog for the different versions... For what it's worth - on a non-vlan, non-carp interface in another otherwise similar setup it's working ok with 4.6 and 4.7. - ask gw-b.dev# bgpctl show ip bgp flags: * = Valid, > = Selected, I = via IBGP, A = Announced origin: i = IGP, e = EGP, ? = Incomplete flags destination gateway lpref med aspath origin AI*> 10.0.100.0/24 0.0.0.0 100 0 i *> 10.0.201.0/24 10.77.80.6 100 30 64701 i gw-b.dev# netstat -rn | grep 10.0.100 10.0.100.0/24 10.0.100.2 UGC 5 186 vlan2 10.0.100.1 10.0.100.2 UGHW3 0 3 vlan2 3053 10.0.100.3 10.0.100.2 UGHW3 0 1 vlan2 3522 10.0.100.13 10.0.100.2 UGHW3 0 34 vlan2 3599 10.0.100.103 10.0.100.2 UGHW3 0 32 vlan2 3583 10.0.100.104 10.0.100.2 UGHW3 0 4 vlan2 3565
Ingo Flaschberger
2010-May-25 11:20 UTC
openbgpd / openospf / carp / vlan (on 7.2) trouble
Dear Ask, the problem is, that freebsd only allows 1 route to 1 destination (at least at freebsd 6.3). I have a similar setup (carp and routing protocols) and use a modified ucarp with additional route add and deletes. Kind regards, ingo flaschberger
nickolasbug@gmail.com
2010-May-25 12:56 UTC
openbgpd / openospf / carp / vlan (on 7.2) trouble
Hi Bj?rn! I also have had troubles with openbdpd few years ago. All troubles vanished after installing quagga instead of openbgpd. Well, maybe it's not great solution, but it's workaround. wbr. 2010/5/25 Ask Bj?rn Hansen <ask@develooper.com>:> Hi, > > Since upgrading from openbgpd 4.5 to 4.7 (tried 4.6, too with bad results) openbgpd doesn't work on my vlan interface. ?I have two routers (10.0.100.2 and .3). ?That network is on vlan2; with carp2 running .1. > > Running .3 on 4.6 or 4.7 makes it immediately lose it's route to the 100.0/24 network when bgpd starts. ?bgpd is announcing 10.0.100.0/24 (and understands that it's a locally routed network, according to bgpctl show ip bgp, see below). > > ... but somehow the routing able gets changed to have that network routed to 10.0.100.2 (the other router, running 4.5) instead of 0.0.0.0/vlan2. ?I can't even ping 10.0.100.3 (the vlan2 IP) from the box itself. ?If I ping that IP from a box on a different network it works. > > Also, I can restore the route with > > route del -net 10.0.100.0/24 10.0.100.2 > route add -net 10.0.100.0/24 -interface vlan2 > > ... but as soon as bgpd reconnects it will mess it up again. > > Any ideas? ?Am I doing it wrong? ?I understand that bgpd is exchanging the routes; but until v4.5 it'd keep the local interface as a preference. ?What's the proper forum to for the FreeBSD openbgpd port? ? I can't even find a changelog for the different versions... > > For what it's worth - on a non-vlan, non-carp interface in another otherwise similar setup it's working ok with 4.6 and 4.7. > > > ?- ask > > gw-b.dev# bgpctl show ip bgp > flags: * = Valid, > = Selected, I = via IBGP, A = Announced > origin: i = IGP, e = EGP, ? = Incomplete > > flags destination ? ? ? ? ?gateway ? ? ? ? ?lpref ? med aspath origin > AI*> ?10.0.100.0/24 ? ? ? ?0.0.0.0 ? ? ? ? ? ?100 ? ? 0 i > *> ? ?10.0.201.0/24 ? ? ? ?10.77.80.6 ? ? ? ? 100 ? ?30 64701 i > > > gw-b.dev# netstat -rn | grep 10.0.100 > 10.0.100.0/24 ? ? ?10.0.100.2 ? ? ? ? UGC ? ? ? ? 5 ? ? ?186 ?vlan2 > 10.0.100.1 ? ? ? ? 10.0.100.2 ? ? ? ? UGHW3 ? ? ? 0 ? ? ? ?3 ?vlan2 ? 3053 > 10.0.100.3 ? ? ? ? 10.0.100.2 ? ? ? ? UGHW3 ? ? ? 0 ? ? ? ?1 ?vlan2 ? 3522 > 10.0.100.13 ? ? ? ?10.0.100.2 ? ? ? ? UGHW3 ? ? ? 0 ? ? ? 34 ?vlan2 ? 3599 > 10.0.100.103 ? ? ? 10.0.100.2 ? ? ? ? UGHW3 ? ? ? 0 ? ? ? 32 ?vlan2 ? 3583 > 10.0.100.104 ? ? ? 10.0.100.2 ? ? ? ? UGHW3 ? ? ? 0 ? ? ? ?4 ?vlan2 ? 3565 > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >