Re: announcing BGP prefixes from the same AS at different sites?
Le 30/08/2014 01:36, Tom Daly a écrit : Hi, It sounds like you might want to try disabling aspath loop detection for eBGP. Checkout the bird option called allow local as [number] as documented at http://bird.network.cz/?get_docf=bird-6.html#ss6.2. This will allow you to import prefixes with your own ASN in the aspath. However, one possible pitfall is that your upstream ISP's router might try to be smart - and not send prefixes with your aspath in them too. Older Foundry boxes do this and there is a per BGP peer knob you have to turn. Overall, this should let you run everything over eBGP and run two simple island networks. Cheers, Tom Unfortunately proper ISPs make their job good and does not advertise your own route. I have a Pop in the same configuration of yours. Two solution : IBGP in a GRE tunnel, it's uggly, but It works. Or static route :) -- Raphael Mazelier AS39605
Re: Run external script after accepting BGP update or withdraw
LUA in BIRD for stuff like this would make for extreme versatility, good suggestion! +1 Lua in bird will be the killer feature. -- Raphael Mazelier
Re: Multiple OSPF adjacencies on same interface...
I?m trying to use a bonded interface on linux to connect to two routers, one router on each physical link, each with a /31 subnet. Only one of the routers (Force10 S4810) forms adjacency with the linux host (whichever comes first), the other gets stuck in EXSTART until I shut/no shut the link, then Bird creates adjacency with both routers. What are you trying to do with this design ? It's rather strange. -- Raphael Mazelier
Re: Configuration Problem : announce default route via ospf
Not with metric but with preference. The OSPF route has preference 150 while the kernel route has preference 10. Use option 'preference' in kernel protocol to set higher value (like 200) for imported kernel routes. Or you could use static protocol to define default route (static protocol has default preference 200). Thanks a lot. My final working config is : # redistribute default filter export_OSPF { if ( net = 0.0.0.0/0 ) then { ospf_metric2 = 100; accept; } reject; } protocol kernel { learn; preference 200; scan time 2; import all; export all; } protocol ospf { import all; export filter export_OSPF; ... Looks good. -- Raphael Mazelier
Configuration Problem : announce default route via ospf
Hello list, I'm a new user of bird. I'm using quagga or openospdf in production for time (also cisco and junos). Bird have an excellent reputation and a small footprint. I m trying to replace my old quagga on embedded box (running openwrt) with bird. The configuration look very flexible but I'm facing with a problem. What I try to make is announcing a default route in ospf, and also set some specific metric. I'm lost with that. The quagga/ospfd relevant part of configuration I try to make : - snip - interface lo2 ip ospf cost 100 router ospf ospf router-id 0.0.0.9 redistribute connected route-map connected_to_ospf passive-interface lo0 passive-interface lo1 passive-interface lo2 network 192.168.0.0/24 area 0.0.0.5 network 192.168.10.9/32 area 0.0.0.5 network 192.168.10.53/32 area 0.0.0.5 default-information originate metric 100 ! access-list access permit 127.0.0.1/32 access-list access deny any ! route-map connected_to_ospf deny 10 match interface mpe0 ! route-map connected_to_ospf deny 15 match interface vlan44 ! route-map connected_to_ospf permit 20 match interface lo2 set metric 100 set metric-type type-1 - /snip - I gave up with a config like this : - snip - router id 0.0.0.9; protocol device { scan time 10; } filter export_OSPF { if ( net = 0.0.0.0/0 ) then { print default net accepted:, net; ospf_metric1 = 100; accept; } accept } protocol kernel { debug all; learn; scan time 2; import all; export all; } protocol ospf { debug all; import all; export filter export_OSPF; area 0.0.0.5 { stubnet 192.168.10.53/32 { cost 100; }; interface lo1 { stub; }; interface lo2 { stub; }; interface vr0 { cost 5; type broadcast; }; interface vr1 { stub; cost 200; }; }; } - /snip - It's not working as expected. In fact I'm trying to redistribute defautl kernel route into ospf. but it seems to be ignored, and the default was not seeen in the ospf database. What I am missing ? Is there a better way to inject a default route like in quagga (default originate). Regards, -- Raphael Mazelier