Injecting ISP Default Route into OSPF
Greetings to everyone, I have two linux systems (routers) running debian with kernel 2.6.38 and BIRD 1.2.5. Every router has an outside interface towards a different ISP (ISP1 and ISP2) for Backup/Redundant purposes. The internal interface does VRRP. I am trying that both routers share the daufault routes toward ISP1 and IPS2. The routers should send all packets that they receive to towards the first ISP1 and when the ISP1 is down, the default route towards ISP2 must take place and the packets should be rerouted over the backup line (ISP2) My actuall problem is that I cannot see both static defined default routes on the Kernel table, and when I shutdown the outside interface the new default route is also not appearing on the routing table. Any ideas? That the actual configuration on both systems: protocol static { check link; route 0.0.0.0/0 via DFGW1; # Default route route 0.0.0.0/0 via DFGW2; # Default route } protocol kernel { # learn; # Learn all alien routes from the kernel persist; # Don't remove routes on bird shutdown scan time 10; # Scan kernel routing table every 20 seconds import none; # Default is import all export all; # Default is export none # kernel table 5; # Kernel table to synchronize with (default: main) } protocol direct { interface "intern"; # Restrict network interfaces it works with import all; # Default is import all } # This pseudo-protocol watches all interface up/down events. protocol device { scan time 10; # Scan interfaces every 10 seconds } protocol ospf MyOSPF { tick 2; rfc1583compat yes; import all; export all; area 0.0.0.0 { interface "intern" { cost 1; hello 5; priority 1; retransmit 7; }; }; } Thanks in Advance, Daniel Gomez
On Tue, Jul 09, 2013 at 10:36:13AM +0200, Daniel Gomez wrote:
My actuall problem is that I cannot see both static defined default routes on the Kernel table, and when I shutdown the outside interface the new default route is also not appearing on the routing table.
Any ideas?
Use two static protocol instances, each for one route ;-) -- 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."
Hi Ondrej, How are the administrative distances in Bird? Static Route == 200 OSPF == ? iBGP == ? eBGP == 100 * By the way it worked with the two static protocol instances :D. Actually I think it would be much more simple with : Router1: protocol static { check link; route 0.0.0.0/0 via GW1; } Router2: protocol static { check link; route 0.0.0.0/0 via GW2; } and then exchange the static routes in OPSF. If I use two static protocols in the same configuration, I also need to send the transfer network between router and ISP to the second router, in order for the default gateway to be in OSPF. There exist a switch in OSPF-Bird similar to the "passive interface" from cisco and brocade? Greetings, Daniel Von: Ondrej Zajicek <santiago@crfreenet.org> An: Daniel Gomez <Daniel.Gomez@synaix.de> Kopie: bird-users@trubka.network.cz Datum: 09.07.2013 10:57 Betreff: Re: Injecting ISP Default Route into OSPF Gesendet von: owner-bird-users@atrey.karlin.mff.cuni.cz On Tue, Jul 09, 2013 at 10:36:13AM +0200, Daniel Gomez wrote:
My actuall problem is that I cannot see both static defined default routes on the Kernel table, and when I shutdown the outside interface the new default route is also not appearing on the routing table.
Any ideas?
Use two static protocol instances, each for one route ;-) -- 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." [Anhang "signature.asc" gelöscht von Daniel Gomez/ac/synaix]
On Tue, Jul 09, 2013 at 01:20:54PM +0200, Daniel Gomez wrote:
Hi Ondrej,
How are the administrative distances in Bird?
Static Route == 200
OSPF == ?
iBGP == ?
eBGP == 100
DIRECT 240 STATIC 200 OSPF 150 RIP 120 BGP 100 PIPE 70 KERNEL 10
There exist a switch in OSPF-Bird similar to the "passive interface" from cisco and brocade?
Inteface option 'stub'. -- 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 (2)
-
Daniel Gomez -
Ondrej Zajicek