Hi bird group. I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side?
Marek Wajdzik wrote:
Hi bird group.
I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side?
Bird needs to resolve those nexthops to get directly-reachable nexthop. You need to get such routes in either main bird table or special IGP table (BGP protocol option). You can accomplish this either by importing these routes via Direct protocol or announce them via IGP (OSPF)
Add a static protocol with route to bgp peer? I've added route using ip r a :) Maybe here is problem 2011/12/3 Alexander V. Chernikov <melifaro@ipfw.ru>:
Marek Wajdzik wrote:
Hi bird group.
I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side?
Bird needs to resolve those nexthops to get directly-reachable nexthop. You need to get such routes in either main bird table or special IGP table (BGP protocol option).
You can accomplish this either by importing these routes via Direct protocol or announce them via IGP (OSPF)
Marek Wajdzik wrote:
Add a static protocol with route to bgp peer? I've added route using ip r a :) Maybe here is problem .. Or a static protocol. Or even kernel protocol with "learn" option set on and non-forbidding import filter.
2011/12/3 Alexander V. Chernikov <melifaro@ipfw.ru>:
Marek Wajdzik wrote:
Hi bird group.
I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side? Bird needs to resolve those nexthops to get directly-reachable nexthop. You need to get such routes in either main bird table or special IGP table (BGP protocol option).
You can accomplish this either by importing these routes via Direct protocol or announce them via IGP (OSPF)
Can you give me a example config ? W dniu 2011-12-03 20:33, Alexander V. Chernikov pisze:
Marek Wajdzik wrote:
Add a static protocol with route to bgp peer? I've added route using ip r a :) Maybe here is problem .. Or a static protocol. Or even kernel protocol with "learn" option set on and non-forbidding import filter. 2011/12/3 Alexander V. Chernikov<melifaro@ipfw.ru>:
Marek Wajdzik wrote:
Hi bird group.
I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side? Bird needs to resolve those nexthops to get directly-reachable nexthop. You need to get such routes in either main bird table or special IGP table (BGP protocol option).
You can accomplish this either by importing these routes via Direct protocol or announce them via IGP (OSPF)
Marek Wajdzik wrote:
Can you give me a example config ?
protocol static { route bgp.next.hop/32 via some.directly.reachable.nhop; } You need to add static routes for each next BGP hop (show route for 1.2.3.4 all shows nexthop attribute) You can also use filters for this ( import filter { gw = directly.connected.nh; accept; })
W dniu 2011-12-03 20:33, Alexander V. Chernikov pisze:
Marek Wajdzik wrote:
Add a static protocol with route to bgp peer? I've added route using ip r a :) Maybe here is problem .. Or a static protocol. Or even kernel protocol with "learn" option set on and non-forbidding import filter. 2011/12/3 Alexander V. Chernikov<melifaro@ipfw.ru>:
Marek Wajdzik wrote:
Hi bird group.
I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side? Bird needs to resolve those nexthops to get directly-reachable nexthop. You need to get such routes in either main bird table or special IGP table (BGP protocol option).
You can accomplish this either by importing these routes via Direct protocol or announce them via IGP (OSPF)
Thanks! It's working correctly! W dniu 2011-12-03 21:02, Alexander V. Chernikov pisze:
Marek Wajdzik wrote:
Can you give me a example config ? protocol static { route bgp.next.hop/32 via some.directly.reachable.nhop; } You need to add static routes for each next BGP hop (show route for 1.2.3.4 all shows nexthop attribute)
You can also use filters for this ( import filter { gw = directly.connected.nh; accept; })
W dniu 2011-12-03 20:33, Alexander V. Chernikov pisze:
Marek Wajdzik wrote:
Add a static protocol with route to bgp peer? I've added route using ip r a :) Maybe here is problem .. Or a static protocol. Or even kernel protocol with "learn" option set on and non-forbidding import filter. 2011/12/3 Alexander V. Chernikov<melifaro@ipfw.ru>:
Marek Wajdzik wrote:
Hi bird group.
I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side? Bird needs to resolve those nexthops to get directly-reachable nexthop. You need to get such routes in either main bird table or special IGP table (BGP protocol option).
You can accomplish this either by importing these routes via Direct protocol or announce them via IGP (OSPF)
On Sat, Dec 03, 2011 at 07:18:19PM +0100, Marek Wajdzik wrote:
Hi bird group.
I have problem with bgp multihop session, it's configured as in example but when I recieve the routes they appears in KRT as unreachable (all routes imported from bgp). What I am doing wrong, maybe it's misconfiguration at remote side?
See also option 'gateway direct|recursive' in BID doc: http://bird.network.cz/?get_doc&f=bird-6.html Note that for multihop, only recursive variant is possible. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (3)
-
Alexander V. Chernikov -
Marek Wajdzik -
Ondrej Zajicek