Injecting ISP Default Route into OSPF
Daniel Gomez
Daniel.Gomez at synaix.de
Tue Jul 9 10:36:13 CEST 2013
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
More information about the Bird-users
mailing list