OSPF – How to Configure Bird for OSPF

anycastbirdgns3ospf

I'm configuring a network with the following topology:

network

What I need to do is to provide a service that is available by Anycast and that is announced by OSPF. I managed to configure OSPF on the routers. I also created a dummy interface with the same IP in both servers. But now I'm not sure how to configure Bird on the servers so the Client can acess them via the Anycast IP. I'm simulating the network on GNS3.

Best Answer

On the servers you could try using this configuration:

router id x.x.x.x; 

protocol device {
}

protocol kernel {
        metric 64;      # Use explicit kernel route metric to avoid collisions
                        # with non-BIRD routes in the kernel routing table
        import none;
        export all;     # Actually insert routes into the kernel routing table
}

protocol static {
        import all;
}

protocol ospf myOSPF {
        import all;
        export all;

    area 0 {
        interface "Your dummy interface name" {
               cost 5;
               type broadcast;
               hello 5; retransmit 2; wait 10; dead 20;
               authentication cryptographic; password "XXXX";
         };
     };
}

I hope this helps!