Hi

I've got a linux router with 2 uplinks - one is a Cisco VDSL modem advertising 0.0.0.0/0 over OSPF when VDSL is up and one is Fibre link where the ISP sends us 0.0.0.0/0 over BGP.

If both links are up I want to route everything over Fibre (BGP), if Fibre fails for any reason use the VDSL (OSPF). Here is my config:

protocol ospf ospf_vdsl {
        area 65 {
                stub no;
                interface "vdsl0" {
                        cost 1000;
                        type broadcast;
                        authentication none;
                };
        };
        import where net = 0.0.0.0/0;
        export none;
};

protocol bgp bgp_fibre {
        local as xx526;
        neighbor x.x.20.201 as xx746;
        source address x.x.20.202;
        import where net = 0.0.0.0/0;
        export none;
};

With this config Bird 1.4.5 always prefers OSPF whenever the link is up - how can I tell it to prefer BGP instead? I even set the cost of the VDSL link to 1000 but that didn't make any difference.

~ # birdc show route for 0.0.0.0/0
BIRD 1.4.5 ready.
0.0.0.0/0 via 10.65.1.1 on vdsl0 [ospf_vdsl 15:47:14] * E2 (150/1000/1) [1] [10.65.1.1] via x.x.20.201 on fibre0 [bgp_fibre 14:28:27] (100) [ASxx746i]


Thanks!

Michael


Reply via email to